Click to See Complete Forum and Search --> : Lost


bingo5
11-12-2002, 11:57 AM
Trying to acces internet from 2nd computer.
ping :unknown host www.free.fr

1st computer 192.168.0.1
2nd 192.168.0.2
both redhat 7.2 installed

local ping ok
acces to internet from 1st pc ok
/sbin/route -n on 192.168.0.1 :

Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
80.13.253.1 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 192.168.0.1 255.255.255.0 UG 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 80.13.253.1 0.0.0.0 UG 0 0 0 ppp0

i put the the iptables of mychl from this forum(https://mychl717.com/linked/iptables)
everything worked for one evening untill i
restarted my pc ????

ciao

z0mbix
11-12-2002, 12:08 PM
Originally posted by bingo5
i put the the iptables of mychl from this forum(https://mychl717.com/linked/iptables)
everything worked for one evening untill i
restarted my pc ????

Did you put the iptables script in /etc/init.d/ or /etc/rc.d/init.d/? If so, you can just do /etc/rc.d/init.d/iptables start

If you want iptables to be started automatically on boot up, either add the symlinks to the required runlevels as per the comments in the script or use the chkconfig command to do this for you with something like chkconfig --level 345 iptables (Haven't tried this!)

Reference:

http://www.redhat.com/docs/manuals/linux/RHL-7.2-Manual/custom-guide/chkconfig.html

bingo5
11-12-2002, 12:26 PM
yep,

iptables in /etc/init.d/
and symlinks in rc3.d,rc4.d,rc5.d