Greetings everyone,
I’m working a few days in an office that has basically no cell reception, but does have wifi. I can connect to my vpn (both openvpn as well as l2tp), but can’t see any of the other machines on the remote network. The remote network is 10.1.1.x/24, and the local wifi I’m on is 10.x.x.x/8. Are my requests (ssh and sftp) looking at the local network instead of remote, and is there a way I can reach my remote network?
I’m not sure but, if you have a choice between them, use OpenVPN. L2TP is not a great VPN technology.
Additionally, on the exit point of the VPN, those services which you are trying to access have to be allowed for you to see them. So if those ports are blocked, then you won’t be able to access those services.
Also, have you tried other methods of determining whether you have access to hosts in the remote subnet? ping, dns cache queries, using other network scanning tools which are not banned on your networks?
That’s not really true at all. L2TP is great. In fact, because it’s a lower level, it can break out of a lot of restricted networks.
It is a pain in the ass to set up though.
check it with ip route. You can then see the order it routes packets to each network.
More importantly, you’ve got overlap of the networks. You’ll have to choose one network. If you want the 10.1.1.x over the 10.x.x.x network, you’ll have to prioritize it’s route higher.
Nope. Address collisions break vpn afaik.
This might work, but idk if it will let you have a route to a subnet that is outside of the encompassing network. In a most of these cases, you have two networks with the same gateway address which definitely doesn’t work.
In general it’s a bad idea to use the entire 10.0.0.0/8.
Oh, I don’t have the doc’s at hand, but I’ve read that L2TP was antiquated and didn’t support practical encryption.
Not my experience. I’ve gotten some really odd situations, but collisions are just a bad time all together.
L2TP is older, yeah, but it’s encryption is just as practical as OpenVPN’s. Reading the article, it complains about “weakened by NSA” which, OpenVPN is supposedly “weakened by NSA” as well. Point is, if all you need to do is access the VPN in a reasonably secure manner and aren’t trying to defend against state actors, you’re fine using any protocol.
If you’re trying to defend against state actors, there is no solution that will work for you.
How would you configure a VPN where gateways on both sides are 192.168.1.1?
For that, you need to summon furcifer, a midlevel demon.
You’ll need a pentagram, some lithium batteries and 7 candles. (preferably ceder scented, they help mask the sulfur smell)
But really, you don’t. If they perfectly overlap, you’re boned, but if they overlap a bit, like in OP’s example, you can make it work.
I don’t dispute what you’re saying here. But I think there is a level of “ease” that I think is being overlooked when we say that any VPN protocol would do. I’m not “learned” in the practical aspects of breaking and entering, only some aspects of defending.
If there were no material benefits between them and what you were saying were so, there wouldn’t be so many folks trumpeting OpenVPN for home and IPSec Tunnelling for business over other technologies.
I wish I had the info I’ve read around this at hand, but without seeking much in the way of VPN specifics, I’ve come across a pretty consistent chorus of folks choosing these two protocols as winners over the others.
That is a common setup and you can definitely access your remote network over the vpn connection as long as the routes are setup correctly. Is your vpn client on your phone or your computer? It would be nice to see your client’s primary routing table after you connect the vpn.
If, after you connect to the vpn, you cannot connect to hosts on your remote network, it is probably because the vpn server did not push the remote routes correctly or your remote firewall is dropping traffic.
Macs are very L2TP friendly. I use it for all of my transport VPNS.
L2TP is also very good at bypassing content-filtering firewalls because it’s on Layer 2. OVPN can’t do that.
Interesting… Thank you for sharing.
Some day I’ll probably have to dive into making a VPN of my own because that seems to be the trend. I’ll keep that in mind.
Right so I should provide more info
Remote network is my network
Local wifi is not mine. All I have is guest access.
Client is running ios
Normally I can access anything on the remote network when there aren’t addr collisions
Does your remote vpn server push specific routes? Or does the client, after the vpn is connected, just use the vpn tunnel as the default gateway?
I know too little to answer these questions but I will try
When I connect via either VPN, my ip addr in ios’ network settings remains on the local network, and I see the remote ip under VPN settings. So I guess it uses it as the default gateway but doesn’t push specific routes?
It definitely reroutes any requests to the web, I can see this when accessing anything region locked, doing speed tests, etc
If there’s a link anyone would recommend I go and read to understand this better, please post it.
Does the ios openvpn app show a log when you connect?
On the android app, that log shows exactly what the server is pushing.
Edit: The relevant line from above is
![]()
where my openvpn client just sets the default route for my client’s routing table as the openvpn server.
Yes
For what it’s worth, my isp does not support ipv6. I called a few weeks ago and they basically said there are no plans to add it
That won’t impact your problem here.
It looks like your openvpn client is redirecting everything over the vpn tunnel. So if you can’t connect to 10.0.0.0/24 hosts on your remote network, your phone’s routing table must look like the moral equivalent of:
default via tun
10.0.0.0/8 via wifi interface
and because the 10.0.0.0/8 includes 10.1.1.0/24 and is more specific, your phones requests for 10.1.1.x hosts on your remote network are going out over the wifi interface and not the vpn tunnel.
So you need to add a route 10.1.1.0/24 dev tun. 10.1.1.0/24 will be more specific than 10.0.0.0/8 so it will be the route selected for hosts 10.1.1.x
How do you do that?
There are at least two ways: you could edit your vpn server config to push that route.
Or you can add it locally in your vpn client profile. I have to analogize from android, but in the client profile there is the option Custom Routes:



