Article View: bit.listserv.openbsd-pf
Article #61Re: Suggestion for a new feature, port code
From: Karl O. Pinc
Date: Mon, 28 Feb 2011 17:35
Date: Mon, 28 Feb 2011 17:35
37 lines
2406 bytes
2406 bytes
On 02/28/2011 09:17:25 AM, Johan S๏ฟฝderberg wrote:
> A ridiculously simple idea.
> Protect your port, say ssh, by adding a code to access it.
> Ok, that's nothing new, but maybe how it's done.
>
> For a client to connect to a service, it need to unlock the port with
> a code.
> The code is made of predefined blocked ports, that makes pf trigger.
> If the first code port is triggered, IP address enters a state with
> timestamp.
> If the next port that the address triggers, matches the next code
> port
> within a timeframe, let it enter new state, else lose state.
> When all code ports have been triggered in the right order, allow
> address to pass.
>
> Sure it's not safe from MITM, but it protects from scans, and allows
> you to connect from dynamic IP addresses.
> There are 65536 ports, that gives you 65536^n possible combinations
> where n is the number of ports in your code.
> So you probably won't need more than 2-3 ports in your code.
>
> Say what you think! And if you like my brain fart, would you want to
> implement it?
Your idea is called port knocking, and it's pointless security by
obscurity -- and can be sniffed. If you want it to be
secure you make the knock code a
ome-time-pad. In which case you may as well use skey for your
one-time-pad and be done with it.
If you want to "protect the port" redirect repeat offenders off
into a honeypot.
Karl <kop@meme.com>
Free Software: "You don't pay back, you pay forward."
-- Robert A. Heinlein
Technical Details
Message-ID:
<1298913313.17052.0@mofo>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrnReferences:
<AANLkTi=WMDi8P+tP4jX9tPGX-BD9CjFugKv9=XacUwxM@mail.gmail.com> (from johan.s.umea@gmail.com on Mon Feb 28 09:17:25 2011)Show Full Headers
Complete Article Headers
X-Google-Thread: ff4ef,aafa9bd10f63de1e X-Google-NewGroupId: yes X-Google-Attributes: gidbffa70e3,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn From: kop@meme.com (Karl O. Pinc) Newsgroups: bit.listserv.openbsd-pf Subject: Re: Suggestion for a new feature, port code Date: 28 Feb 2011 09:35:48 -0800 Organization: None Lines: 39 Message-ID: <1298913313.17052.0@mofo> References: <AANLkTi=WMDi8P+tP4jX9tPGX-BD9CjFugKv9=XacUwxM@mail.gmail.com> (from johan.s.umea@gmail.com on Mon Feb 28 09:17:25 2011) NNTP-Posting-Host: mofo Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 28 Feb 2011 17:35:49 GMT