Explorar o código

Missprint in firewall definition in docker-entrypoint.sh

Vadim Surkov %!s(int64=6) %!d(string=hai) anos
pai
achega
dfb6d04119
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      docker-entrypoint.sh

+ 2 - 2
docker-entrypoint.sh

@@ -19,10 +19,10 @@ then
     cleanup()
     {
       ip addr del ${ip}/24 dev ${dev}:ovpn
-      iptables -D FORWARD -m state --state NEW -s ${client_net} -o external -j DROP
+      iptables -D FORWARD -m state --state NEW -s ${client_net} -i external -j DROP
     }
     ip addr add ${ip}/24 brd + dev ${dev} label ${dev}:ovpn
-    iptables -I FORWARD 1 -m state --state NEW -s ${client_net} -o external -j DROP
+    iptables -I FORWARD 1 -m state --state NEW -s ${client_net} -i external -j DROP
     exec "/usr/sbin/openvpn" "--config" "/etc/openvpn/ovpn.conf" "$@" &
     wait
   else