pf not execute udp port specific block rule

Posted by seaquest on Server Fault See other posts from Server Fault or by seaquest
Published on 2013-10-13T16:27:58Z Indexed on 2013/11/10 15:59 UTC
Read the original article Hit count: 256

Filed under:
|
|

The traffic I want to block can be sniffed as below with tcpdump:

19:16:22.391164 IP 95.95.95.95.2036 > 10.10.10.10.443: UDP, length 8192

So I wanted to write a rule block any udp destination port 443 traffic.

block drop quick on igb3 inet proto udp to any port 443

Traffic does not match and does not blocked.

However, It matches and blocks if I write rule as below:

block drop quick on igb3 inet proto udp to 10.10.10.10

Do you have any remarks?

I am using pf in Freebsd.

© Server Fault or respective owner

Related posts about freebsd

Related posts about pfsense