altq and IPsec - queue on incoming interface



ALTQ on incoming interface

Sometimes there is really need for ALTQ on incoming traffic:

--------
| SRV1 |
| ftp |
--------
|
| ------------ ------------
+------| |$ext_if | |
$int_if| BSD1 box |---IP sec only---| BSD2 box |----Clients
+------| | | |
| ------------ ------------
|
--------
| SRV2 |
| smtp |
--------

Example:
If ftp traffic to the client is large, then smtp traffic
will be blocked. There is obviously need to queue the
traffic in some a way. (All SRV, BSD and clients
are in company, they are not "strange" internet machines).

ALTQ on enc0 is not possible (it is well known).
There is problem on queue on $ext_if (it is only IP sec traffic).

Is there any Idea/Solution how to solve this?


My Idea is as follows: Use route-to loopback interface
on incoming traffic to internal interface.
Then apply queue on outgoing traffic from lo0.

Part of /etc/pf.conf is something like:

pass in on $int_if route-to lo0
pass out quick on lo0 from $SRV1 to any queue ftpque
pass out quick on lo0 from $DRV2 to any queue smtpque
pass out on lo0 all

Is it reasonable? Any comment will be appreciated.

Igor





.



Relevant Pages

  • Re: altq unfortunately queuing vlan traffic.
    ... I'm using pf for nat on vge0, and would like to also like to use altq ... on that interface. ... that the problem is that altq is queuing packets destined for the vlan ... in vge0's queue because it is the parent interface. ...
    (freebsd-net)
  • Re: altq unfortunately queuing vlan traffic.
    ... machine is running FreeBSD 6-STABLE (6.2-RELEASE doesn't have altq ... altq on that interface (no queuing is needed on the vlan2 ... is queuing packets destined for the vlan in vge0's queue because it ... on vlan interfaces and queue on the physical interface. ...
    (freebsd-net)
  • Re: altq unfortunately queuing vlan traffic.
    ... dummynet definitely does work on vlan devices. ... > I just recently configured altq to run on my vge0 interface. ... > on that interface. ... > in vge0's queue because it is the parent interface. ...
    (freebsd-net)
  • Re: Lahman, how ya doing?
    ... There can be times when the queue is completely comatose. ... and code reuse was at the bottom. ... >provided with the object for the original client. ... >use the access interface provided with the service rather than the one ...
    (comp.object)
  • altq unfortunately queuing vlan traffic.
    ... I just recently configured altq to run on my vge0 interface. ... I also can't put the internet connection on a vlan for two ... Or something to do with the driver itself ...
    (freebsd-net)