Created
July 31, 2014 14:07
-
-
Save wen-long/64ab75b2cfbea1bcc42d to your computer and use it in GitHub Desktop.
This file contains 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
iptables -N http | |
iptables -A http -m string --string "HTTP/1.1 302 Moved Temporarily" --algo bm -j RETURN | |
iptables -A http -m string ! --string "HTTP/1.1 302 Found" --algo bm -j RETURN | |
iptables -A http -m string ! --string "Connection: close" --algo bm -j RETURN | |
iptables -A http -m string --string "videoplayer" --algo bm -j LOG --log-prefix "http_302" --log-level 5 | |
iptables -A http -m string --string "videoplayer" --algo bm -j DROP | |
iptables -A http -j LOG --log-prefix "WTF" --log-level 5 | |
iptables -I FORWARD -i eth0.2 -p tcp --sport 80 -m ttl --ttl-eq 127 -j http |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment