Author Topic: IPTABLE Rule to allow traffic between WAN and DMZ  (Read 3037 times)

nicolasdiogo

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 263
  • Karma: +3/-0
  • a pessimist, but trying out optimism
    • View Profile
    • BrainPowered Business Intelligence Consultancy - UK
IPTABLE Rule to allow traffic between WAN and DMZ
« on: March 29, 2011, 08:42:06 pm »
hi,

i have my systems setup in a similar fashion as described here:
http://www.cyberciti.biz/faq/linux-demilitarized-zone-howto/

where
eth0 - connected to WAN (but internally it has subnet 192.168.1.0/24)
eth1 - connected to LAN (another subnet 192.268.254.0/24)
eth2 - connected to DMZ (subnet 192.168.2.0/24) - this is where email, HTTP, FTP server are working.

on Zentyal,  i have defined eth0 and eth2 as 'external WAN' .

but Zentyal intercepts all traffic which is forwarded from my router (192.168.1.1)  to my HTTP server (192.168.2.2) and the only way to allow for traffic to reach my server is to add a forward rule in Zentyal.

however,  that makes my HTTP logs useless as all traffic is then identified as originating from 192.168.1.1

what i would like to have is an IPTABLE rule that allows traffic to flow freely between eth0 and eth2.

does anyone know sufficient IPTABLES  to create this type of rule?  or have i misunderstood what i really need?

thanks,

Nicolas


my opinions and suggestion expressed on this forum are my own as a user.
please note that i am not part of the Zentyal Development Team

www.brainpowered.net - supporting open-source Business Intelligence in Europe

jsalamero

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1419
  • Karma: +45/-1
    • View Profile
Re: IPTABLE Rule to allow traffic between WAN and DMZ
« Reply #1 on: April 08, 2011, 04:30:33 am »
Can you show us your iptables -t nat -L -n -v output?

nicolasdiogo

  • Forum Moderator
  • Zen Samurai
  • *****
  • Posts: 263
  • Karma: +3/-0
  • a pessimist, but trying out optimism
    • View Profile
    • BrainPowered Business Intelligence Consultancy - UK
Re: IPTABLE Rule to allow traffic between WAN and DMZ
« Reply #2 on: April 16, 2011, 02:11:56 pm »
thanks for your time.

i figure tha t i should have a single DMZ subnet
create a new subnet for the servers to be isolated and then create firewall rules to constrain the new subnet so that it would not have access to the rest of the network.
my opinions and suggestion expressed on this forum are my own as a user.
please note that i am not part of the Zentyal Development Team

www.brainpowered.net - supporting open-source Business Intelligence in Europe