i created a set of mangle rules with layer7 content to drop acces to specific sites.
packets are marked, now im trying to setup a drop rule for firewall, and it just plainly doesnt work.
but if I setup NAT rule with the same packet mark the dns request fails (which is what im trying to do)
And yes, default fasttrack rule is disabled
So, this rule WORKS
[admin@faerun] > ip/firewall/nat/print
Flags: X - disabled, I - invalid; D - dynamic
19 chain=dstnat action=dst-nat to-addresses=0.0.0.0 packet-mark=philips_packet log=no log-prefix=""
But this doesnt (also including higher rules for context, the rule in question is 6)
[admin@faerun] > ip/firewall/filter/print
Flags: X - disabled, I - invalid; D - dynamic
0 ;;; defconf: accept established,related,untracked
chain=input action=accept connection-state=established,related,untracked
1 chain=input action=accept protocol=icmp src-address-list=vlan1 in-interface=bridge log=no log-prefix=""
2 chain=input action=accept protocol=tcp src-address=X.X.X.0/24 in-interface=ether1 dst-port=80 log=no log-prefix=""
3 chain=input action=accept src-address=X.X.X.130 log=no log-prefix=""
4 X chain=input action=accept src-address=192.168.9.0/24 log=no log-prefix=""
5 ;;; defconf: drop invalid
chain=input action=drop connection-state=invalid
6 chain=output action=drop packet-mark=philips_packet log=no log-prefix=""
Mangle and layer 7 rules
[admin@faerun] > ip/firewall/layer7-protocol/print
Columns: NAME, REGEXP
# NAME REGEXP
1 philips update nettvservices.com
[admin@faerun] > ip/firewall/mangle/print
Flags: X - disabled, I - invalid; D - dynamic
2 chain=prerouting action=mark-connection new-connection-mark=philips passthrough=yes layer7-protocol=philips update protocol=udp connection-mark=no-mark
dst-port=53 log=no log-prefix=""
3 chain=prerouting action=mark-packet new-packet-mark=philips_packet passthrough=yes connection-mark=philips log=no log-prefix=""