Windows client can't access server's LAN

Need help configuring your VPN? Just post here and you'll get that help.

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
Thunder
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 08, 2022 7:35 pm

Windows client can't access server's LAN

Post by Thunder » Wed Jun 08, 2022 7:45 pm

Hello,

I have setup a OpenVPN server on my openwrt router.
This servers is used to access my home network remotly.
Unfortunately, Windows client cannot access the server LAN network.

Subnets:
- Server LAN: 10.0.0.0/24
- Openvpn Server: 10.0.8.0/24
- Clients LAN: 192.168.178.0/24

Connection to the server works perfect on Android device.

Server config:
Server
user nobody
group nogroup
dev tun
port 1194
proto udp
server 10.0.8.0 255.255.255.0
topology subnet
client-to-client
keepalive 10 60
persist-tun
persist-key
push "route 10.0.0.0 255.255.255.0"
push "dhcp-option DNS 10.0.8.1"
push "dhcp-option DOMAIN lan"
push "persist-tun"
push "persist-key"
<dh>
</dh>
<tls-crypt-v2>
</tls-crypt-v2>
<key>
</key>
<cert>
</cert>
<ca>
</ca>


Client config
Client
dev tun
dev-node home
nobind
client
remote xxxxxxx.ddns.net xxxx udp
auth-nocache
remote-cert-tls server
<tls-crypt-v2>
</tls-crypt-v2>
<key>
</key>
<cert>
</cert>
<ca>
</ca>


Has anyone an idea about what is going wrong here?

Thanks a lot!

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

Re: Windows client can't access server's LAN

Post by TinCanTech » Wed Jun 08, 2022 9:43 pm

Make sure to enable IP_FORWARDING on your server.

https://community.openvpn.net/openvpn/wiki/HOWTO

Thunder
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 08, 2022 7:35 pm

Re: Windows client can't access server's LAN

Post by Thunder » Thu Jun 09, 2022 5:53 pm

Thanks but I'm not sure it is a problem on the server side.
It works very well with my Android Device.
Only the windows client can't access the server LAN.

And yes, it is activated

Code: Select all

root@OpenWrt:~# cat /proc/sys/net/ipv4/ip_forward
1

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

Re: Windows client can't access server's LAN

Post by TinCanTech » Thu Jun 09, 2022 6:18 pm

Thunder wrote:
Thu Jun 09, 2022 5:53 pm
Only the windows client can't access the server LAN
Then check your client log file for problems..

Post Reply