elmore
February 21st, 2005, 20:13
I have a two folded issue here.
Issue #1:
My internet service provider at work has an mpls network with different service planes. (ex. a service plane for voice, one for data, one for priority data) They provide different SLA's and delivery times for each service plane. In order for me to use these service planes I typically call them and specify what type of data I want in the given service plane. They then use diffserv and tag packets leaving my site based on the port number.
What I want to do is tag my esp/ipsec traffic for their high priority plane. Normally they would take care of this but in talking with their engineers today they apparently cannot do this with ipsec traffic. Which means I must tag the ipsec packets as they leave my network. Does anyone have any experience doing this in pf. I assume I need to do this with altq to actually mark the packet. I've tried doing something like:
pass out on $ext_if proto esp from any to any tos 0x20
with no avail.
Issue #2:
Within that given ipsec tunnel above I'd like to specify priority to traffic using the cbq scheduler within altq. However I'm finding a true lack of documentation on how to do this anywhere. I've found a few posts here or there. Most go unanswered a few others show no real resolution. Is anyone doing this? Is it as simple as altq'ing out on the internal interface? altq'ing on the enc0 interface isn't supported which was the obvious first place to try.
Ex. if I have an ipsec tunnel that have voice and data travelling over it I want to give priority to voice.
Any help is appreciated.
Issue #1:
My internet service provider at work has an mpls network with different service planes. (ex. a service plane for voice, one for data, one for priority data) They provide different SLA's and delivery times for each service plane. In order for me to use these service planes I typically call them and specify what type of data I want in the given service plane. They then use diffserv and tag packets leaving my site based on the port number.
What I want to do is tag my esp/ipsec traffic for their high priority plane. Normally they would take care of this but in talking with their engineers today they apparently cannot do this with ipsec traffic. Which means I must tag the ipsec packets as they leave my network. Does anyone have any experience doing this in pf. I assume I need to do this with altq to actually mark the packet. I've tried doing something like:
pass out on $ext_if proto esp from any to any tos 0x20
with no avail.
Issue #2:
Within that given ipsec tunnel above I'd like to specify priority to traffic using the cbq scheduler within altq. However I'm finding a true lack of documentation on how to do this anywhere. I've found a few posts here or there. Most go unanswered a few others show no real resolution. Is anyone doing this? Is it as simple as altq'ing out on the internal interface? altq'ing on the enc0 interface isn't supported which was the obvious first place to try.
Ex. if I have an ipsec tunnel that have voice and data travelling over it I want to give priority to voice.
Any help is appreciated.