ansible/files/openvpn/client.conf
Patrick Uiterwijk b1db3bafd8 Disable persist-tun for openvpn
This should solve the issue where RHEL7 machines that get a network
hiccup need an OpenVPN restart to restore their routes.

The code is broken in the current upstream OpenVPN release, such that
it does tear down some of the routes during a ping-restart (when the
connection is dropped due to network hiccups), but the reconnection
code does not restore the routes.
I am working on an upstream patch to fix this, but in the meantime
disabling persist-tun will make sure that OpenVPN does the entire
initialization upon reconnection, which makes sure that all routes
are created.

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2015-10-21 18:26:32 +00:00

24 lines
241 B
Text

client
dev tun
proto udp
# Specify multiple vpn servers here
remote gateway
remote bastion02
resolv-retry infinite
nobind
persist-key
ca ca.crt
cert client.crt
key client.key
comp-lzo
#route 10.5.126.0 255.255.255.0
keepalive 10 60