Mark Lutz wrote:
* l41484@alfa.ist.utl.pt writes:
Has anyone been able to use masquerading & firewalling scripts that appeared on suse 6.2 (6.1??).
Yes. It worked after I added the "echo..." line in the "start section" of "/sbin/init.d/masquerade":
# enable IP forwarding echo 1 > /proc/sys/net/ipv4/ip_forward
# check if IP forwarding is enabled
To me this seems ridiculous, since the next thing the script does is to check if IP forwarding is enabled:
if test `cat /proc/sys/net/ipv4/ip_forward` -eq 1 ; then
But it works! And who else would enable it, if not the masquerade script?
Well aehmmm.... if you look into /sbin/init.d/boot : ...[much stuff I don't understand] # # Enable IP forwarding ? # if test -e /proc/sys/net/ipv4/ip_forward -a -n "$IP_FORWARD" ; then ECHO_RETURN=$rc_done case $IP_FORWARD in yes) echo -n "Enabling IP forwarding" echo "1" > /proc/sys/net/ipv4/ip_forward || ECHO_RETURN=$rc_failed ;; *) echo -n "Disabling IP forwarding" echo "0" > /proc/sys/net/ipv4/ip_forward || ECHO_RETURN=$rc_failed ;; esac echo -e "$ECHO_RETURN" fi ...[more stuff I don't understand] They thought of it, in the end. Make sure, to have the setting for masquerade in rc.config! Juergen -- ========================================== __ _ Juergen Braukmann mail: brauki@cityweb.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu| /\\ /__/ / _ \/ // /\ \/ / ==========================================_\_v __/_/_//_/\_,_/ /_/\_\