lpo wrote
martux wrote
Or some temporary solution?
the solution is in the first post!
just add
redirect-gateway def1
to your ovpn profile file.
This is an example of a ovpn client file, I put in the last line the command but not work. Could you give me an example!! I can configure some user to alleviate the situation, but I must wait for the update, because it is impractical to configure this for my 60 users.
Thanks you very much.
persist-tun
persist-key
cipher AES-128-CBC
ncp-ciphers AES-256-GCM:AES-128-GCM
auth SHA1
tls-client
client
remote 111.111.111.111 1194 udp
verify-x509-name "openvpn-server" name
auth-user-pass
remote-cert-tls server
comp-lzo adaptive
redirect-gateway def1
<ca>
-----BEGIN CERTIFICATE-----
MIIEWzCCA0OgAwIBAgIBADANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVWTEN
MAsGA1UECBMETWRlbzETMBEGA1UEBxMKTW9udGV2aWRlbzEOMAwGA1UEChMFUHVs
p+rESSF7Wb8E8XTlJ7AstaR3vlT1CfaIX4WD4000leDGdrpJOU6+3kAQMyxsCsBU
-----END CERTIFICATE-----
</ca>
<cert>
-----BEGIN CERTIFICATE-----
MIIEtDCCA5ygAwIBAgIBJzANBgkqhkiG9w0BAQsFADB8MQswCQYDVQQGEwJVWTEN
MAsGA1UECBMETWRlbzETMBEGA1UEBxMKTW9udGV2aWRlbzEOMAwGA1UEChMFUHVs
wR0ccz9QIxtvTn94eBc2XkdkS8BZADWP3eOphYLhOFVuKnODM06gXiWy6kEjj6pT
xmOZc9WHUIw=
-----END CERTIFICATE-----
</cert>
<key>
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDEjrFTQdlEfFlD
o5wZScviqwGb8GmC0ju08agn8wb6dE5CjEQ6X6Ibc2I6xGp573sYWdRVgK8mkg+J
zWaAPUjz18TzSUYel6PVjy8gKBhcvuIJeQqDBADoHrnWJ0y4e2ovzOxvvRy37UiY
LGqLQKGoJCIiOw+ZA+Ao0d4w
-----END PRIVATE KEY-----
</key>
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
1478642e1dcea7d98bbc7a014e8ec70f
b498d6d3347d533eadd474a542cfb59d
-----END OpenVPN Static key V1-----
</tls-auth>
key-direction 1