here is what the setup is... eth0 connects to the outside world and is setup via dhcp from a 4 port router. eth1 is internal subnet. I cannot ping eth0 from anything on eth1, and eth0 works just fine... I am posting this from it. If anyone has a 64bit linux system using NAT/forwarding/Masq... can I know WTF it takes?
Code: Select all
debianserver64:/etc/network# more interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp
allow-hotplug eth1
iface eth1 inet static
address 192.168.100.1
netmask 255.255.255.0
gateway 192.168.100.254
dns-nameservers 207.69.188.185 207.69.188.186
debianserver64:/etc/network#
debianserver64:/etc/network# iptables -L -v
Chain INPUT (policy ACCEPT 3089K packets, 34G bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT 0 -- eth0 eth1 anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT 0 -- eth1 eth0 anywhere anywhere
Chain OUTPUT (policy ACCEPT 3089K packets, 34G bytes)
pkts bytes target prot opt in out source destination
debianserver64:/etc/network# iptables -t nat -L -v
Chain PREROUTING (policy ACCEPT 35 packets, 5342 bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 22 packets, 66609 bytes)
pkts bytes target prot opt in out source destination
133 8124 MASQUERADE 0 -- any eth0 anywhere anywhere
Chain OUTPUT (policy ACCEPT 155 packets, 74733 bytes)
pkts bytes target prot opt in out source destination
debianserver64:/etc/network# cat /proc/sys/net/ipv4/ip_forward
1
debianserver64:/etc/network# ifconfig
eth0 Link encap:Ethernet HWaddr 00:19:DB:86:21:AC
inet addr:192.168.0.9 Bcast:255.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::219:dbff:fe86:21ac/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5924 errors:0 dropped:0 overruns:0 frame:0
TX packets:4488 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7326771 (6.9 MiB) TX bytes:759245 (741.4 KiB)
Interrupt:233 Base address:0xf200
eth1 Link encap:Ethernet HWaddr 00:30:BD:28:E1:22
inet addr:192.168.100.1 Bcast:192.168.100.255 Mask:255.255.255.0
inet6 addr: fe80::230:bdff:fe28:e122/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2321 errors:0 dropped:0 overruns:0 frame:0
TX packets:2204 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:144670 (141.2 KiB) TX bytes:3122129 (2.9 MiB)
Interrupt:50 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:3714360 errors:0 dropped:0 overruns:0 frame:0
TX packets:3714360 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:41242950416 (38.4 GiB) TX bytes:41242950416 (38.4 GiB)