Article View: bit.listserv.openbsd-pf
Article #64Re: Suggestion for a new feature, port code
From: Peter N. M. Hansteen
Date: Tue, 01 Mar 2011 08:45
Date: Tue, 01 Mar 2011 08:45
38 lines
2806 bytes
2806 bytes
Johan S๏ฟฝderberg <johan.s.umea@gmail.com> writes: > 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. You have just described 'port knocking'. It's been discussed in PF contexts before (I forget which lists, could have been openbsd-misc or here), and the conclusion was roughly that it doesn't add much in terms of security, certainly not worth the potential added complexity. The enthusiasts tend to live on Linux, IIRC. > 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. That's almost like saying, "my password's written with unicode, so 2-3 characters is fine". To my mind, that's all the added security you get, roughly equivalent to a password. It's a well known fact that industrial-scale password guessing is going on right now, so once the bad guys figure out the obvious, the machinery to crack your box is ready to go. Add to that the typical implementation scenario with a deamon that reads your firewall logs for your secret sequence and all its possible failure modes (a full disk will brick your box, as will any exploitable bug that with a potential to kill your daemon, and so forth). Oh well, that's just a small sample of what the sceptics here will say. I've been meaning to get around to a proper treatment of port knocking in a blog post or article, and that may still happen given enough round tuits. In the meantime, the main points have already been presented. - Peter -- Peter N. M. Hansteen, member of the first RFC 1149 implementation team http://bsdly.blogspot.com/ http://www.bsdly.net/ http://www.nuug.no/ "Remember to set the evil bit on all malicious network traffic" delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.
Technical Details
Message-ID:
<877hckkqmo.fsf@deeperthought.bsdly.net>Path:
arc1-ca.pugleaf.net!g2news2.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!g2news2.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: peter@bsdly.net (Peter N. M. Hansteen) Newsgroups: bit.listserv.openbsd-pf Subject: Re: Suggestion for a new feature, port code Date: 1 Mar 2011 00:45:51 -0800 Organization: None Lines: 38 Message-ID: <877hckkqmo.fsf@deeperthought.bsdly.net> References: <AANLkTi=WMDi8P+tP4jX9tPGX-BD9CjFugKv9=XacUwxM@mail.gmail.com> NNTP-Posting-Host: deeperthought.bsdly.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Date: 1 Mar 2011 08:45:51 GMT