Commit c5a1d1aa authored by root's avatar root

unifi3

parent 5eb6cdb3
......@@ -161,6 +161,9 @@ dialog --stdout --sleep 2 --backtitle "$BACKTITLE" --infobox \
"Configurando iptables.." \ 5 35
systemctl enable iptables.service --quiet
systemctl start iptables.service --quiet
iptables -F
iptables -A INPUT -s 10.0.0.0/8 -p tcp -m state -m tcp --dport 80 --state NEW -j ACCEPT
iptables -A INPUT -s 10.0.0.0/8 -p tcp -m state -m tcp --dport 443 --state NEW -j ACCEPT
### Liberacoes UNIFI UDP
iptables -A INPUT -p udp -m state -m udp -s 10.0.0.0/8 --dport 3478 --state NEW -j ACCEPT
iptables -A INPUT -p udp -m state -m udp -s 10.0.0.0/8 --dport 5656:5699 --state NEW -j ACCEPT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment