From: Eric Constantineau <mekanik@nerim.net>
To: Ralf Spenneberg <spenneb@spenneberg.de>
Cc: netfilter@lists.netfilter.org
Subject: Re: newbie problem
Date: Thu, 20 Feb 2003 12:39:13 +0100 [thread overview]
Message-ID: <3E54BE60.FB42C787@nerim.net> (raw)
In-Reply-To: 1045470311.2231.62.camel@kermit.spenneberg.de
Is the web server on the same machine that is firewalling or is it behind ?
If it is behind, set it on FORWARD instead of INPUT...
The INPUT chain is for traffic entering the firewall machine itself, OUTPUT
chain is for the packets coming from the firewall machine and FORWARD is for
all other packets passing throught firewall...
Eric
Ralf Spenneberg wrote:
> Am Mon, 2003-02-17 um 08.43 schrieb Chris Barnes:
> > hi people i'm new to the list.
> >
> > anyway, I have a very simple firewall on a web server. I want to deny
> > access to everything except the web server (port 80)
> >
> > i have set the poilcy on all chains to drop and i have added a rule to
> > the input chain which says
> >
> > iptables -A INPUT -p tcp --sport 80 -j ACCEPT
> >
> It is --dport 80 if you want to allow packet with the destination port
> 80 to reach your webserver.
>
> By the way, i hope you have not set PREROUTING and POSTROUTING to DROP,
> do you?
>
> Cheers,
>
> Ralf
>
> --
> Ralf Spenneberg
> UNIX/Linux Trainer and Consultant, RHCE, RHCX
> Waldring 34 48565 Steinfurt Germany
> Fon: +49(0)2552 638 755 Fax: +49(0)2552 638 757
> Mobil: +49(0)177 567 27 40
>
> Markt+Technik Buch: Intrusion Detection für Linux
> Server
> IPsec/PPTP Kernels for Red Hat Linux:
> http://www.spenneberg.com/.net/.org/.de
> Honeynet Project Mirror: http://honeynet.spenneberg.org
> Snort Mirror: http://snort.spenneberg.org
next prev parent reply other threads:[~2003-02-20 11:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-17 7:43 newbie problem Chris Barnes
2003-02-17 8:09 ` Joel Newkirk
2003-02-17 10:31 ` Chris Barnes
2003-02-17 8:25 ` Ralf Spenneberg
2003-02-20 11:39 ` Eric Constantineau [this message]
2003-02-17 9:00 ` Ralf Spenneberg
[not found] ` <1045470029.2231.54.camel@kermit.spenneberg.de>
[not found] ` <1045477595.21053.2.camel@billybob.back2front.homelinux.org>
2003-02-17 10:27 ` Ralf Spenneberg
-- strict thread matches above, loose matches on Subject: below --
2003-02-17 8:49 Eugene Joubert
2003-02-17 10:48 ` Chris Barnes
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=3E54BE60.FB42C787@nerim.net \
--to=mekanik@nerim.net \
--cc=netfilter@lists.netfilter.org \
--cc=spenneb@spenneberg.de \
/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