🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: forwarding loop

#244
From: Leslie Jensen
Date: Mon, 14 Jan 2013 17:06
55 lines
2924 bytes

2013-01-14 10:50, Daniel Hartmeier skrev:
> On Sat, Jan 12, 2013 at 08:03:41AM +0100, Leslie Jensen wrote:
>
>> New suggested rule that gives syntax error
>> # rdr in on $int_if inet proto tcp from ! $proxy to any port
>> $proxy_services -> $proxy $proxyport tag rdr_proxy
>
> 1) Remove "in" (rdr implies incoming direction)
> 2) Remove "tag rdr_proxy" (newer OpenBSD syntax, not needed here)
> 3) Add "port" after the "->" part (not optional)
>
> So it reads:
>
> rdr on $int_if inet proto tcp from ! $proxy to any port $proxy_services -> $proxy port $proxyport
>
> Which loads fine for me on 8.3-RELEASE-p4.
>
> HTH,
> Daniel
>

Yes it loads as it should. Now I do have a problem with squid getting a 
load of tcp_miss errors.

If I disable the above rule and let the traffic go directly to the 
Internet there's no problem.

I wonder if it might be any of the rules I have to allow traffic through 
squid.

Will you take a look and see if there's anything obviously wrong?

# Allow traffic through SQUID
# New rule

 > I understand that this need to be changed now that we have removed
 > the tag from the redirecting rule
# pass in quick log on $int_if inet proto tcp flags S/SAFR tagged rdr_proxy

 > Changing to this does not help!
pass in quick log on $int_if inet proto tcp flags S/SAFR
#
# old rule
# pass in log on $int_if inet proto tcp from $internal_net to $proxy 
port 8080 keep state

pass out log on $ext_if inet proto tcp from $proxy to any port 
$proxy_services keep state


Thanks

/Leslie
Technical Details
Message-ID: <50F42B02.70405@eskk.nu>
Path: arc1-ca.pugleaf.net!i11ni8683wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.nobody.at!news.glorb.com!news-out.readnews.com!transit3.readnews.com!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
References: <50F10ACD.9090605@eskk.nu> <20130114095023.GC8895@insomnia.benzedrine.cx>

Show Full Headers
Complete Article Headers
X-Google-Thread: bffa70e3,65dda175aebfa248
X-Google-Attributes: gidbffa70e3,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.180.100.74 with SMTP id ew10mr1753202wib.7.1358663245777;
        Sat, 19 Jan 2013 22:27:25 -0800 (PST)
Path: arc1-ca.pugleaf.net!i11ni8683wiw.0!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!193.141.40.65.MISMATCH!npeer.de.kpn-eurorings.net!npeer-ng0.de.kpn-eurorings.net!border2.nntp.ams2.giganews.com!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!nntp.giganews.com!news.nobody.at!news.glorb.com!news-out.readnews.com!transit3.readnews.com!nx02.iad01.newshosting.com!newshosting.com!69.16.185.11.MISMATCH!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
From: leslie@eskk.nu (Leslie Jensen)
Newsgroups: bit.listserv.openbsd-pf
Subject: Re: forwarding loop
Date: 14 Jan 2013 09:06:36 -0800
Organization: None
Lines: 55
Message-ID: <50F42B02.70405@eskk.nu>
References: <50F10ACD.9090605@eskk.nu> <20130114095023.GC8895@insomnia.benzedrine.cx>
NNTP-Posting-Host: bljbsd01.no-ip.org
Mime-Version: 1.0
NNTP-Posting-Date: 14 Jan 2013 17:06:37 GMT
X-Received-Bytes: 2173
Bytes: 2460
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit