From: bjorn@ruberg.no (Bjørn)
To: netfilter@lists.netfilter.org
Subject: Re: ssh rule
Date: 13 Jan 2006 11:11:57 +0100 [thread overview]
Message-ID: <uiz7j94fnde.fsf@false.linpro.no> (raw)
In-Reply-To: <20060113100740.53076.qmail@web33407.mail.mud.yahoo.com>
Britto <britto_antony@yahoo.com> writes:
> Hi
>
> Can you pls anyone help me correct it if i am wrong. I
> have the following entries in the iptables
>
> iptables -P INPUT DROP
> iptables -P OUTPUT DROP
> iptables -P FORWARD DROP
> iptables -A INPUT -p tcp --dport 22 -j ACCEPT
>
> but still i can not do ssh to linux box from the PC
> which is sitting in the internal network.
How do you think the server's response to your login attempts will
find the way back to you when you tell it to drop all output traffic?
Hint: Check out the ESTABLISHED and RELATED states. When you
understand what they do, use them in your output rules.
--
Bjørn
next prev parent reply other threads:[~2006-01-13 10:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-13 10:07 ssh rule Britto
2006-01-13 10:11 ` Bjørn [this message]
[not found] <20060113101651.88870.qmail@web33404.mail.mud.yahoo.com>
2006-01-13 10:28 ` Bjørn
2006-01-13 11:07 ` Rob Sterenborg
2006-01-13 18:48 ` /dev/rob0
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=uiz7j94fnde.fsf@false.linpro.no \
--to=bjorn@ruberg.no \
--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