Firewall question...
Hello,
Considering the folowing network scheme:
Internet (Diffrent ISP) ------ Subnet Y (10.0.0.0/20)
|
|
|
(eth0)
Firewall
(eth1)
|
|
|
My Subnet(10.0.1.0/24) ------ Firewall/Router(SNAT) ------ Internet (My ISP).I have to filter all traffic between Subnet Y and My Subnet with a firewall box. And I don't know how to forward this traffic between those two interfaces presented in this scheme.
Many thanx.
---------------------------------
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
Quoted 14 lines · V. A.H.
Hello,
Considering the folowing network scheme:
Internet (Different ISP)
Subnet Y (10.0.0.0/20)
(eth0)
Firewall
(eth1)My Subnet(10.0.1.0/24)
Quoted 7 lines
Firewall/Router(SNAT)
Internet (My ISP).
I have to filter all traffic between Subnet Y and My Subnet with a firewall box. And I don't know how to forward this traffic between those two interfaces presented in this scheme.
You don't need to do anything special on the top firewall shown here - what you need to do is make sure the bottom firewall (which I assume is the default route for the machines in your Subnet 10.0.1.0/24) has a route for Subnet Y pointing to eth1 as the next hop.
The top firewall just needs to know about the two networks on either side of it, which is automatic under Linux - it will only need a default gateway of its own if it needs to contact the Internet for its own reasons (eg DNS?).
If this still isn;t quite clear to you, repost your diagram with all IP subnet
addresses shown, and IP addresses for each interface. Then I can give a
clearer answer.
Regards,
Antony.
Signature · 9 lines
Programming is a Dark Art, and it will always be. The programmer is
fighting against the two most destructive forces in the universe:
entropy and human stupidity. They're not things you can always
overcome with a "methodology" or on a schedule.
- Damian Conway, Perl God
Please reply to the list;
please don't CC me.Thx for your answer.
Still a little bit confused.
This is the scheme with ip addresses:
Internet (Different ISP)
|
Subnet Y (10.0.0.0/20)
|
(eth0)-10.0.1.254
Firewall
(eth1)-10.0.1.253
|
My Subnet(10.0.1.0/24)
|
(eth1)-10.0.1.1(default route for My Subnet)
Firewall/Router(SNAT)
(eth0)-some real ip address
|Internet (My ISP).
<<What you need to do is make sure the bottom firewall (which I assume is the default route for the machines in your Subnet 10.0.1.0/24) has a route for Subnet Y pointing to eth1 as the next hop.
The top firewall just needs to know about the two networks on either side of it, which is automatic under Linux - it will only need a default gateway of its own if it needs to contact the Internet for its own reasons (eg DNS?).>>
The top firewall box doesn't need to contact the Internet. Will have to forward packets between the interfaces and filter the traffic.
Best regards.
---------------------------------
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
Quoted 11 lines · V. A.H.
Thx for your answer.
Still a little bit confused.
This is the scheme with ip addresses:Internet (Different ISP)
Subnet Y (10.0.0.0/20)
(eth0)-10.0.1.254
Firewall
(eth1)-10.0.1.253
I'm not surprised you are a little bit confused if these IP addresses are accurate :)
Please confirm: is eth0 10.0.1.254, or 10.0.0.254?
And: you have one subnet 10.0.0.0/20, with another connected network 10.0.1.0/24 (ie a subnet of the original network)???
This is going be difficult to sort out.
Hosts in Subnet Y are going to expect 10.0.1.0/24 addresses to be local, not via a router - the Firewall you've shown is going to have to do a lot of nasty proxy-arp'ing for this setup to work.
Quoted 7 lines
My Subnet(10.0.1.0/24)
(eth1)-10.0.1.1(default route for My Subnet)
Firewall/Router(SNAT)
(eth0)-some real ip addressInternet (My ISP).
I recommend you start with two non-overlapping subnets. If you cannot do
that, you have some significant routing challenges to solve, before you get anywhere near setting up netfilter to block some of the otherwise routed packets.
Regards,
Antony.
Signature · 6 lines
Software development can be quick, high quality, or low cost.
The customer gets to pick any two out of three.
Please reply to the list;
please don't CC me.This is how the whole setup is looking for the moment:
Internet (Different ISP)
|
Subnet Y (10.0.0.0/20)
|
|
My Subnet(10.0.1.0/24)
|
(eth1)-10.0.1.1(default route for My Subnet)
Firewall/Router(SNAT)
(eth0)-some real ip address
|Internet (My ISP).
<<I'm not surprised you are a little bit confused if these IP addresses are accurate :)
Please confirm: is eth0 10.0.1.254, or 10.0.0.254?
And: you have one subnet 10.0.0.0/20, with another connected network 10.0.1.0/24 (ie a subnet of the original network)???>>
10.0.0.0/20 is a metropolitan network; in order to access this network I have a /24 subnet available, 10.0.1.0 and the netmask for my clients is 255.255.240.0 (/20). As I mentioned before, I have to setup this firewall between metropolitan network and my clients. And I'm stuck :-) The network interfaces from my furure firewall (I hope) can take only an ip from my available /24 network.
Thank You.
---------------------------------
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.