From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: port blocking
Date: Fri, 25 Mar 2005 10:00:30 -0500 [thread overview]
Message-ID: <1111762830.4745.3.camel@hubcap.ljm.dom> (raw)
In-Reply-To: <20050325120012.38609.qmail@web51910.mail.yahoo.com>
On Fri, 2005-03-25 at 07:00, Manish wrote:
> Hi,
>
> I am having 5 network inteface card on my server, 2 connected to ethernet and 3 connected to wireless. i am also running webserver on port 10000 in the same machine. I only wanted the users from eth1 to be able to connect to my web server. users from other interface i.e eth0, eth2.eth3 and eth4 will not be able to connect to my web server. What iptables rule should i use.
run a default drop policy, and then allow what you want:
iptables -P INPUT DROP
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -i eth1 -p tcp --syn --dport 10000 -j ACCEPT
-j
--
"Man, you go through life, you try to be nice to people, you struggle
to resist the urge to punch 'em in the face, and for what?"
--The Simpsons
next prev parent reply other threads:[~2005-03-25 15:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-25 12:00 port blocking Manish
2005-03-25 13:57 ` Klemen Kecman
2005-03-25 14:05 ` Petrisor Bobalca
2005-03-25 15:00 ` Jason Opperisano [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-05-28 8:43 Imran Alvi
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=1111762830.4745.3.camel@hubcap.ljm.dom \
--to=opie@817west.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 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.