Thread View: linux.redhat.misc
3 messages
3 total messages
Started by Frederic Breitwieser
Tue, 04 Apr 2000 00:00
ipchains/ipmasqfw/pppoe
Author: Frederic Breitwieser
Date: Tue, 04 Apr 2000 00:00
Date: Tue, 04 Apr 2000 00:00
44 lines
2872 bytes
2872 bytes
Greetings, In an attempt to build a redhat6.0-based firewall, I have run into a little snag. A little background if I may... With the purchase of my adsl modem, I also contracted for two static IP addresses. This adsl modem attaches to a hub, which in turn eth0 & eth1 within my firewall, attach to the same hub. I loaded pppd using a pppoe client bound to eth0 & eth1, and have aquired these static IP addresses successfully. On the other side of the firewall, is eth2 & eth3, which are connected to two hubs, with servers in between, for load balancing and dual-homing capabilities, with one segment being 192.168.1.0 and the second segment being 192.168.2.0. Here is the snippet of firewall code I am having problems with... # http (80) & forward to 192.168.x.10 $IPCHAINS -A input -p tcp -s $REMOTENET -d $LOCALNET 80 -j ACCEPT $IPMASQADM portfw -a -P tcp -L $LOCALIP1 80 -R 192.168.1.10 80 -p 1 $IPMASQADM portfw -a -P tcp -L $LOCALIP1 80 -R 192.168.2.10 80 -p 2 # http (80) & forward to 192.168.x.11 #$IPCHAINS -A input -p tcp -s $REMOTENET -d $LOCALNET 80 -j ACCEPT $IPMASQADM portfw -a -P tcp -L $LOCALIP2 80 -R 192.168.1.11 80 -p 1 $IPMASQADM portfw -a -P tcp -L $LOCALIP2 80 -R 192.168.2.11 80 -p 2 The first section works just fine, with the $LOCALIP1 representing the first static IP address. The second section, which 'should' be forwarding the second static IP ($LOCALIP2) to the second webserver, is not working properly. I've tried several things and unfortunately, its not working at all. I thought maybe the webserver itself was misconfigured, but if I replace the 192.168.x.11 with .x.10, it still doesn't work off the second IP. The first webserver off the first static IP, works regardless what I change on the second set of commands. Any ideas? Maybe a default gateway problem? I am unsure how to proceed, and was hoping one of you more experienced folks could point me in the right direction. Thanks in advance, and direct replies certainly welcomed! Frederic Breitwieser Linux Disadvantaged :)
Re: ipchains/ipmasqfw/pppoe
Author: Jason
Date: Tue, 04 Apr 2000 00:00
Date: Tue, 04 Apr 2000 00:00
6 lines
979 bytes
979 bytes
it would be most helpful to see your route tables. just type route as root to see them. an ifconfig would be helpful too. jason www.cyborgworkshop.com ...and the geek shall inherit the earth...
Re: ipchains/ipmasqfw/pppoe
Author: Frederic Breitwieser
Date: Wed, 05 Apr 2000 00:00
Date: Wed, 05 Apr 2000 00:00
34 lines
2583 bytes
2583 bytes
> wrote in message news:sekqrb7feop42@news.supernews.com... > it would be most helpful to see your route tables. just type route as > root to see them. an ifconfig would be helpful too. Jason, I can do that: Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.1 * 255.255.255.255 UH 0 0 0 eth2 64.252.0.1 * 255.255.255.255 UH 0 0 0 ppp0 64.252.0.1 * 255.255.255.255 UH 0 0 0 ppp1 192.168.2.1 * 255.255.255.255 UH 0 0 0 eth3 172.16.0.250 * 255.255.255.255 UH 0 0 0 eth0 172.16.0.251 * 255.255.255.255 UH 0 0 0 eth1 192.168.2.0 * 255.255.255.0 U 0 0 0 eth3 192.168.1.0 * 255.255.255.0 U 0 0 0 eth2 172.16.0.0 * 255.255.0.0 U 0 0 0 eth0 172.16.0.0 * 255.255.0.0 U 0 0 0 eth1 127.0.0.0 * 255.0.0.0 U 0 0 0 lo default 64.252.0.1 0.0.0.0 UG 0 0 0 ppp0 with the pppoe client, ppp0 corresponds to eth0 and ppp1 corresponds to eth1. I am trying to use ipchains/ipmasqadm portfw ppp0 to 192.168.1.10 and ppp1 to 192.168.1.11. Unfortunately, all responses from the servers at 192.168.1.1x go out the ppp0 port. I am unsure how to remove this default gateway, or if its a wise thing to do. I typed route del 64.252.0.1 thinking that would do the trick, then my telnet session poofed :) Thanks, Frederic
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads