LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Homework problem for network gurus

[ILUG] Homework problem for network gurus

Paolo Marchiori paolo at marchiori.net
Thu Apr 17 00:58:36 IST 2008


Timothy Murphy wrote:

internet ---- A (nat) ---192.168.2.0/24---B---192.168.3.0/24---C
some elements are missing, eg: either iptables-nat rules on B or routes 
(maybe dynamic, eg RIP?) on A must exist, otherwise C won't be able to 
even reach A. Let's assume no NAT on A.
C can't get past A: it's possible as A knows about 192.168.2.0/24 but 
nothing about 192.168.3.0/24 and thus does not let it go through (and 
even if it does, it doesn't masquerade those packets).
so:

1) make shorewall aware of the existence of C's network by adding nat 
rules on A to allow C "reach the internet": iptables -t nat -A 
POSTROUTING -s  192.168.3.0/24 -j MASQUERADE
or
2) bridge the two NICs on B in a bridge and suppress B's DHCP server 
(thru fedora's network configuration system)

I would go for #2 unless you specifically need to separate airwaves from 
copper.

no pints for me as I failed again to get a dream job in my dream city :|
p.



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell