From: Martijn Lievaart <m@rtij.nl>
To: Maxim Veksler <hq4ever@gmail.com>
Cc: netfilter@lists.netfilter.org
Subject: Re: can't ssh outside with OUTPUT (policy ACCEPT)
Date: Wed, 08 Aug 2007 23:46:53 +0200 [thread overview]
Message-ID: <46BA39CD.1010802@rtij.nl> (raw)
In-Reply-To: <b400c69a0708081235t3ff42d69yb28f60cb79231032@mail.gmail.com>
Maxim Veksler wrote:
> On 8/8/07, Martijn Lievaart <m@rtij.nl> wrote:
>
>> Maxim Veksler wrote:
>>
>>> Hello,
>>>
>>> Follwing a recent theread on this list, I've configued my firewall to
>>> allow incoming traffic from specific IP's only. Now I can't ssh
>>> outside, could some please explain why this happening ?
>>>
>>> The system is redhat 4.
>>>
>>>
>> You don't allow the return packets in. Add a -m state --state
>> ESTABLISHED,RELATED match as the first rule in your INPUT chain.
>>
>>
>
> That was it, thank you very much.
> How could I've debug it myself ?
>
Good question!
Add LOG rules for dropped traffic. Get out wireshark (formerly ethereal)
to see what goes on at the line. Read up on how to construct good
rulesets and maybe even on IP (no sorry, I don't have any links).
HTH,
M4
next prev parent reply other threads:[~2007-08-08 21:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 16:42 can't ssh outside with OUTPUT (policy ACCEPT) Maxim Veksler
2007-08-08 17:45 ` Martijn Lievaart
2007-08-08 19:35 ` Maxim Veksler
2007-08-08 21:46 ` Martijn Lievaart [this message]
2007-08-08 22:46 ` Maxim Veksler
2007-08-09 5:16 ` Martijn Lievaart
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=46BA39CD.1010802@rtij.nl \
--to=m@rtij.nl \
--cc=hq4ever@gmail.com \
--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