I'm using OpenVPN 2. I have have tried adding push "dhcp-option DNS Without VPN on the same network - both clients work properly. What's additional step required? I prefer to make changes on server side and not the client side.
Without looking at your config and client logs it's very hard to say what is happening. But even so, this is better suited for the openvpn forum or the openvpn-users list, as this is a setup question and not a code bug. Powered by Trac 1. Opened 5 years ago Closed 5 years ago Last modified 2 years ago. Oldest first Newest first Threaded. Show comments Show property changes. Could you give more information, most importantly the OS in question?
Name: www. Well ubound could pass all the tests that you mentioned and some more so I'm pretty sure that it is not the problem. As for why I need to use my own DNS server, I have experienced that when I use public DNS as above, the clients in Iran where millions of sites are blocked can not get any page through their openvpn connection, despite the fact that they can connect to the openvpn server.
Hence the effort. Thanks — hbp. Have you confirmed that they can get a webpage via IP address once they are connected? This would just make sure it really is DNS problem and not a routing issue. Its very common when setting up OpenVPN to be able to connect to the server but not get any traffic back due to a missing return route. It turns out that if you are trying to connect from a non-Windows client, you need to do a couple of extra steps: On Linux Put this line on your client configuration client.
JonDoe JonDoe 1 1 gold badge 7 7 silver badges 21 21 bronze badges. Tested on Ubuntu Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Stack Gives Back Safety in numbers: crowdsourcing data on nefarious IP addresses. Featured on Meta. New post summary designs on greatest hits now, everywhere else eventually. Linked Criggie Criggie 2, 12 12 silver badges 25 25 bronze badges. In the official OpenVPN documentation you can find: [ What I suggest is a completely different approach. You can do this with: --client-config-dir dir Specify a directory dir for custom client config files.
After a connecting client has been authenticated, OpenVPN will look in this directory for a file having the same name as the client's X common name. If a matching file exists, it will be opened and parsed for client-specific configuration options. Note that the configuration files must be readable by the OpenVPN process after it has dropped it's root privileges. This file can specify a fixed IP address for a given client using --ifconfig-push, as well as fixed subnets owned by the client using --iroute.
One of the useful properties of this option is that it allows client configuration files to be conveniently created, edited, or removed while the server is live, without needing to restart the server.
The following options are legal in a client-specific context: --push, --push-reset, --iroute, --ifconfig-push, and --config. As a final note, you may be interested in the ccd-exclusive parameter as well. Damiano Verzulli Damiano Verzulli 3, 1 1 gold badge 19 19 silver badges 28 28 bronze badges. This way it's not required to remove anything from server configs, but to simply edit the IPv4 properties of the Windows machine's TAP adapters. Dimi: actually that solution is much more limited than you make it appear.
In short, your workaround works only iff there is but a single VPN connection always established through the same TAP adapter. My problem wasn't exactly the same, but the symptoms were similar enough for this question to appear in search results, so in case anyone else winds up here for the same reason: I'm using Tunnelblick , an OpenVPN GUI for Mac OS.
Aldaviva Aldaviva 6 6 bronze badges. Thanks for aldaviva , it's working on my macOS Attach my screenshot. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
0コメント