From: Mart Frauenlob <mart.frauenlob@chello.at>
To: Anthony Taylor <ataylor@fallsgeek.com>
Cc: netfilter@vger.kernel.org
Subject: Re: Some oddities while setting up outbound filtering on a web server
Date: Fri, 07 Mar 2014 05:46:17 +0100 [thread overview]
Message-ID: <53194F19.90708@chello.at> (raw)
In-Reply-To: <CA+5v4QAeWp6Azau3nYpL2ev-jqstSs+-BGBMuyavbKSK85JiAg@mail.gmail.com>
On 07.03.2014 00:39, Anthony Taylor wrote:
> On Thu, Mar 6, 2014 at 12:26 PM, Mart Frauenlob
> <mart.frauenlob@chello.at> wrote:
>> On 04.03.2014 17:52, Anthony Taylor wrote:
>>>
>>> On Sat, Feb 22, 2014 at 4:37 AM, Mart Frauenlob
>>> <mart.frauenlob@chello.at> wrote:
>>>>
>>>>
>>>> On 21.02.2014 23:36, Anthony Taylor wrote:
[...]
> So when I'm satisfied with my logs I should just do a:
> iptables -P OUTPUT DROP
yep
[...]
>>>
>>>>
>>>> nf_conntrack_tcp_be_liberal - BOOLEAN
>>>> 0 - disabled (default)
>>>> not 0 - enabled
>>>>
>>>> Be conservative in what you do, be liberal in what you accept
>>>> from others.
>>>> If it's non-zero, we mark only out of window RST segments as
>>>> INVALID.
>>>>
>>>> see:
>>>> Documentation/networking/nf_conntrack-sysctl.txt
>>>
>>>
>>>
>>> cat /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal
>>> 0
>>>
>>> This appears to be disabled.
>>>
>>
>> Then try to enable it???
>
> echo 1 > /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal
> -su: /proc/sys/net/netfilter/nf_conntrack_tcp_be_liberal: Permission denied
>
strange, don't know what is the problem there...
> I have found out something that may be helpful. I set up a rule to
> accept NEW packets with source port 80. Sure enough that seemed to
> clear up my logs.
>
> So now the question is why the heck apache is sending out new packets
> on what should be established connections?
this is what I use:
-A BAD_TCP_PACKETS -p tcp -m tcp --tcp-flags SYN,ACK SYN,ACK -m
conntrack --ctstate NEW -j REJECT --reject-with tcp-reset
-A BAD_TCP_PACKETS -p tcp -m tcp ! --tcp-flags FIN,SYN,RST,ACK SYN -m
conntrack --ctstate NEW -j DROP
next prev parent reply other threads:[~2014-03-07 4:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 16:52 Some oddities while setting up outbound filtering on a web server Anthony Taylor
2014-03-06 18:26 ` Mart Frauenlob
2014-03-06 23:39 ` Anthony Taylor
2014-03-07 4:46 ` Mart Frauenlob [this message]
2014-03-07 5:01 ` Neal Murphy
2014-03-08 2:05 ` Anthony Taylor
2014-03-08 5:20 ` Neal Murphy
-- strict thread matches above, loose matches on Subject: below --
2014-02-21 22:36 Anthony Taylor
2014-02-22 10:37 ` Mart Frauenlob
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=53194F19.90708@chello.at \
--to=mart.frauenlob@chello.at \
--cc=ataylor@fallsgeek.com \
--cc=netfilter@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.