All of
 help / color / mirror / Atom feed
From: Eric Leblond <>
Subject: Re: Public Webserver behind IPtables Router
Date: 18 Jul 2003 23:50:11 +0200	[thread overview]
Message-ID: <1058565010.18859.5.camel@porky> (raw)
In-Reply-To: <001c01c34d75$51848ea0$5001a8c0@linux>

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

Le ven 18/07/2003 à 23:41, thomas krause a écrit :
> Hello , i tried to set up an IPTables Router for my Webserver. All
> hosts have has an official IP Adress. The eth0 of the Router is in  
> iptables -P FORWARD DROP
> iptables -A FORWARD -s -p tcp --dport 80 -j ACCEPT
> iptables -P OUTPUT ALLOW
> Will this work ? O.K. Iam a Newbie but i will learn !

No, you just authorize packet to port 80 and what happened to return
packet to have this working you have to add a rules using STATE, ie
accept all packet of the connection (and in particular response packet)
	iptables -P FORWARD DROP
	iptables -A FORWARD -m state --state ESTABLISHED -j ACCEPT
	iptables -A FORWARD -s -p tcp --dport 80 -j ACCEPT
Eric Leblond <>

[-- Attachment #2: Ceci est une partie de message numériquement signée --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2003-07-18 21:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-18 21:41 Public Webserver behind IPtables Router thomas krause
2003-07-18 21:50 ` Eric Leblond [this message]

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:

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

  git send-email \
    --in-reply-to=1058565010.18859.5.camel@porky \ \ \

* 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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.