How to action based on marked package in iptables?
Hi.
How to action based on marked package or connection in iptables?
Just a simple example:
iptables -t mangle -A PREROUTING -p tcp --dport 22 -j MARK --set-mark 2
This would mark 2 for port 22 destination
My question is:
How to do an action based on mark? From the above scenario, how to drop package based on mark 2?
Need advise
Thanks
|