[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 486 ip masq with new cable modem
> Hi folks. I have an ip masquerading box that connects via ppp to the
internet >and connects the rest of my network to the outside world (yadda,
yadda, yadda, >you get the picture). I am now wanting to set up this system to
use a TCI >cable modem. That means 2 nic's in the machine and masqing between
the two of >them instead of the one nic and the modem. I have RedHat 6.0
Kernel 2.2.15 by >the way.
> Can anyone steer me in the right direction?
Does it do IP Masq currently under PPP, if so there is really nothing to do,
ip masq doesn't care what interfaces your using. If you dont do ip masq (and
this is a 2.2.x) kernel you simply need the following:
#Setup Maspuerading
ipchains -I forward -p tcp -s $e0_netaddress/$e0_netmask -d 0/0 -j MASQ
echo " Masq Policy defined for TCP"
ipchains -I forward -p udp -s $e0_netaddress/$e0_netmask -d 0/0 -j MASQ
echo " Masq Policy defined for UDP"
ipchains -I forward -p icmp -s $e0_netaddress/$e0_netmask -d 0/0 -j MASQ
echo " Masq Policy defined for ICMP"
In your startup scripts. Also I'd make sure you load the ftp masq modules,
the real audio masq modules, and any other that you need, these take care of
masquerading protocols written by morons (they make reverse connections that
coause problems when the client is not directly accesable).