Browse Source

tcp vpn port

Bob Mottram 7 years ago
parent
commit
f4281adfcd
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/freedombone-utils-firewall

+ 4
- 2
src/freedombone-utils-firewall View File

@@ -111,7 +111,8 @@ function enable_ipv6 {
111 111
 }
112 112
 
113 113
 function firewall_disable_vpn {
114
-    iptables -D INPUT -i ${FIREWALL_EIFACE} -m state --state NEW -p udp --dport 1194 -j ACCEPT
114
+    iptables -D INPUT -p tcp --dport 1194 -j ACCEPT
115
+    iptables -D INPUT -p udp --dport 1194 -j ACCEPT
115 116
     iptables -D INPUT -i tun+ -j ACCEPT
116 117
     iptables -D FORWARD -i tun+ -j ACCEPT
117 118
     iptables -D FORWARD -i tun+ -o ${FIREWALL_EIFACE} -m state --state RELATED,ESTABLISHED -j ACCEPT
@@ -124,7 +125,8 @@ function firewall_disable_vpn {
124 125
 }
125 126
 
126 127
 function firewall_enable_vpn {
127
-    iptables -A INPUT -i ${FIREWALL_EIFACE} -m state --state NEW -p udp --dport 1194 -j ACCEPT
128
+    iptables -A INPUT -p tcp --dport 1194 -j ACCEPT
129
+    iptables -A INPUT -p udp --dport 1194 -j ACCEPT
128 130
     iptables -A INPUT -i tun+ -j ACCEPT
129 131
     iptables -A FORWARD -i tun+ -j ACCEPT
130 132
     iptables -A FORWARD -i tun+ -o ${FIREWALL_EIFACE} -m state --state RELATED,ESTABLISHED -j ACCEPT