Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

no openvpn outgoing connection possible

I recently replaced an old router with an airport time capsule (version 7.7.3) (and in another room extended with an airport express).

Since this installation I am not able to connect to openVPN at work the office. There is no problem if I use my old wifi or my IPhone as a personal hotspot.

At the time of trying to use openvpn I am always connected to the airport time capsule (in case that is interesting)


Searching the "internet" didn't give any useful results of what could be going on, so any help is appreciated.


Forgot to mention (pretty important probably) :

- It connects to the VPN identical to the working situation

- I can ping addresses in the VPN

- No other "traffic" possible (ssh, http, https, etc). Symptom is that it just hangs forever (ssh) or loads forever (web page).

- I use tunnelblick


Mvgr,

Martin


Message was edited by: cbaahmi

Posted on Feb 3, 2016 6:21 AM

Reply
6 replies

Feb 3, 2016 6:57 AM in response to cbaahmi

This sort of thing can sometimes be an MTU problem. See https://groups.google.com/forum/#!topic/tunnelblick-discuss/ttvriICTZV0.


Another possibility is a DNS problem. Set Tunnelblick to (A) route everything through the VPN and to (B) check if the IP address changes (both settings are in the "VPN Details" window of Tunnelblick 3.6beta20). Then wait at least 90 seconds after connecting and look in the Tunnelblick log for a message about the IP address change. (The IP address change tries to contact tunnelblick.net via its name, and if that fails, by its IP address, so it can help diagnose DNS problems from routing problems.)

Feb 4, 2016 2:54 PM in response to cbaahmi

VPN through apple routers has always been somewhat problematic.


It is really important though .. the IP address at both ends is different.. and with apple using 10.0.1.1 as standard home address it is messy if the other end is 10.x.x.x as well.


I am guessing your old router was 192.168.x.x and it could be worth moving the TC to that address just to try.


Also important to make sure you do not double NAT.


What modem do you have? Is it also a router?


Apple do not use UPNP to open ports.. and without it a PC might simply not have ports open.. you are sending ok from the sound of it but not opening the required ports .. which you have to do manually .. to pick up the responses.

Feb 3, 2016 7:05 PM in response to LaPastenague

It is really important though .. the IP address at both ends is different.. and with apple using 10.0.1.1 as standard home address it is messy if the other end is 10.x.x.x as well.

That can definitely be a problem. The OpenVPN log should show a "subnet conflict" warning if that happens.


Apple do not use UPNP to open ports.. and without it a PC might simply not have ports open.. you are sending ok from the sound of it but not opening the required ports .. which you have to do manually .. to pick up the responses.

An OpenVPN client (as cbaahmi is using) does not require an open port on the router, either via UPNP or manual configuration.



In reply to the original post, note that "ping" and many other command-line commands (and Network Utility, which is just a GUI for such commands) do not use the DNS resolution that the rest of OS X uses. There can be situations where "ping example.com" works but browsing to it doesn't, and vice versa. (OS X does not use /etc/resolv.conf for DNS resolution.)

Feb 4, 2016 3:07 PM in response to jkbull

Even though I also found this link last night I gave up on it. I tried setting the MTU on the wifi connection, which didn't give the desired result. Since you pointed it to me too, I imagined I did something wrong.


Setting the MTU in the openvpn config worked :

adding mssfix 1384 did the trick.


I came to this value by :

- Finding the ideal MTU value with http://www.letmecheck.it/mtu-test.php (pointing to my router)

- Read on https://www.sonassi.com/help/magestack/setting-correct-mtu-for-openvpn that the MSS value is MTU - 40


And it works like a charm now !


I also installed the beta version as you proposed and worked with that at the office today. The connection was quite flaky. "Lots" of VPN disconnects (every 30 minutes or so). After downgrading to the latest 3.5 the problem went away. It could be just a wifi problem there (which also happens now and then), so I could work some more with it if you want.


Everyone thanks for your time !


Mvgr,

Martin

Nov 12, 2016 10:03 AM in response to cbaahmi

I was traveling overseas when I updated my iPhone 6 Plus to IOS 10. My VPN immediately stopped working since Apple dropped PPTP support. There was nothing I could do because I needed to physically access my router at home in order to troubleshoot the problem. I was using an ASUS RT-AC68U router with PPTP configured as my VPN, but it was useless since I no longer had that option on my iPhone. Fortunately, the router supports OpenVPN, which took some time to systematically configure the right settings to work on all my apple devices. In all, the one setting in particular that fixed the problem was switching the VPN protocol from UDPv4 to TCP. This worked instantly on all my devices.


One side note, if anyone is trying to figure out how to get the openvpn setting on your device: in addition to using the OpenVPN App on my phone I also had to upload the *.ovpn profile with Microsoft OneDrive through my PC. I opened the OneDrive app on my phone and pressed on the *.ovpn profile that I uploaded. I entered my credentials and connected with no issues. I hope this helps


v/r


ED

Dec 6, 2016 10:37 PM in response to cbaahmi

Change from UDP to TCP and this deals with non-standard MTU and PMTUD vandalism. Also, TCP is easier for NAT to track. Also use lzop compression with TCP as you no longer have to worry about MTU and frame sizes. Also if NAT is involved client config will need the "nobind" option. I have used OpenVPN this way through hotel worst effort "Internet" services. As hotel networks are not to be trusted use perfect forward security and OpenVPN as default route. This requires the default route to be used only for the OpenVPN concentrator.

no openvpn outgoing connection possible

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.