Iptables URL filter

per Jordi Farrero darrera modificació 2020-03-25T15:53:46+02:00

iptables -t nat -I INPUT --sport 443 -m string --string www.facebook.com --algo bm -j REJECT

Ok--> iptables -I FORWARD  -m string --string "facebook.com" --algo bm --from 1 --to 600 -j REJECT

iptables -A PREROUTING -t raw -p tcp -m string --string "test" -j DROP --algo kmp

ip route add blackhole 74.119.76.0/22