pull "redirect-gateway def1"pull "route-gateway 192.168.0.1”pull "dhcp-option DNS 192.168.0.1"pull "dhcp-option DNS 8.8.8.8"
--pull
This option must be used on a client which is connecting to a multi-client server. It indicates to OpenVPN that it should accept options pushed by the server, provided they are part of the legal set of pushable options (note that the --pull option is implied by --client ).
In particular, --pull allows the server to push routes to the client, so you should not use --pull or --client in situations where you don't trust the server to have control over the client's routing table.
Hi jkbull...,
Please kindly find in the attached file my Tunnelblick Diagnostic Info. I hope this will give you some clue to my issue. I'm looking forward to hearing from you.---Regards,
Nick
2014-10-15 20:37:09 /sbin/route add -net 0.0.0.0 10.9.0.17 128.0.0.0add net 0.0.0.0: gateway 10.9.0.172014-10-15 20:37:09 /sbin/route add -net 128.0.0.0 10.9.0.17 128.0.0.0add net 128.0.0.0: gateway 10.9.0.17
Ji jkbull...,Thank you very much for your quick reply! I tried removing the redirect-gateway command and setting up manual routing, but under Mac OS it doesn't work. Same result. Windows is fine with manual and automatic routing, but Mac is a different story.I traced the problem to Default Gateway prioritising issue in Mac OS. Apparently OpenVPN can't prioritise it's gateway over my Wi-Fi gateway or at least I couldn't do it. By the way my goal is to route all of my traffic via my VPN tunnel.I read about similar issue in your post here: https://groups.google.com/forum/#!topic/tunnelblick-discuss/IdDRnr6x9TYCan you share please what was the outcome?P.S. I managed to get my OpenVPN working by using Viscosity. In Viscosity I introduced route-delay 10 and the configuration was OK, unfortunately with Tunnelblick I couldn't manage to make it work.Thank you very much for your time. I'll be happy to see what was the outcome from the long discussion in the above mentioned topic.
--
You received this message because you are subscribed to a topic in the Google Groups "tunnelblick-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tunnelblick-discuss/XVtK9J01hi0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tunnelblick-dis...@googlegroups.com.
Visit this group at http://groups.google.com/group/tunnelblick-discuss.
For more options, visit https://groups.google.com/d/optout.
--
Hi jkbull...,Thanks for all your help!Yes, you've understood correctly my situation! I believe, introducing a check box under the advanced options named for example "DHCP over TAP" would be very good improvement, or you can make it automatically in case the config file has tap interface and is using udp protocol (I'm not sure whether or not you can have bridged configuration with tcp).I'm very pleased that you developers are looking for continuous improvement of your software and also I believe that's the key to success, thank you!
Yours sincerely,Nikolay Zhelev
OK. I **think** I understand.--Nikolay's setup gets DHCP from a DHCP server that was in the VPN. In this situation, it can take a long time to get the DHCP information -- many seconds. To avoid a long delay, Tunnelblick tells OpenVPN to go ahead and finish establishing the connection while Tunnelblick waits for the DHCP information. If it takes too long, and if OpenVPN needs to do certain things that depend on the DHCP address (such as setting up certain routing), then there are problems.The solution Nikolay found, to add "route-delay 10" to the configuration, introduces a delay before OpenVPN does anything with the routing. That ten seconds is to give Tunnelblick time to get the DHCP info and deal with it. However, it is possible that getting the DHCP info will take more than ten seconds, in which case the connection will probably fail the same way it did without any delay.The best solution may be to have a checkbox that tells Tunnelblick to wait until after Tunnelblick has processed the DHCP info to tell OpenVPN to continue. That way, if the DHCP info comes in quickly, OpenVPN will be able to continue quickly, and if the DHCP info is delayed longer than ten seconds, the connection will proceed when it does arrive. I will look into doing that.
On Friday, October 17, 2014 1:27:21 PM UTC-4, Nikolay Zhelev wrote:Dear fellows,
Problem Resolved!
Please be aware, that this solution is valid only for Mac users, trying to connect to OpenVPN server, which is bridged with a DHCP server using tap interface and UDP protocol. Also the final goal is to route all traffic via the VPN tunnel.
Tunnelblick now works. Finally I managed to solve my problem. Just for reference, today I installed security update 2014-005 for OS X Mavericks and disabled ipv6 protocol by typing the following command in Bash:
networksetup -setv6off wi-fi
I’m not sure whether this had any effect on my configuration or not, but it’s good to know what I’ve done.
In Tunnelblick my configuration works only with: Set nameserver (3.0b10)
The problem was that when I was using both redirect-gateway and route-gateway in my client configuration file, my tap adapter was not receiving any IP address from the DHCP server. Because of that OpenVPN was just skipping the fact that my tap adapter doesn’t have any IP address and proceeding to routing table modification, but since there was nothing to route, the client was proceeding to the next command –route-gateway.
Since my tap adapter didn’t have an IP address, the --route-gateway command was assigning the pre-defined gateway IP address to my Wi-Fi adapter.
Result: Complete mess.
When I introduced the –route-delay 10 command, I set a 10 seconds holding time, before the execution of –redirect-gateway and route-gateway commands. This holding time allowed my tap adapter to receive a proper network configuration from my DHCP server and from that point all other commands make sense.
Please if you see something, which is not right in the text above, feel free to correct me.
Good luck to all of you, trying to resolve similar cases!
Regards,
Nick
You received this message because you are subscribed to a topic in the Google Groups "tunnelblick-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tunnelblick-discuss/XVtK9J01hi0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tunnelblick-discuss+unsub...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to tunnelblick-dis...@googlegroups.com.
Hi jkbull...,
You are very welcome! Always happy to help! I'll send you details to your e-mail address.Please consider the topic as closed, issue resolved.Have a nice weekend!
Regards,Nick