Include tcp
This commit is contained in:
parent
62854406f1
commit
f9a6339f14
|
@ -112,6 +112,7 @@ function enable_ipv6 {
|
|||
|
||||
function firewall_disable_vpn {
|
||||
iptables -D INPUT -p udp --dport 1194 -j ACCEPT
|
||||
iptables -D INPUT -p tcp --dport 1194 -j ACCEPT
|
||||
iptables -D INPUT -i tun+ -j ACCEPT
|
||||
iptables -D FORWARD -i tun+ -j ACCEPT
|
||||
iptables -D FORWARD -i tun+ -o ${FIREWALL_EIFACE} -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
|
@ -125,6 +126,7 @@ function firewall_disable_vpn {
|
|||
|
||||
function firewall_enable_vpn {
|
||||
iptables -A INPUT -p udp --dport 1194 -j ACCEPT
|
||||
iptables -A INPUT -p tcp --dport 1194 -j ACCEPT
|
||||
iptables -A INPUT -i tun+ -j ACCEPT
|
||||
iptables -A FORWARD -i tun+ -j ACCEPT
|
||||
iptables -A FORWARD -i tun+ -o ${FIREWALL_EIFACE} -m state --state RELATED,ESTABLISHED -j ACCEPT
|
||||
|
|
Loading…
Reference in New Issue