Operating System - Linux
1832845 Members
3041 Online
110047 Solutions
New Discussion

i have connect adsl sucess but fail in forward ip as in lan

 

i have connect adsl sucess but fail in forward ip as in lan

i want to build one gateway with adsl-linux for my lan-gateway.

i have connect adsl in my rh sucess and browse with lynx ok. but once i want to set it as what i have done in my lan-work for a gateway between to interface, i fail.

i have two net adapter eth0 for adsl and eth1 for lan-gateway.
i config eth1 192.168.0.254,
then set ip_forward=yes.

restart network, then adsl-start, then ppp0 appear in ifconfig list.

normally the route will work and i can access the computers what locate in the other subnet via this gateway, but this time, it did not work.

i wonder, it may cause by none masq or nat. so i type in:
ipchaise -A forward -i ppp0 -j masq
alas, it echo that: protocal not available.

i do not know what my fault or what should i do.

could somebody give me some tips?

thanks ahead.
frederick
frederick
1 REPLY 1
Mark Fenton
Esteemed Contributor

Re: i have connect adsl sucess but fail in forward ip as in lan

Both ipchains and iptables should be available in RH 7.3 (I prefer iptables, personally -- better NAT control....) so your box not finding it is somewhat surprising, unless you set it up as workstation and not server when you were loading RedHat.

If you need to install the netfilter packages, they're available on the first cdrom

ipchains-1.3.10-13.i386.rpm
iptables-1.2.5-3.i386.rpm
iproute-2.4.7-1.i386.rpm
iputils-20020124-3.i386.rpm

you may also need the network utilities.

hth
Mark