kylemanna / docker-openvpn

🔒 OpenVPN server in a Docker container complete with an EasyRSA PKI CA
https://hub.docker.com/r/kylemanna/openvpn/
MIT License
8.62k stars 2.37k forks source link

#Question #HelpWanted - Why "route" is different of "server" in openvpn.conf ? #715

Closed jonathan-gatard closed 8 months ago

jonathan-gatard commented 1 year ago

Hello everybody,

I'm new in VPN domain and I'm learning everyday by reading the documentation. However, I don't understand some points:

server 192.168.255.0 255.255.255.0
verb 3
key /etc/openvpn/pki/private/neptune79.duckdns.org.key
ca /etc/openvpn/pki/ca.crt
cert /etc/openvpn/pki/issued/neptune79.duckdns.org.crt
dh /etc/openvpn/pki/dh.pem
tls-auth /etc/openvpn/pki/ta.key
key-direction 0
keepalive 10 60
persist-key
persist-tun
duplicate-cn

cipher AES-256-GCM
data-ciphers AES-256-GCM

proto udp
# Rely on Docker to do port mapping, internally always 1194
port 1194
dev tun0
status /tmp/openvpn-status.log

user nobody
group nogroup
comp-lzo no

### Route Configurations Below
route 192.168.254.0 255.255.255.0

### Push Configurations Below
push "block-outside-dns"
push "dhcp-option DNS 1.1.1.1"
push "dhcp-option DNS 1.0.0.1"
push "dhcp-option DNS 8.8.8.8"
push "comp-lzo no"

Someone can explain me please:

And also if possible:

My goal is to connect to ssh server located on my VPN client, it doesn't work for the moment :(

Thanks !