You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then, I recognized that I mistyped the subnet argument -s 10.95.0.0/16, which is already occupied with another existing OpenVPN server.
I should type something like -s 10.99.0.0/16, instead of -s 10.95.0.0/16.
Therefore I edited the openvpn.conf file, from server 10.95.0.0 255.255.0.0 to server 10.91.0.0 255.255.0.0 to change the server's subnet scope and restarted this container.
Client can connect to VPN server.
Client can ping to server(10.95.0.1), and server can ping to client either. (also connection log can be found via docker logs)
But the client cannot use the internet.
I scrutinized every part of the problem that could arise, like routing tables for both host and container, my custom docker network which is still working well with other OpenVPN container, DNS test, and so on.
I'm already running a several OpenVPN container in this single host for more than a year, and I think that there is no problem with setting or configuration in host OS or docker.
I strongly suspect that it is caused by a typo in the subnet when executing the ovpn_genconfig command, and that this is not reflected by modifying the openvpn.conf file.
Because when I re-entered the ovpn_genconfig command without a typo after everything was cleaned up, it all worked as expected.
If anyone knows about this, please let me know if my assumption is correct or not.
The text was updated successfully, but these errors were encountered:
Had the same problem after trying to change the subnet on the openvpn.conf file
Rerunning the ovpn_genconfig script solved it for me aswell. Thank you 👍
Here is my situation.
Then, I recognized that I mistyped the subnet argument
-s 10.95.0.0/16
, which is already occupied with another existing OpenVPN server.I should type something like
-s 10.99.0.0/16
, instead of-s 10.95.0.0/16
.Therefore I edited the
openvpn.conf
file, fromserver 10.95.0.0 255.255.0.0
toserver 10.91.0.0 255.255.0.0
to change the server's subnet scope and restarted this container.Client can connect to VPN server.
Client can ping to server(10.95.0.1), and server can ping to client either. (also connection log can be found via
docker logs
)But the client cannot use the internet.
I scrutinized every part of the problem that could arise, like routing tables for both host and container, my custom docker network which is still working well with other OpenVPN container, DNS test, and so on.
I'm already running a several OpenVPN container in this single host for more than a year, and I think that there is no problem with setting or configuration in host OS or docker.
I strongly suspect that it is caused by a typo in the subnet when executing the
ovpn_genconfig
command, and that this is not reflected by modifying theopenvpn.conf
file.Because when I re-entered the
ovpn_genconfig
command without a typo after everything was cleaned up, it all worked as expected.If anyone knows about this, please let me know if my assumption is correct or not.
The text was updated successfully, but these errors were encountered: