Article View: bit.listserv.openbsd-pf
Article #207Re: handling local traffic
From: Justin Murdock
Date: Mon, 30 Jan 2012 14:07
Date: Mon, 30 Jan 2012 14:07
28 lines
2005 bytes
2005 bytes
I've been thinking about this for months (on and off) but as soon as I
send the email a solution occurs to me. Typical.
On 30/01/2012 12:31, Justin Murdock wrote:
> OpenBSD 4.9 GENERIC.MP#819 amd64
>
> I'm not quite sure when things changed, but I can no longer apply
> rules to locally originating traffic the following doesn't work as I
> would wish]:
>
> match out log received-on lo
I can, however, catch this traffic using
match out log user != unknown
>
> pass on $dmz to port {http, https, ssh}
> block out on lo
> pass out on lo from <trusted> to port ssh
>
similarly becomes:
pass on $dmz to port {http, https, ssh}
block in user != unknown
pass in from <trusted> to port ssh user != unknown
> I feel I must be missing something, I'm just not sure what.
I'm not entirely comfortable with this - especially as the "... in ...
user != unknown" construction depends on there being a listening socket
- which could be quite interesting with the rdr-to interactions.
Technical Details
Message-ID:
<4F2699E3.2070500@quick-hacks.co.uk>Path:
arc1-ca.pugleaf.net!cj8ni156353bkb.0!nntp.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrnReferences:
<4F268DBB.8040006@quick-hacks.co.uk>Show Full Headers
Complete Article Headers
X-Google-Thread: ff4ef,18ef05b9a16c60c7
X-Google-NewGroupId: yes
X-Google-Attributes: gidbffa70e3,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.205.127.3 with SMTP id gy3mr1703943bkc.1.1327932478992;
Mon, 30 Jan 2012 06:07:58 -0800 (PST)
Path: arc1-ca.pugleaf.net!cj8ni156353bkb.0!nntp.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
From: justin-work@quick-hacks.co.uk (Justin Murdock)
Newsgroups: bit.listserv.openbsd-pf
Subject: Re: handling local traffic
Date: 30 Jan 2012 06:07:57 -0800
Organization: None
Lines: 29
Message-ID: <4F2699E3.2070500@quick-hacks.co.uk>
References: <4F268DBB.8040006@quick-hacks.co.uk>
NNTP-Posting-Host: redguy.burry
Mime-Version: 1.0
NNTP-Posting-Date: 30 Jan 2012 14:07:57 GMT
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit