From: Ralf Spenneberg <lists@spenneberg.org>
To: Gilles Yue <gyue@novelgmt.intnet.mu>
Cc: Netfilter <netfilter@lists.netfilter.org>
Subject: RE: Help on IPTABLES
Date: 13 Oct 2003 15:23:04 +0200 [thread overview]
Message-ID: <1066051384.4193.61.camel@kermit> (raw)
In-Reply-To: <83055D4B014C9E478D2F04624B9E82CFD475@noveldc.novelgmt.mu>
Am Mon, 2003-10-13 um 14.09 schrieb Gilles Yue:
> Chain INPUT (policy DROP)
>
> target prot opt source destination
>
> RH-Lokkit-0-50-INPUT all -- 0.0.0.0/0 0.0.0.0/0
>
> ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
When establishing a connection with a webserver the packets in the INPUT
chain are coming from the webserver port 80, therefore spt:80 not dpt:80
Same to the rest with the exception of DNS. Here you did it correct:
> ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp spt:53
By the way, you get more info on the rules using
iptables -vnL
Cheers,
Ralf
--
Ralf Spenneberg
RHCE, RHCX
Book: Intrusion Detection für Linux Server http://www.spenneberg.com
IPsec-Howto http://www.ipsec-howto.org
Honeynet Project Mirror: http://honeynet.spenneberg.org
next prev parent reply other threads:[~2003-10-13 13:23 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-13 12:09 Help on IPTABLES Gilles Yue
2003-10-13 13:23 ` Ralf Spenneberg [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-12-16 17:04 Help on Iptables wlagmay
2006-12-16 19:20 ` Pascal Hambourg
2006-12-17 12:08 ` wlagmay
2003-10-14 12:50 Help on IPTABLES Gilles Yue
2003-10-10 6:43 Gilles Yue
2003-10-09 12:24 Gilles Yue
2003-10-09 13:54 ` Rob Sterenborg
2003-10-14 6:59 ` Joel Newkirk
2003-10-09 12:20 info
2003-10-11 14:32 ` Leonardo Rodrigues Magalhães
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=1066051384.4193.61.camel@kermit \
--to=lists@spenneberg.org \
--cc=gyue@novelgmt.intnet.mu \
--cc=netfilter@lists.netfilter.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