From: "plugthebox.net /dev/null" <devnull@plugthebox.net>
To: netfilter <netfilter@lists.netfilter.org>
Subject: INPUT and PORTS
Date: Wed, 01 Nov 2006 14:49:09 +0200 [thread overview]
Message-ID: <1162385349.17873.30.camel@localhost> (raw)
Hello,
I want to do the following, accept in comings from 10.2.2.115 only
restricting to port 80,22
is this correct?
-P rules ...
-F rules ...
/sbin/iptables -A FORWARD -d 10.2.2.115 -j ACCEPT
/sbin/iptables -A FORWARD -s 10.2.2.115 -j ACCEPT
/sbin/iptables -A INPUT -s 10.2.2.115 -j ACCEPT
/sbin/iptables -A FORWARD -m multiport -p tcp --ports 80,22 -j ACCEPT
/sbin/iptables -A INPUT -m multiport -p tcp --ports 80,22 -j ACCEPT
Eventhough i saw this setup in many tutorials/howtos, when ever i want
to block 10.2.2.115 (by not listing him in the INPUT -j ACCEPT), that ip
can still connect to port 80 and 22.
Thanks
Sincerely,
next reply other threads:[~2006-11-01 12:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-01 12:49 plugthebox.net /dev/null [this message]
-- strict thread matches above, loose matches on Subject: below --
2006-11-01 13:35 INPUT and PORTS anisha.chandrasekaran
[not found] <!&!AAAAAAAAAAAuAAAAAAAAAKTyXRN5/+lGvU59a+P7CFMBAN6gY+ZG84BMpVQcAbDh1IQAAAATbSgAABAAAABaalp1/Z/jRK7sKuE7ceDgAQAAAAA=@iname.com>
2006-11-01 13:41 ` plugthebox.net /dev/null
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=1162385349.17873.30.camel@localhost \
--to=devnull@plugthebox.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox