Jelajahi Sumber

Missprint in firewall definition in docker-entrypoint.sh

Vadim Surkov 6 tahun lalu
induk
melakukan
dfb6d04119
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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