Article View: bit.listserv.openbsd-pf
Article #63Re: Suggestion for a new feature, port code
From: Daniel Staal
Date: Tue, 01 Mar 2011 08:44
Date: Tue, 01 Mar 2011 08:44
38 lines
2697 bytes
2697 bytes
On Mon, February 28, 2011 10:17 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? Also known as 'Port Knocking': <http://en.wikipedia.org/wiki/Port_knocking> I recall it was discussed here a while back. I can't recall what the exact arguments were, but I don't suppose it'd be hard to write a userland daemon to implement it using anchors. Daniel T. Staal --------------------------------------------------------------- This email copyright the author. Unless otherwise noted, you are expressly allowed to retransmit, quote, or otherwise use the contents for non-commercial purposes. This copyright will expire 5 years after the author's death, or in 30 years, whichever is longer, unless such a period is in excess of local copyright law. ---------------------------------------------------------------
Technical Details
Message-ID:
<f68209a374198c9e9ffc89a1a024332e.squirrel@www.magehandbook.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!npeer03.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>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!g2news1.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn From: DStaal@usa.net (Daniel Staal) Newsgroups: bit.listserv.openbsd-pf Subject: Re: Suggestion for a new feature, port code Date: 1 Mar 2011 00:44:20 -0800 Organization: None Lines: 38 Message-ID: <f68209a374198c9e9ffc89a1a024332e.squirrel@www.magehandbook.com> References: <AANLkTi=WMDi8P+tP4jX9tPGX-BD9CjFugKv9=XacUwxM@mail.gmail.com> Reply-To: DStaal@usa.net NNTP-Posting-Host: 152.121.16.254 Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 1 Mar 2011 08:44:20 GMT