Reputation
1,572
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
1 14 40
Impact
~187k people reached

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?
Jan
16
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@user2313067 I have added the output of route print, and I confirm that I have also run sysctl -p. I have also double checked running cat /proc/sys/net/ipv4/ip_forward
Jan
16
revised Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
added 3852 characters in body
Jan
15
revised Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
added 2215 characters in body
Jan
15
comment Yet another routing issue in OpenVPN - Cannot access local machines while on VPN
@heavyd When I am connected to the VPN, I normally get IP 10.8.0.6. Let me update the question with the full output of ipconfig, it might be useful.