Cannot connect to local network

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
parablazer
OpenVpn Newbie
Posts: 6
Joined: Thu Sep 28, 2017 1:18 am

Cannot connect to local network

Post by parablazer » Sat Sep 30, 2017 10:46 pm

Hello all,
I am running OpenVPN on a pfsense router, and I can connect to the VPN from a remote laptop. However I cannot connect or ping any computers on the local network.

My tunnel network is 10.30.3.0/24, and my local network is on 10.30.1.0.

Now when setting up the VPN through the wizard I set my local ipv4 network as 10.36.0.0/22 so It should have access to all subs from .1.0 to .3.0, but no dice. I can connect to the VPN and can ping the router but I cannot ping any computer on the network.
Thank you for the help in advance.

TiTex
OpenVPN Super User
Posts: 310
Joined: Tue Apr 12, 2011 6:22 am

Re: Cannot connect to local network

Post by TiTex » Sun Oct 01, 2017 6:12 am

my local network is on 10.30.1.0.
I set my local ipv4 network as 10.36.0.0/22

parablazer
OpenVpn Newbie
Posts: 6
Joined: Thu Sep 28, 2017 1:18 am

Re: Cannot connect to local network

Post by parablazer » Sun Oct 01, 2017 2:41 pm

I see what you are talking about, I tried 10.30.1.0/24 as well with no affect. I was under the impression that it needed access to both IP addresses on the .3.0 and the .1.0 subnet, which is why I chose 10.30.0.0/22.

I was not clear. My local network address pool is 10.30.1.0/24, this is for all the computers on my network. When setting up the openVPN I set the IPv4 Local network(s) as 10.30.0.0/22 giving me available IP addresses of 10.30.0.1 - 10.30.3.254. That would cover both my local network (10.30.1.0/24) and my tunnel network for the VPN 10.30.3.0/24. Sorry for not being clear.

TiTex
OpenVPN Super User
Posts: 310
Joined: Tue Apr 12, 2011 6:22 am

Re: Cannot connect to local network

Post by TiTex » Sun Oct 01, 2017 4:24 pm

it was clear the first time too but seems like you've made a typo 10.36.0.0
you need to allow the traffic from pfsense firewall rules page like from vpn network -> lan network , beside that check your NAT rules which i would switch from automatically generated to manually and set up the rules as i want them.

parablazer
OpenVpn Newbie
Posts: 6
Joined: Thu Sep 28, 2017 1:18 am

Re: Cannot connect to local network

Post by parablazer » Sun Oct 01, 2017 4:42 pm

Oh sorry, I didn't notice that. Yes that was a typo. its 10.30.0.0/22

pjkemp
OpenVpn Newbie
Posts: 1
Joined: Wed Sep 27, 2017 9:43 pm

Re: Cannot connect to local network

Post by pjkemp » Tue Oct 03, 2017 11:30 am

what netmask should be used to configure the VPN to access 192.168.2.0 from 192.168.3.0? I cannot also get local traffic to work with the netmask of 255.255.255.0

I'm a networking newbie so this might be obvious to most, but not to me...

thanks
Phil

Post Reply