aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojciech Kosior <kwojtus@protonmail.com>2020-06-12 15:59:38 +0200
committerWojciech Kosior <kwojtus@protonmail.com>2020-06-12 15:59:38 +0200
commit4792a6816fc785300454e834c26d7320b630356d (patch)
treed23c649508712b91756452d5ace61df297f8d8c2 /src
parent19c982a4eac92ed824490322ecd97a0c3b0685ff (diff)
download0tdns-4792a6816fc785300454e834c26d7320b630356d.tar.gz
0tdns-4792a6816fc785300454e834c26d7320b630356d.zip
enable timeout on connection to vpn
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vpn_wrapper.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vpn_wrapper.sh b/src/vpn_wrapper.sh
index 5a0955c..5a44147 100755
--- a/src/vpn_wrapper.sh
+++ b/src/vpn_wrapper.sh
@@ -47,6 +47,7 @@ echo nameserver $DEFAULT_DNS > /etc/netns/$NAMESPACE_NAME/resolv.conf
openvpn --ifconfig-noexec --route-noexec --up $NETNS_SCRIPT \
--route-up $NETNS_SCRIPT --down $NETNS_SCRIPT \
--config "$OPENVPN_CONFIG" --script-security 2 \
+ --connect-timeout 20 \
--setenv NAMESPACE_NAME $NAMESPACE_NAME \
--setenv WRAPPER_PID $$ \
--setenv VETH_HOST0 $VETH_HOST0 \