All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sadus ." <sadus@swiftbin.net>
To: netfilter@lists.netfilter.org
Subject: multiport
Date: Thu, 16 Jun 2005 16:59:51 +0300	[thread overview]
Message-ID: <1118930391.16084.2.camel@debianbox> (raw)

Hello i want to drop ALL connections on my internal NIC except:
20,21,80,443
is this correct? (although not working)


iptables -A INPUT -i eth1 -s 172.16.3.0/16 -p tcp -m multiport !
--destination-port  20,21,80,443 -j DROP #USERS

which basicaly means if source is in 172.16.3.0 then drop all except for
HTTP,FTP,HTTPS. that's in order for that IP range to not be able to
connect to Instant Messenging services such as MSN, AIM, Yahoo etc...
while keeping other IP ranges be able to use them.

Thanks
-- 
Sadus . <sadus@swiftbin.net>
Swiftbin.net



             reply	other threads:[~2005-06-16 13:59 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-16 13:59 Sadus . [this message]
2005-06-16 14:16 ` multiport Jason Opperisano
2005-06-16 14:57   ` multiport /dev/rob0
2005-06-16 15:26     ` multiport Sadus .
2005-06-16 15:59       ` multiport /dev/rob0
2005-06-17  8:16       ` multiport Jörg Harmuth
2005-06-16 14:17 ` multiport Carl Holtje ;021;vcsg6;

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=1118930391.16084.2.camel@debianbox \
    --to=sadus@swiftbin.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.