Hi,
I am trying to configure OPEN VPN Access server using
https://openvpn.net/index.php/access-server/docs/admin-guides-sp-859543150/howto-administration/201-how-to-configure-a-host-as-a-gateway-for-client-side-subnets.html
for the following case:
User1 is connected to Private LAN (192.168.0.1), which is required to access by User2
Here is configuration:
VPN Setting
Dynamic IP settings: 172.27.224.0/24
Static IP settings: 172.28.224.0/24
Routing: Yes, using NAT
Specify the private subnets to which all clients should be given access (as 'network/netmask_bits', one per line):
172.27.224.0/24
172.28.224.0/24
Allow access from these private subnets to all VPN client IP addresses and subnets (checked)
Should client Internet traffic be routed through the VPN? Yes
Should clients be allowed to access network services on the VPN gateway IP address? YES
User1 settings:
Allow Auto Login checked.
Static IP: 172.28.224.50
Configure VPN Gateway: Yes
Allow client to act as VPN gateway
for these client-side subnets: 192.168.1.0
when I connect from User2 (got dynamic IP of 172.27.224.5) I can ping the user1 by pinging 172.28.224.50
I also tried to add route for user2 by running route add 192.168.1.0 mask 255.255.255.0 172.28.224.50 It gives me error that GW is different
Can someone please advise what I am doing wrong and advice.
Thanks