netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: homer_2008@gmx.net
To: Netfilter <netfilter@vger.kernel.org>
Subject: Firewallrules for a gentoo box with 4 nics
Date: Tue, 24 Nov 2009 20:45:47 +0100	[thread overview]
Message-ID: <20091124194547.155180@gmx.net> (raw)

Hi list,

I am playing with a little gentoo box installed on a pcengine alix board with four nics. I need to secure it with the iptables firewall. Here is the configuration of the nics:
------------------------------------------------------------
1. eth0 (internal trusted network)
2. eth1,ppp0 (internet DSL (ppp0) with DHCP IP address changing every 24 hours)
3. eth2 (a DMZ Zone with a single Webserver)
4. wlan0 (miniPCI atheros card)(Wireless LAN interface only webtraffic should be enabled)

------------------------------------------------------------
InternetDSL --> eth1(carrier)ppp0 
Internal network --> eth0
DMZ --> eth2
------------------------------------------------------------
From the internet all ports should be closed accept all related,established connections. One port should be open for openvpn 1194/udp.

The internal network should have open the DHCP,DNS,HTTP ports.

The wireless wlan0 nic should only have open the port 80 for webtraffic.

The DMZ should only have the ports open for the webserver.

NAT should be from the internet (ppp0,eth1) to the internal network (eth0) and eth2(DMZ)
------------------------------------------------------------
the ips for the nics should be the following:

eth0 - internal - 192.168.0.0/24
eth1(ppp0) - DHCP because DSL IP is changing every 24 hours.
eth2 - 172-16.0.0/24

------------------------------------------------------------

My question to the list is, how can I realize this idea with iptables?

I hope you help me on this task.

Homer

-- 
Preisknaller: GMX DSL Flatrate für nur 16,99 Euro/mtl.!
http://portal.gmx.net/de/go/dsl02

                 reply	other threads:[~2009-11-24 19:45 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091124194547.155180@gmx.net \
    --to=homer_2008@gmx.net \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).