first of all, i'd like to thank you all for your very quick answers. i didn't wait an answer so fast
i want this specific computer to be my router with that specific distro.
I have enable through YaST the forwarding but it didn't worked. As for now, let me show you the ifconfig:
eth0 Link encap:Ethernet HWaddr 00:E0:7D:94:CA:2B
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2e0:7dff:fe94:ca2b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:263037 errors:0 dropped:0 overruns:0 frame:0
TX packets:492271 errors:0 dropped:0 overruns:0 carrier:0
collisions:2815 txqueuelen:1000
RX bytes:33642079 (32.0 Mb) TX bytes:393929405 (375.6 Mb)
Interrupt:11 Base address:0xc000
eth2 Link encap:Ethernet HWaddr 00:06:4F:09:F7:E5
inet addr:81.109.68.192 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::206:4fff:fe09:f7e5/64 Scope:Link
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1894773 errors:0 dropped:0 overruns:0 frame:0
TX packets:1188923 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:935997847 (892.6 Mb) TX bytes:510960193 (487.2 Mb)
Interrupt:5 Base address:0xc400
i use eth2 for the internet and eth0 for the local. I run the commands you gave me as:
server:~ # echo "0" > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
after that, i run the command for the firewall:
server:~ # iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
and then i went to a local computer:
billg@billg:~> ping
www.suse.de
ping: unknown host
www.suse.de
i am doing something wrong. but what?
Thank you!