Trouble accessing anything else on server's 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
themohawkninja
OpenVpn Newbie
Posts: 5
Joined: Tue Apr 25, 2023 12:33 am

Trouble accessing anything else on server's local network

Post by themohawkninja » Tue Apr 25, 2023 12:59 am

Hello,

I am attempting to configure OpenVPN such that the server is on its own VM, and when I connect to it, I will be able to access everything else on the VM's local network. However, at the moment, while I can ping both the VPN server's VPN and server-side local IP addresses, I cannot reach anything else on the VPN server's local network.

The VM's local network that contains the VPN server and everything else I want to access over the VPN is 10.0.0.0/24 and the VPN network is 10.8.0.0/24. The VPN server IPs are on 10.0.0.176 and 10.8.0.1 respectively.

Below are my sanitized configs.

Server

port 1191
proto udp

dev tun

ca --.crt
cert ++.crt
key ++.key
dh @@.pem

server 10.8.0.0 255.255.255.0
ifconfig-pool-persist /var/log/openvpn/ipp.txt

push "route 10.0.0.0 255.255.255.0 10.8.0.1"

client-to-client

keepalive 10 120

tls-auth $$.key 0

cipher AES-256-CBC

max-clients 1

persist-key
persist-tun

status /var/log/openvpn/openvpn-status.log

verb 6
explicit-exit-notify 1


client

client
dev tun

proto udp

remote 1.2.3.4 1191
resolv-retry infinite
nobind

persist-key
persist-tun

ca --.crt
cert A.crt
key A.key

remote-cert-tls server

tls-auth $$.key 1

cipher AES-256-CBC

verb 3



Additionally, the one server-side machine that I intend on ultimately connecting to via the VPN has the following route:

Code: Select all

$ ip route show
	...
	10.8.0.0/24 via 10.0.0.176 dev eth0

themohawkninja
OpenVpn Newbie
Posts: 5
Joined: Tue Apr 25, 2023 12:33 am

Re: Trouble accessing anything else on server's local network

Post by themohawkninja » Wed Apr 26, 2023 11:28 am

This has been resolved. I had to set the ip_forward value to 1 on the server.

Post Reply