Simple masquerading setup
Hi, For reasons I will not bore you with, I need a very simple masquerading setup. According to the sample firewall config supplied with SuSe 7, my needs can be met by the combination of just two commands : (a) "echo 1 /proc/sys/net/ipv4/ip_forward", (b) "ipchains -A forward -j MASQ -i ppp0" These commands work just fine when entered from the keyboard. Can anyone tell me where I should put them to have them execute automatically at boot-time ? I tried adding them to boot.local, but they do not appear to execute - masquerading is not available when I put them there. Thanks in anticipation, Geoff _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Geoff: you need make yours custon script using yast you active echo 1 /proc/sys/net/ipv4/ip_forward active in rc.config IP_Forward = yes open yast system administration change configuration file push ( F4 ) ip_forward change the valor to yes exit the yast one example script gateway # start script #! /bin/bash echo " Startting Internet Gateway " echo 1 /proc/sys/net/ipv4/ip_forward # if you active IP_Forward in rc.config is not nesesario the line echo 1 /proc/sys/net/ipv4/ip_forward ipchains -A forward -j MASQ -i ppp0 # end script write the scrip to /sbin/gateway chmod 7 to /sbin/gateway ( only root permision ) # your run levels rc2.d ( text interface and network ) cd /sbin/init.d/rc2.d ln -s /sbin/gateway S53Gateway cd .. # if need run levels rc3.d ( grafic interface and network ) cd rc3.d ln -s /sbin/gateway S53Gateway ready reboot you system you look for mensager " Startting Internet Gateway " A Figueroa El mié, 03 ene 2001, quintaq@yahoo.co.uk escribió:
Hi,
For reasons I will not bore you with, I need a very simple masquerading setup. According to the sample firewall config supplied with SuSe 7, my needs can be met by the combination of just two commands : (a) "echo 1 /proc/sys/net/ipv4/ip_forward", (b) "ipchains -A forward -j MASQ -i ppp0"
These commands work just fine when entered from the keyboard. Can anyone tell me where I should put them to have them execute automatically at boot-time ? I tried adding them to boot.local, but they do not appear to execute - masquerading is not available when I put them there.
Thanks in anticipation,
Geoff
_________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
participants (2)
-
Alfredo Figueroa
-
quintaq@yahoo.co.uk