Article View: bit.listserv.openbsd-pf
Article #217Re: inbound queueing on external interface due to multiple internal interfaces
From: Andy Lemin
Date: Thu, 12 Apr 2012 09:48
Date: Thu, 12 Apr 2012 09:48
83 lines
4742 bytes
4742 bytes
Hi, thanks very much for your suggestion. > You will want to see this thread: > Working example of bi-directional asymmetric ALTQ + NAT ruleset? > http://marc.info/?t=129472965800001&r=1&w=2 > > It talks about being able to have a single queue > on more than one interface, so you'd use a single > outbound queue on all your internal interfaces to > effectively rate-limit your inbound wan traffic. I read through that archive but the problem it seems to be discussing seems pretty trivial as its discussing semantics of queuing downstream traffic which you just do by queuing on the internal interface (which works perfectly if you only have one internal interface). It does suggest creating a queue structure without assigning a specific interface as you suggest, however when you do this I believe PF simply creates copy's of the queue structure and creates instances per interfaces? I.e. the different interfaces are not sharing the same physical queue in memory. Is this true? I need to be able to perform downstream queuing pre-routing effectively so that all the downstream traffic (regardless of the internal zone) is all queued equally as one, allowing all internal interfaces to share the total downstream bandwidth. > If sharing a queue on your internal > interfaces does not do it you could get ugly and > use an extra 2 real interfaces (instead of the loopback interface > as you suggest) and a separate routing table and physically > loop the traffic back. This is less ugly than having another box. Sadly we don't have enough ports/slots on our firewall to add a physical loop back and so it has to be a virtual interface :( > I suspect the loopback interface approach won't work, but that's > a total guess. If it does work I'm not sure I'd want > to count on such a kludge continuing to work long-term. Can you tell me why you feel it's a hack to do it using a virtual interface (assuming it works)? It seems like a legitimate solution for queuing downstream traffic pre-routing (altq processing is done during the last stage of egress processing) as this would allow you to define unique downstream queues on any/multiple sources (WAN or VPN) etc. Or do you think it would be better to allow multiple internal interfaces to share the same physical queue in memory? Whilst its an ALTQ thing, I would assume both solutions would be best implemented in PF? I'm just looking for ideas to try as I'm genuinely surprised BSD can't do this :( > I'm very interested in what works and what doesn't so > it would be good to hear back from you. Yes I'll keep my progress posted, as I know their are a lot of other people out there who also want this functionality considering the number of threads I have come across on this, some dating back years. > Don't forget the "empty" ack packets. Indeed ;) > > If we had to bounty this, how much? I might be able to get =A3100 for > > a > > bounty? > > I heard the number $20,000 (US) thrown around. I have no idea if > that's a realistic number. > That's a little out of my budget of a few hundred dollars! :( Cheers for your time, Andy.
Technical Details
Message-ID:
<15148653.742.1334224132168.JavaMail.geo-discussion-forums@ynjn4>Path:
arc1-ca.pugleaf.net!r9ni47314pbh.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mailReferences:
<2f9e7527-e635-4f8b-b6e4-2f891ff76736@f37g2000yqc.googlegroups.com> <(from andrew.lemin@gmail.com on Wed Apr 11 08:02:41 2012)> <1334162926.22616.0@mofo>Show Full Headers
Complete Article Headers
X-Google-Thread: ff4ef,56f68bab31836395
X-Google-NewGroupId: yes
X-Google-Attributes: gidbffa70e3,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Received: by 10.68.202.168 with SMTP id kj8mr913081pbc.1.1334224499484;
Thu, 12 Apr 2012 02:54:59 -0700 (PDT)
Path: arc1-ca.pugleaf.net!r9ni47314pbh.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
From: Andy Lemin <andrew.lemin@gmail.com>
Newsgroups: bit.listserv.openbsd-pf
Subject: Re: inbound queueing on external interface due to multiple internal interfaces
Date: Thu, 12 Apr 2012 02:48:52 -0700 (PDT)
Organization: http://groups.google.com
Lines: 83
Message-ID: <15148653.742.1334224132168.JavaMail.geo-discussion-forums@ynjn4>
References: <2f9e7527-e635-4f8b-b6e4-2f891ff76736@f37g2000yqc.googlegroups.com>
<(from andrew.lemin@gmail.com on Wed Apr 11 08:02:41 2012)> <1334162926.22616.0@mofo>
NNTP-Posting-Host: 178.78.113.112
Mime-Version: 1.0
X-Trace: posting.google.com 1334224499 24992 127.0.0.1 (12 Apr 2012 09:54:59 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 12 Apr 2012 09:54:59 +0000 (UTC)
In-Reply-To: <1334162926.22616.0@mofo>
Complaints-To: groups-abuse@google.com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=178.78.113.112;
posting-account=N1h64goAAABC0Agunj5GGmn6sa4cugwY
User-Agent: G2/1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable