1
General Discussion / Re: [SOLVED] Firewall Rules and setting DSCP on packets
« on: September 16, 2021, 09:55:39 pm »
I ran into another little problem with the rules. One of my rules was matching UDP packets going OUT my WAN, to a specific destination port and for some reason it was overriding the other 5 or so rules I had in place, marking ALL the packets with the 0x20 tos. In other words, the rule below was overriding the TOS on all of my other rules.
This is the rule in question:
The other rules are set via packets coming IN from the LAN with most having the packets changed to EF, for example:
I have no other rules on the interface's or floating that relate to port 33333 or 1195 (thinking that another rule was overriding it somehow).
I was finally able to get the 0xb8 tagging working again by finally specifying a destination on the WAN out rule, which, it should have matched merely on the destination port 1195 (I added the source port, tested, then added the destination as a last resort)
I hope that wasn't confusing.
Did I find a bug?
This is the rule in question:
Code: [Select]
scrub out on vtnet1 proto udp from any port = 33333 to any port = 1195 set-tos 0x20 fragment reassemble
The other rules are set via packets coming IN from the LAN with most having the packets changed to EF, for example:
Code: [Select]
scrub in on vtnet0 proto udp from <VoIP> to any set-tos 0xb8 fragment reassemble
I have no other rules on the interface's or floating that relate to port 33333 or 1195 (thinking that another rule was overriding it somehow).
I was finally able to get the 0xb8 tagging working again by finally specifying a destination on the WAN out rule, which, it should have matched merely on the destination port 1195 (I added the source port, tested, then added the destination as a last resort)
I hope that wasn't confusing.
Did I find a bug?