both networks have the same networks; 192.168.1.0 /24

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
rwalle
OpenVpn Newbie
Posts: 4
Joined: Sat Jul 22, 2017 5:06 pm

both networks have the same networks; 192.168.1.0 /24

Post by rwalle » Sat Jul 22, 2017 5:12 pm

Hi,

I have an issue sending traffic via the VPN connection when both networks have the same networks; 192.168.1.0 /24. After VPN connection traffic for the local network seems not to go trough the tunnel. What can I do to fix this?

Kind regards,

Rob

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: both networks have the same networks; 192.168.1.0 /24

Post by TinCanTech » Sat Jul 22, 2017 5:19 pm

Configure your networks properly.

rwalle
OpenVpn Newbie
Posts: 4
Joined: Sat Jul 22, 2017 5:06 pm

Re: both networks have the same networks; 192.168.1.0 /24

Post by rwalle » Mon Jul 24, 2017 6:45 am

Both networks are configured correctly. They have the same network configuration. Both 192.168.1.0/24. The networks are on a different location. It appears that local addresses have preference over sending all traffic to the tunnel.

Kind regards,

Rob

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: both networks have the same networks; 192.168.1.0 /24

Post by TinCanTech » Mon Jul 24, 2017 11:06 am

rwalle wrote:Both networks are configured correctly
TinCanTech wrote:Configure your networks properly
rwalle wrote:They have the same network configuration. Both 192.168.1.0/24
That is not properly.
rwalle wrote:It appears that local addresses have preference over sending all traffic to the tunnel.
That is how networks work and why you need unique networks on either end.

Also,
  • NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be aware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use the same subnet.
:arrow: Never use 192.168.0.0/24 or 192.168.1.0/24 (or other common subnets) for your OpenVPN Server LAN :!:
  • You are advised to change your server LAN to a more unique RFC1918 compliant subnet.
    For example: 192.168.143.0/24

rwalle
OpenVpn Newbie
Posts: 4
Joined: Sat Jul 22, 2017 5:06 pm

Re: both networks have the same networks; 192.168.1.0 /24

Post by rwalle » Mon Jul 24, 2017 6:15 pm

I realize now I haven't been thorough. The OpenVPN client connects and gets an private IP address in the 10.0.0.0 range. But local traffic is not sent to the tunnel. When the local networks are different there is no issue. The traffic is sent correctly through the tunnel.

Kind regards,

Rob

Post Reply