jimmyz
Joined: 11 Mar 2011 Posts: 11
|
Posted: Fri Mar 11, 2011 8:10 pm Post subject: Zeroshell article about internet gateway confused me |
|
|
Hello,
I am not a networking expert so just wanted to see if someone could clarify something for me about my Network and NAT config. I found out about zeroshell yesterday from an article on linuxplanet which linked to a HOWTO article. Just what I was looking for.
I have my zeroshell router up and running, its a simple setup with two ethernet adapters one connected via PPPoE to my ISP through a dsl modem and the other to a switch for the LAN side. It all seems to be working after some futzing around. Got my basic firewall rules working, port forwarding etc.
I couldn't work out what the author of the article meant when he said to create a bridge with internet connection and ethernet interfaces and then to put the bridge in NAT enabled interfaces. Everytime I tried to do this part I lost the internet connection. What I have working is no bridges setup and just the ppp interface being NAT enabled.
The article in question is here: http://www.linuxplanet.com/linuxplanet/tutorials/6751/2/
here is my ifconfig and netstat output, just curious if I am doing something wrong, thanks
root@jimsdigital root> ifconfig
ETH00 Link encap:Ethernet HWaddr 00:E0:7D:CA:E9:E8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1129724 errors:0 dropped:0 overruns:0 frame:0
TX packets:1392488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:440394569 (419.9 Mb) TX bytes:1325209926 (1263.8 Mb)
Interrupt:11 Base address:0xd000
ETH00:00 Link encap:Ethernet HWaddr 00:E0:7D:CA:E9:E8
inet addr:192.168.0.75 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:11 Base address:0xd000
ETH01 Link encap:Ethernet HWaddr 00:A0:CC:32:93:79
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1392700 errors:0 dropped:0 overruns:0 frame:0
TX packets:1124918 errors:4 dropped:0 overruns:4 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1335302251 (1273.4 Mb) TX bytes:446052232 (425.3 Mb)
Interrupt:10 Base address:0xd800
VPN99 Link encap:Ethernet HWaddr 00:FF:B0:DC:3E:6D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
VPN99:00 Link encap:Ethernet HWaddr 00:FF:B0:DC:3E:6D
inet addr:192.168.250.254 Bcast:192.168.250.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
dummy1 Link encap:Ethernet HWaddr 12:69:8E:3D:C5:5A
inet addr:192.168.142.142 Bcast:192.168.142.255 Mask:255.255.255.255
UP BROADCAST RUNNING NOARP MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:5601 errors:0 dropped:0 overruns:0 frame:0
TX packets:5601 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:352681 (344.4 Kb) TX bytes:352681 (344.4 Kb)
ppp0 Link encap:Point-to-Point Protocol
inet addr:65.7.xxx.xxx P-t-P:70.159.xxx.xx Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:1390332 errors:0 dropped:0 overruns:0 frame:0
TX packets:1123819 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1304572545 (1244.1 Mb) TX bytes:421299937 (401.7 Mb)
root@jimsdigital root> netstat -r -n
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
70.159.xxx.xx 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 ETH00
192.168.250.0 0.0.0.0 255.255.255.0 U 0 0 0 VPN99
0.0.0.0 70.159.xxx.xx 0.0.0.0 UG 0 0 0 ppp0
-------------------
Never mind, I found a thread that answers my question here:
http://www.zeroshell.net/eng/forum/viewtopic.php?t=2105 |
|