tiagoeariane
(usa CentOS)
Enviado em 01/09/2017 - 10:24h
Tive problemas, está travando tudo agora, mesmo eu liberando não vai.
como faço para limpar mangle?
segue as minhas configurações
#Limpa
iptables -t mangle -F
iptables -t mangle -X
#Ips Liberados
iptables -t mangle -A PREROUTING -s 192.168.1.230 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.231 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.232 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.233 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.234 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.235 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.236 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.237 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.238 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.239 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.240 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.241 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.242 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.243 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.244 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.245 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.246 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.247 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.248 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.249 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
iptables -t mangle -A PREROUTING -s 192.168.1.250 -p tcp -m string --algo bm --string "facebook.com" -j ACCEPT
#Rede bloqueada (SITE)
iptables -t mangle -A PREROUTING -p tcp -m string --algo bm --string "facebook.com" -j DROP
iptables -t mangle -A PREROUTING -p tcp -m string --algo bm --string "m-facebook.com" -j DROP
iptables -t mangle -A PREROUTING -p tcp -m string --algo bm --string "m.facebook.com" -j DROP
iptables -t mangle -A PREROUTING -p tcp -m string --algo bm --string "pt-br.facebook.com" -j DROP
iptables -t mangle -A PREROUTING -p tcp -m string --algo bm --string "instagram.com" -j DROP
iptables -t mangle -A PREROUTING -p tcp -m string --algo bm --string "m.instagram" -j DROP
iptables -t mangle -A PREROUTING -p tcp -m string --algo bm --string "twitter.com" -j DROP
Preciso de ajuda!