mirror of
https://github.com/flant/ovpn-admin.git
synced 2026-02-04 01:10:22 -08:00
fix
This commit is contained in:
parent
bb6e87d645
commit
fa11b80176
@ -2,4 +2,4 @@
|
||||
set -ex
|
||||
|
||||
default_iface=$(ip route | grep default | awk '{print $5}')
|
||||
iptables -t nat -I POSTROUTING -s "$OVPN_NET_SUBNET" -o "$default_iface" -j SNAT --to-source "$OVPN_PUBLIC_IP"
|
||||
iptables -t nat -D POSTROUTING -s "$OVPN_NET_SUBNET" -o "$default_iface" -j SNAT --to-source "$OVPN_PUBLIC_IP"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user