From: Arnd-Hendrik Mathias <arnd-hendrik.mathias@nefkom.net>
To: netfilter@lists.netfilter.org
Subject: Re: ESTABLISHED makes possible to connect to internal servers
Date: Sat, 14 Apr 2007 16:11:46 +0200 [thread overview]
Message-ID: <4620E122.5090708@nefkom.net> (raw)
In-Reply-To: <461D22A5.90309@mfmdb.com>
Hi Anton,
>>it is possible to access my internal web server (and not only web
>>server) from outside
>>
>>
sorry, for the silly question: How exactly do you test this and where
are your server and your test client running?
>>despite I did not open port 80 in FORWARD chain and policy for FORWARD
>>is DROP.
>>
>>
By the way DROP is your last rule and thus a somewhat "implicit policy".
Corresponding to your script your policy is ACCEPT. But that won't
affect the behavior you described. Anyway it will be more secure to set
your real policies to DROP and as a following of this you can omit the
last rules of each chain.
>*filter
>:INPUT ACCEPT [0:0]
>:FORWARD ACCEPT [0:0]
>:OUTPUT ACCEPT [0:0]
>
>-A INPUT -i lo -j ACCEPT
>-A INPUT -i vlan101 -j ACCEPT
>-A INPUT -i vlan82 -j ACCEPT
>
>-A INPUT -p 47 -j ACCEPT
>
>-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
>
>-A INPUT -p tcp --dport 179 -j ACCEPT
>
>-A INPUT -j DROP
>
>-A FORWARD -i vlan101 -j ACCEPT
>-A FORWARD -i vlan82 -j ACCEPT
>
>-A FORWARD -p 47 -j ACCEPT
>
>-A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
>-A FORWARD -j DROP
>
>COMMIT
>
>
Maybe messing around with other protocols like "Border Gateway Protocol"
or "General Routing Encapsulation" is unlikely to ease debugging your
HTTP connections. So I'd disable these rules temporaryly for debugging
purposes.
One other silly question: Do you flush your tables before appending
these rules? Sorry for this kind of questions, but we're all humans and
sometimes the problems are closer (and easier) than we expect them to be
;°) At least these information will help to judge your scenario and find
out the nature of your problem.
Cheers
Arnd-Hendrik
prev parent reply other threads:[~2007-04-14 14:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-04-10 17:39 ESTABLISHED makes possible to connect to internal servers Anton Sidorov
2007-04-11 15:06 ` Maximilian Wilhelm
2007-04-11 18:02 ` Anton Sidorov
2007-04-14 14:11 ` Arnd-Hendrik Mathias [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=4620E122.5090708@nefkom.net \
--to=arnd-hendrik.mathias@nefkom.net \
--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 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.