Hello all! I have to ask how I may configure my VyOS device to be able to run as an OpenVPN server and be able to use it as a way to connect to the private server being hosted on it.
Here are the server configurations:
openvpn vtun1 {
local-port 1194
mode server
persistent-tunnel
protocol udp
server {
client client1 {
ip 10.16.1.10
push-route 172.16.0.0/24
subnet 10.16.1.0/25
}
name-server 10.16.0.254
push-route 172.16.0.0/24 {
}
subnet 10.16.0.0/24
topology subnet
}
tls {
ca-certificate ca
certificate server
dh-params dh
}
}
The clients trying to access are individuals and their machines, rather than another VyOS machine. So there are files like client1.crt, client1.key & ca.crt for each client on said machines.
So far, I’ve been able to technically connect to the VyOS machine via OpenVPN on a client machine, however, I have not been able to access the private network 172.16.0.0/24 that’s being hosted within its server. The only thing even pingable is the client’s own ip (10.16.1.10)
Anyone know any good tips or configuration changes I must follow to correct this?
Thank you for reading!
Extra info:
Client configuration file:
client
nobind
remote xxx.xxx.xxx.xxx xxxxx # censored
remote-cert-tls server
proto udp
dev tun1
persist-key
persist-tun
verb 3
mute 3
tls-client
ca "E:\\Users\\Client1\\OpenVPN\\config\\c1\\ca.crt"
cert "E:\\Users\\Client1\\OpenVPN\\config\\c1\\client1.crt"
key "E:\\Users\\Client1\\OpenVPN\\config\\c1\\client1.key"
keysize 256
comp-lzo no