Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
openvpn conf to route only certain traffic through VPN is not working :(
client
nobind
dev tun
remote-cert-tls server
remote 35.209.20.300 1194 udp
<key>
-----BEGIN PRIVATE KEY-----
...................... removed for this post
-----END PRIVATE KEY-----
</key>
<cert>
-----BEGIN CERTIFICATE-----
...................... removed for this post
-----END CERTIFICATE-----
</cert>
<ca>
-----BEGIN CERTIFICATE-----
............. removed for this post
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
...................... removed for this post
-----END OpenVPN Static key V1-----
</tls-auth>
route 10.28.48.5 255.255.255.255
# redirect-gateway def1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment