Hello Community!
After my installation and configuration it's not possible to access device in the server subnet over the connected VPN.
Configuration:
OpenVPN Server: 10.0.0.68 / 255.255.255.0
Router Subnet: 10.0.0.138
Device Subnet: 10.0.0.90
Server configuration:
port XXXX
proto udp
dev tun
ca XX.crt
cert XX.crt
key XX.key
dh /etc/openvpn/easy-rsa/keys/dh2048.pem
server 172.16.0.0 255.255.0.0
ifconfig 172.16.0.1 172.16.0.2
ifconfig-pool-persist ipp.txt
push "route 172.16.0.1 255.255.255.255"
push "route 172.16.0.0 255.255.255.0"
push "route 10.0.0.68 255.255.255.0" #Subnet
push "redirect-gateway def1"
push "dhcp-option DNS 10.0.0.138"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/easy-rsa/keys/ta.key 0 # This file is secret
cipher AES-256-CBC # AES
comp-lzo
max-clients 5
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 4
Client configuration:
client
keepalive 10 120
dev tun
proto udp
remote xxx xxxx
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert X.crt
key X.key
ns-cert-type server
tls-auth ta.key 1
cipher AES-256-CBC
comp-lzo
verb 3
pre-up /etc/firewall-openvpn-rules.sh:
#!/bin/sh
iptables -t nat -A POSTROUTING -s 172.16.0.0/24 -o eth0 -j SNAT --to-source 10.0.0.68
Can anyone help me to solve this problem. I would like that the connected client can access the network device (10.0.0.90) over the connected VPN.
Regards, cop