Block Website using TCP Packet Injection on out-of-path environment
syntax : tcp-block <interface> <pattern> [-r <url>]
-r <url> : set redirect url to <url> (maxlen : 900)
sample : tcp-block wlan0 "Host: www.president.go.kr"
: tcp-block wlan0 -a
-
Need pcap library
-
I try to use
socket
, but it doesn't work. -
I don't know why but when I use the socket function, the sending packet was very slow!
-
So, I made tcp-block firewall on pcap library
-
-r
option should be completed (not yet) -
See
packet.rule
to know how I made the injecting packet.