Network config review

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I have a few questions about my current setup; if anyone would be so
kind to take a look and let me know if there are any issues with the
configuration. Thanks!

My current network setup (a.b.c.  Refers to public ip's, X= any #
between 3 and 62)
-------------
| Internet |
------------- (ISP gateway) a.b.c.1  255.255.255.192
     |
     |
     |
-------------------- eth0 a.b.c.2  255.255.255.192
| gateway/firewall |
-------------------- eth1 192.168.1.2  255.255.255.0
     |     
     |
     |
-------------------- (192.168.1.X) 255.255.255.0 
| Internal Machines |  
--------------------
     
NAT
iptables -t nat -A PREROUTING -d a.b.c.X -i eth0 -j DNAT
--to-destination 192.168.1.X
iptables -t nat -A POSTROUTING -s 192.168.1.X -o eth0 -j SNAT
--to-source a.b.c.X


Routing tables (sample)
Destination		GW		Genmask		Iface
a.b.c.X	       * 	  255.255.255.255	  UH	 eth1 (??eth0??)
a.b.c.0	       * 	  255.255.255.192	  U	 eth0
192.168.1.0	       * 	  255.255.255.0	  U	 eth1
127.0.0.0		 *	  255.0.0.0		  U	 lo
Default	    a.b.c.1   0.0.0.0		  UG	 eth0

(??Do I need to add any of the routes below??)
192.168.1.0	 192.168.1.2  255.255.255.0     UG   eth1
a.b.c.0	   a.b.c.2    255.255.255.0     UG   eth0 
192.168.1.2  	 *	  255.255.255.255   UH	 eth1 (??eth1??)
192.168.1.X  	 *	  255.255.255.255   UH	 eth1 (??eth1??)
a.b.c.2	       * 	  255.255.255.255	  UH	 eth1 (??eth0??)




Patrick Ahler
Systems Administrator
Vikus Corporation 



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux