Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
11 lines (6 loc) · 308 Bytes

route.md

File metadata and controls

11 lines (6 loc) · 308 Bytes

echo 100 facebook >> /etc/iproute2/rt_tables

ip route add default dev tun0 table facebook

ipset create blockedIP iphash -exist ipset add blockedIP 8.8.2.2

iptables -t mangle -I prerouting -m set --match-set blockedIP dst -j Mark --set-mark 998

ip rule add fwmark 998 priority 1999 table facebook