server like router suse 10.3

how i can configure my server like router for control a network
lab to share one way to get out to internet. My server have 2 network cards. My server already get internet, but the other
computers in the lab not get the out to internet.

The computer in the lab can to “see” the server with ping command, but not can get out to internet.

Thanks a lot.
Apolo11

Hi,

First step is to activate packet forwarding in your kernel if it is not already set.

You can check the seeting by issuing the following from a consle as root or equiv.

cat /proc/sys/net/ipv4/ip_forward

If the value returned is 0 the forwading is disabled. To enable use sysctl -w

sysctl -w net.ipv4.ip_forward=1

or echo

echo 1 > /proc/sys/net/ipv4/ip_forward

To make this a permanent change (you will want to) change /etc/sysctl.conf.

Using an editor find the line
net.ipv4.ip_forward = 0 and change the 0 to a 1.

You can just change sysctl.conf then issue a systctl -p /etc/sysctl.conf to lad the config.

hth
J