Ubuntu 12.04 Server version is on both the proposed dedicated Firewall-Router PC1 (having eth0 and eth1 Ethernet cards) and also exists on PC2 which is located behind PC1. PC1 faces the Internet. On the back side of PC1 it is connected via a crossover cable to PC2. I'm a novice at this.
I followed the Shorewall setup example exactly (except for their IP addresses) given here: https: //help.ubuntu.com/ community/ ShorewallBasics
I used the Static IP eth0 card version of their instructions in my /etc/network/interfaces file and it worked! PC1 could ping things on the Internet and it could Ping PC2. And PC2 could ping PC1 and Ping things out on the Internet. Perfect!!!
I decided then, (-to screw up my whole day-) and to try having PC1 get it's external eth0 IP via DHCP instead, so I commented out ('#') my entire STATIC section for setting eth0's EXTERNAL IP address and added:
-in it's place to have dhcp pick the IP. I then did a-Code:# External network interface auto eth0 iface eth0 inet dhcp
And then started pinging from the PC1 computer. I could still ping things on the Internet. I could directly ping PC1's eth1 card's static IP. However, when I tried to ping PC2's static IP address I got 'Host Unreachable' with 100% packet loss. The same happened in trying to ping PC1 from PC2. I then rebooted both machines and the situation did not change. So, not being able to figure out what was wrong, I backtracked and changed PC1 back to its original Static eth0 configuration in /etc/network/interfaces. I then did aCode:# ifdown -a;ifup -a
And discovered that the exact same problem still exists. A reboot did not help either. There is something about refreshing interfaces I seem not to know or understand....or....I am holding my mouth wrong.Code:# ifdown -a;ifup -a
I know there must be something simple I must be missing here in my limited knowledge base??? But, is something contrary surviving both a network refresh and a reboot in my networking somehow???