Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Created December 28, 2020 07:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ORESoftware/91df265a4647877ccbafe0e99f91add6 to your computer and use it in GitHub Desktop.
Save ORESoftware/91df265a4647877ccbafe0e99f91add6 to your computer and use it in GitHub Desktop.
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