Acces to client lan form vpn server

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
Pablo1988
OpenVpn Newbie
Posts: 1
Joined: Fri Aug 26, 2022 4:59 pm

Acces to client lan form vpn server

Post by Pablo1988 » Fri Aug 26, 2022 5:07 pm

hello i have problem with accessing client lan device and i think it is route problem.
Image
i can ping vpn server (10.8.0.1) from Lan device (192.168.8.20)
i can not ping Lan device (192.168.8.20) from vpn server (10.8.0.1)

my route on VPN server looks :

Code: Select all

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         185.180.204.1   0.0.0.0         UG    0      0        0 eth0
10.8.0.0        0.0.0.0         255.255.255.0   U     0      0        0 tun0
185.180.204.0   0.0.0.0         255.255.252.0   U     0      0        0 eth0
192.168.8.0     10.8.0.4        255.255.255.0   UG    0      0        0 tun0
please check if it is correct if not please explain how it should look like

User avatar
ordex
OpenVPN Inc.
Posts: 444
Joined: Wed Dec 28, 2016 2:32 am
Location: IRC #openvpn-devel @ libera.chat

Re: Acces to client lan form vpn server

Post by ordex » Sun Sep 11, 2022 10:50 pm

Have you added an 'iroute' to the ccd file of the client serving the LAN?

Post Reply