Routing within Opensuse 11.1

Hi,

I’m using KDE 4.1 and I’m trying to setup routing.

I’ve connected my t’internet ADSL Modem (dynamic IP with ddclient updating dyndns) to one NIC and setup the firewall up as an External Zone for it.

On the other NIC I’ve set it up as a Static IP (192.168.0.1) and the wireless box thats connected to it is the DHCP server and points back to the static ip as the default gateway.

From the wireless PCs I can access the web admin page of the wireless box and I can also ping the static ip address. I try and ping the external ip address but get no replies (this maybe the firewall rules not allowing pings, not checked yet). I also can’t ping any websites such as Demon.

Any ideas on what I’ve failed to setup?

Cheers for any help.

T.

Hi,

you need to enable forwarding on the kernel. Number of ways to do this I will describe my preferred method:

from a command line issue the following:

cat /proc/sys/net/ipv4/ip_forward

if a 0 is returned then ip forwarding is disabled.

So we turn it on.

issue the following:

sysctl -w net.ipv4.ip_forward=1

This will set the kernel to forward packets immediately, no reboot required.

This is not a persistent setting, but is a good way to test before making a permanent change.

To make the change permanent following successful test edit the following file:

/etc/sysctl.conf

add the following line:

net.ipv4.ip_forward = 1

save and exit.

Next time the system restarts the kernel will be set to forward packets.

hth
J