Reputation
1,585
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 17 40
Impact
~198k people reached

Jan
24
accepted Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
Jan
24
answered Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
Jan
21
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd nope. I should try using the same machine but on a different network. My gut is telling me that this might be an issue with the 3G connection. Sometimes (and only when I am on 3G), I successfully connect to the VPN but cannot even get the correct IP.
Jan
21
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd another interesting discovery: I am able to access all of the devices on the LAN (from the other machine, that is), even those on which I haven't manually added a static route. It was my understanding that this was necessary if OpenVPN wasn't running on the network gateway. Wizardry.
Jan
21
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd what are the permissions on your OpenVPN folder? I just realized that my client is not writing any logs, and in the connection phase I see a warning saying that it is not able to open my user.log file.
Jan
19
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd no, I am on another machine at the moment. Do you think it could be a problem with the machine?
Jan
19
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd this is interesting: I am currently on another network and I can access my local machines. The routing table is indeed correct now (the routes are all being pushed - with the exception of the 192.168.0.0 route which is not there for some reason, but I do have both the 10.8.0.0 routes). At this point I am wondering whether my mobile operator does not allow using non-default routes?
Jan
19
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd yes, when I am connected to the VPN I get my home router's public IP.
Jan
19
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd what about browsing? I mean, browsing works just fine and I am getting my home public IP address, but is that traffic also not going through the VPN?
Jan
19
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd hah, good catch, I will look into that. But does this mean that, when connected to the VPN, my packets are just going through my mobile gateway and are not being encrypted?
Jan
18
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@harrymc yeah, I will definitely look at bridging as an alternative. It would be a pity really, not to know what is wrong :) I appreciate your help though!
Jan
18
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@harrymc yep, that's one of the articles I linked in the "What I have tried so far section" :P
Jan
18
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@harrymc Correct, and I agree that these 3 methods will work. Also, putting the VPN server on the router would also solve this. The fact is, I want to solve this specific issue with routing because I want to learn what I have done wrong. I think I have read all online threads from people that had the same issue, tried all fixes but obviously there is still something that is missing and I can't for the life of me figure out what. I think I might just give up, forget about this and look for my next puzzle to solve. Or I could put the bounty to 500, maybe that would help too.
Jan
18
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@harrymc That is my understanding as well. The workaround for this is to add a static route (either on the router, which I cannot do unfortunately, or on each LAN machine that I want to access when connected to the VPN). This is what route add -net 10.8.0.0/24 gw 192.168.0.140 should do.
Jan
18
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@harrymc This is my first OpenVPN server config so I must admit I might be mistaken in many things, but I thought that command pushed the route to the local network to the VPN clients.. In any case, even commenting it out I see the same behavior...
Jan
18
revised Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
deleted 14 characters in body
Jan
16
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
Please clarify: is "local traffic" that on the 192.168.0.0 network? What's the outgoing link you are referring to? Have a look at this article linked above to understand what I mean: blog.remibergsma.com/2013/01/13/…
Jan
16
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
"the other end of the tunnel has no idea about you local network", that's right, and that's once again where I need routing to work :)
Jan
16
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
I am sure split tunneling would make me reach my goal, but that is not how I would like to do it. I still want all of my traffic to go through my VPN server, but I also want to access a different network, and here's where routing is involved.
Jan
16
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
Wouldn't that make some traffic not go through the VPN server though?