Internet Gateway Opensuse 12.3

Hi there, I have fallowed this how to SDB:Internet connection sharing - openSUSE but I’m probably missing something.

DHCP server is working fine, the internal interface is plunged to a router in the WAN port and it get’s automatically IP address from the DHCP server but there is no internet connection.

I’m sure I’m missing some firewall rules or routing problem.

eth0 is the internal nic and eth1 is the internet nic

Here are the network interfaces configuration:

eth0 Link encap:Ethernet HWaddr A0:F3:C1:04:AB:99
inet addr:192.168.2.254 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::a2f3:c1ff:fe04:ab99/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:3507 errors:0 dropped:0 overruns:0 frame:0
TX packets:4907 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:800300 (781.5 Kb) TX bytes:5971412 (5.6 Mb)

eth1 Link encap:Ethernet HWaddr 70:71:BC:CA:DF:38
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::7271:bcff:feca:df38/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:39066 errors:0 dropped:1 overruns:0 frame:0
TX packets:29568 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:41912405 (39.9 Mb) TX bytes:5059011 (4.8 Mb)
Interrupt:20 Memory:f7fc0000-f7fe0000

iptables:

iptables -t nat -L -n

Chain PREROUTING (policy ACCEPT)
target prot opt source destination

Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all – 0.0.0.0/0 0.0.0.0/0
MASQUERADE all – 0.0.0.0/0 0.0.0.0/0

Thanks

On 2013-06-09 23:06, FelipeMiranda wrote:
> Here are the network interfaces configuration:

While you get help on this, please use code tags for printouts and
commands. Advanced forum editor, ‘#’ button.
Posting in
Code Tags - A Guide

Otherwise, your text is not readable.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

On 2013-06-09 23:06, FelipeMiranda wrote:
>
> Hi there, I have fallowed this how to ‘SDB:Internet connection sharing -
> openSUSE’ (http://en.opensuse.org/SDB:Internet_connection_sharing) but
> I’m probably missing something.

The intention of that article is to provide internet connection via your
computer (with two interfaces), instead of having them connect directly
to the site router or switch. Ie, you act as router for them.

> DHCP server is working fine, the internal interface is plunged to a
> router in the WAN port and it get’s automatically IP address from the
> DHCP server but there is no internet connection.

On this machine (acting as gateway), or in the machines connected to it?

> I’m sure I’m missing some firewall rules or routing problem.

Why are you not simply using SuSEfirewall2? If you are, you are not
showing how it is configured.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)