From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.samba.org
Subject: Re: ssh
Date: Mon, 24 Jun 2002 14:31:28 +0100 [thread overview]
Message-ID: <200206241331.OAA15709@slate.rockstone.co.uk> (raw)
In-Reply-To: <001101c21b79$fcb15cb0$0803020a@daniel>
On Monday 24 June 2002 1:23 pm, Daniel Sercaianu wrote:
> Hello,
>
> How can I drop ssh packets for destination hosts to which destination port
> is unknown and different from 22/tc?.
I can think of two answers to this:
1. You can't. Netfilter / IPtables works by port number, not by content, so
you can only filter by port number.
2. You allow through the traffic on the port numbers you want, and you block
everything else. Doesn't stop someone running an SSH server on port 80,
though, if you're trying to allow web access.
Antony.
next prev parent reply other threads:[~2002-06-24 13:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-24 12:23 ssh Daniel Sercaianu
2002-06-24 13:31 ` Antony Stone [this message]
2002-06-24 13:47 ` ssh Maciej Soltysiak
2002-06-24 13:56 ` ssh Ramin Alidousti
-- strict thread matches above, loose matches on Subject: below --
2003-01-14 19:59 ssh Simpson, Doug
2003-01-14 21:28 ssh Simpson, Doug
2003-01-15 12:09 ` ssh Zander
2003-01-15 18:44 ` ssh MAB
2004-07-14 14:15 ssh IT Clown
2004-07-14 14:25 ` ssh Koyama Mituru
2004-07-14 15:26 ssh Piszcz, Justin Michael
2004-07-14 15:42 ` ssh Antony Stone
2004-07-14 15:57 ` ssh Koyama Mituru
2004-07-14 16:07 ` ssh Antony Stone
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=200206241331.OAA15709@slate.rockstone.co.uk \
--to=antony@soft-solutions.co.uk \
--cc=netfilter@lists.samba.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