Created
December 28, 2020 07:03
-
-
Save ORESoftware/91df265a4647877ccbafe0e99f91add6 to your computer and use it in GitHub Desktop.
openvpn conf to route only certain traffic through VPN is not working :(
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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