|
@@ -19,10 +19,10 @@ then
|
|
cleanup()
|
|
cleanup()
|
|
{
|
|
{
|
|
ip addr del ${ip}/24 dev ${dev}:ovpn
|
|
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
|
|
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" "$@" &
|
|
exec "/usr/sbin/openvpn" "--config" "/etc/openvpn/ovpn.conf" "$@" &
|
|
wait
|
|
wait
|
|
else
|
|
else
|