🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.openbsd-pf
Article #62

Re: Suggestion for a new feature, port code

#62
From: Kelley Reynolds
Date: Tue, 01 Mar 2011 08:38
29 lines
2159 bytes
A quick google on 'pf port knocking' turned up the following that might be of interest.

http://www.lazyscripter.com/2010/04/port-knocking-with-pf/


On Feb 28, 2011, at 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?
> 
> Kind regards, Johan S�derberg
Technical Details
Message-ID: <5061605B-53B1-4A9F-84E6-85C6F727F6C3@insidesystems.net>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
References: <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!news2.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: kelley@insidesystems.net (Kelley Reynolds)
Newsgroups: bit.listserv.openbsd-pf
Subject: Re: Suggestion for a new feature, port code
Date: 1 Mar 2011 00:38:19 -0800
Organization: None
Lines: 30
Message-ID: <5061605B-53B1-4A9F-84E6-85C6F727F6C3@insidesystems.net>
References: <AANLkTi=WMDi8P+tP4jX9tPGX-BD9CjFugKv9=XacUwxM@mail.gmail.com>
NNTP-Posting-Host: [75.224.114.76]
Mime-Version: 1.0 (Apple Message framework v1082)
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
NNTP-Posting-Date: 1 Mar 2011 08:38:19 GMT