From: Nick Khamis <symack@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: [gentoo-user] IPTables - Going Stateless
Date: Tue, 21 May 2013 12:09:21 -0400 [thread overview]
Message-ID: <CAGWRaZbQZDK8eRS25dsh4+avOSrrzOSOF4aOXWWnvf0eS6BeZw@mail.gmail.com> (raw)
In-Reply-To: <1369150221.166497859@f200.mail.ru>
>> Looks like the packet never gets to the tcp chain. what is --syn?
It seems that way!!!! I am not sure what --syn is actually. But even
if I comment it out it does not work. Also, for testing I changed the
SSH rule to allow bidirectional traffic until this is fixed:
-A TCP -p tcp -m tcp --dport 22 -j ACCEPT
As mentioned before everything works as expected until when I try to
close up the ports not included in the TCP and UDP chains:
#echo -e " - Dropping input TCP and UDP traffic to closed ports"
-A INPUT -i $INTIF1 -p tcp -j REJECT --reject-with tcp-rst
-A INPUT -i $INTIF1 -p udp -j REJECT --reject-with icmp-port-unreachable
#echo -e " - Dropping output TCP and UDP traffic to closed ports"
-A OUTPUT -o $INTIF1 -p tcp -j REJECT --reject-with tcp-rst
-A OUTPUT -o $INTIF1 -p udp -j REJECT --reject-with icmp-port-unreachable
#echo -e " - Dropping input traffic to remaining protocols sent
to closed ports"
-A INPUT -i $INTIF1 -j REJECT --reject-with icmp-proto-unreachable
#echo -e " - Dropping output traffic to remaining protocols sent
to closed ports"
-A OUTPUT -o $INTIF1 -j REJECT --reject-with icmp-proto-unreachable
Thanks in Advance,
Nick.
prev parent reply other threads:[~2013-05-21 16:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-21 15:30 [gentoo-user] Re: [gentoo-user] IPTables - Going Stateless the guard
2013-05-21 16:09 ` Nick Khamis [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:
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=CAGWRaZbQZDK8eRS25dsh4+avOSrrzOSOF4aOXWWnvf0eS6BeZw@mail.gmail.com \
--to=symack@gmail.com \
--cc=gentoo-user@lists.gentoo.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