Re: OT: Advice on network setup
First up, thanks for your help.
On Fri, Jan 31, 2003 at 12:38:47AM +0100, Bernd Eckenfels wrote:
> On Fri, Jan 31, 2003 at 10:13:29AM +1100, Lucas Barbuto wrote:
> > - On the firewall, what will I set the internal IP to? It
> > doesn't matter right?
> well, if you are going to use only assigned addresses, i would suggest you
> use the same as the external, because this safes address space. .226
If I do this, how do I set the gateway for my internal interface? For
example, my /etc/network/interfaces
# eth0 external interface
iface eth0 inet static
# eth1 internal interface
iface eth1 inet static
These two entries would be identical, I'm guessing that isn't going to
work. So I would need to modify the routing table to tell eth1 how to
get out (via eth0)? How do I do that? And vice-versa?
I setting up the routing table the way I thought it should go and it
came out like this:
# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Iface
184.108.40.206 0.0.0.0 255.255.255.255 UH eth0
220.127.116.11 0.0.0.0 255.255.255.240 U eth0
18.104.22.168 0.0.0.0 255.255.255.240 U eth1
0.0.0.0 22.214.171.124 0.0.0.0 UG eth0
0.0.0.0 126.96.36.199 0.0.0.0 UG eth1
0.0.0.0 188.8.131.52 0.0.0.0 UG eth0
Is this correct? I just want to get traffic going both ways.