![]() |
|
Block site iptable slackware - Printable Version +- HN-Community (https://hacker-newbie.org) +-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html) +--- Forum: Operating System (https://hacker-newbie.org/forum-13.html) +---- Forum: GNU/Linux (https://hacker-newbie.org/forum-15.html) +---- Thread: Block site iptable slackware (/thread-13824.html) |
Block site iptable slackware - men9 - 05-16-2012 Begini para mastah, saya sudah coba ini code untuk block situs di slackware saya tidak menggunakan Proxy dikarena source routernya nggk kuat jadi saya cuma memasukinya didalam iptables nya saja.. iptables -A INPUT -p tcp -s youtube.com -j DROP iptables -A OUTPUT -p tcp -d youtube.com -j DROP iptables -A FORWARD -s youtube.com -j DROP iptables -A FORWARD -d youtube.com -j DROP iptables -A INPUT -p tcp -m string --string "youtube.com" --dport 80 --algo kmp -j DROP iptables -A OUTPUT -p tcp -m string --string "youtube.com" --dport 80 --algo kmp -j DROP iptables -A FORWARD -p tcp -m string --string "youtube.com" --dport 80 --algo kmp -j DROP mohon pencerahanya mastah.. saya sudah coba itu perintah itu tapi nggk ngefek.. apa yang kurang ya mastah.. mohon pencerahnya.. RE: Block site iptable slackware - red-dragon - 05-16-2012 coba Code: # iptables -t nat -A OUTPUT -p tcp -d youtube.com -j REDIRECT -t google.comRE: Block site iptable slackware - men9 - 05-16-2012 maav mr dragon, itu scriptnya cuma segitu aja ya? nggk ngefek tu mastah, apa kudu restart dulu ya routernya mastah? mohon pencerahanya.. |