This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| apply_mangle() { | |
| ip rule add fwmark 1 table 100 | |
| ip route add local 0.0.0.0/0 dev lo table 100 | |
| iptables -t mangle -N V2RAY_MASK | |
| iptables -t mangle -A V2RAY_MASK -m set --match-set white_list dst -j RETURN | |
| iptables -t mangle -A V2RAY_MASK -p udp -m multiport --ports 53,67:68,135:139 -j RETURN |