passepartoutvpn / tunnelkit

VPN client library for Apple platforms.
GNU General Public License v3.0
10 stars 8 forks source link

Same subnet: VPN and WiFi #238

Closed flobernd closed 2 years ago

flobernd commented 2 years ago

Hi there,

Im trying to get OpenVPN working on my mobile phone (Passepartout) at work.

Wifi there has - let's say - 192.168.2.0/24 subnet assigned.

My OpenVPN server pushes 192.168.0.0/16 to the client which works just fine. I can access all the subnets except 192.168.2.0/16. It seems like traffic is simply not routed through the tunnel but hits the default gateway instead.

Is this a known restriction on iOS or do you have any tips for me?

Edit: Ahh was supposed to create this issue in the proper repository, but somehow messed up ^^ sorry for that.

Best, Florian

keeshux commented 2 years ago

In fact this is the proper repository!

keeshux commented 2 years ago

Before anything, does this work with OpenVPN Connect?

flobernd commented 2 years ago

@keeshux I actually planned to test this before opening an issue, but we were sent to home office due to the current COVID19 situation and I'm not able to do so in the next months :-/ I might be able to reproduce by connecting to the VPN server while in my home network. If I send traffic to a machine in the same subnet it should go through the tunnel and not directly hit the gateway if everything works fine. Not sure if you have some kind of test setup at home anyways, otherwise I will happily try to reproduce it on my side using both, Passepartout and OpenVPN Connect.

keeshux commented 2 years ago

Yes please. Try to reproduce the setup and provide me with the generic server/client conf for me to test as well.