#routing
echo 1 > /proc/sys/net/ipv4/ip_forward
#masquerading (necessary if you're using private IPs on your LAN)
iptables -t nat -A POSTROUTING -o $DSL_INTERFACE -j MASQUERADE
Place those lines in a shell script, preferably in one that gets executed
at boot time.
Check that the kernel module ip_chains is not started. Loading it is the
default behavior of SuSE 7.2 if the personal firewall is installed which is
part of the default installation.
You can't use ip_chains and ip_tables at the same time. List loaded modules
with 'lsmod', remove unwanted ones with 'rmmod $MODULE'.
I strongly suggest setting up a firewall script too. With routing/masq. you
open up your network to the world. It would be a bad idea doing it without
securing your network. Use the SuSE firewall2 (meant for routers, personal
firewall is for stand-alone boxes) or read 'man iptables' and set up your
own firewall script according your needs.
Dragan
>> Hi,
>> Computer A (SuSE7.2, Kernel 2.4.4) shall be router for computer B
>> (SuSE7.3, Kernel 2.4.10). Ping and talk works fine between the two, but
>> no routing so far. Computer A worked fine as router for B when I had
>> Windows ME installed on B. I replaced ME with SuSE7.3 recently. What did
>> I overlook?
> You have to configure routing and masquerading explicitly.
> #routing
> echo 1 > /proc/sys/net/ipv4/ip_forward
> #masquerading (necessary if you're using private IPs on your LAN)
> iptables -t nat -A POSTROUTING -o $DSL_INTERFACE -j MASQUERADE
--
Best regards,
Klaus
1. route problem: route forgot to specify route netmask.
3. Routing problem with source-based routing and routing packets back to sender machine.
4. linux mouse problemsouse problems
5. Where can I find Kernel header file for SuSE7.1
6. Cancel <6JsRc.49294$yT2.25044@clgrps13>
7. "which:: command not found" in bash/SuSE7.1
10. SuSE7.2 install of Gimp 1.2.0-1 - failed dependencies
11. Scanner Epson 610U with SuSE7.1
13. apachectl /suse7.2/rcapache "unused" /php4 module / authldap module