I'm trying to reach the network of a client.
Server -> Client -> Device inside Client LAN
Expanding the scope of the VPN to include additional machines on either the client or server subnet
My server is a VPS from Hostinger.
#server.conf
local 185.28.23.108
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
push "redirect-gateway def1 bypass-dhcp"
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 31.220.105.10"
push "dhcp-option DNS 9.9.9.9"
push "block-outside-dns"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
verb 3
crl-verify crl.pem
explicit-exit-notify
server 10.254.254.0 255.255.255.0
client-to-client
client-config-dir /etc/openvpn/ccd
# Advertise subnet of VPS
push "route 185.28.23.0 255.255.255.0"
# Route for client-to-client
route 192.168.200.0 255.255.255.0
push "route 192.168.200.0 255.255.255.0"
# ccd client
ifconfig-push 10.254.254.2 255.255.255.0
iroute 192.168.200.0 255.255.255.0
With that, from the VPS (185.28.23.108) I try to ping 192.168.200.1.
Using tcpdump I was able to see the package going through tun0 interface (VPS -> Client). From client to internal network (Client -> Second device).
However, the package doesn't return.
Code: Select all
# Dump at client side
sudo tcpdump -i utun3 icmp
01:26:42.925415 IP 185.28.23.109 > 192.168.200.254: ICMP echo request, id 842, seq 612, length 64
Code: Select all
# Dump at client side
sudo tcpdump -i en0 icmp
01:36:59.296662 IP 185.28.23.109 > 192.168.200.254: ICMP echo request, id 859, seq 1, length 64
Code: Select all
185.28.23/24 10.254.254.1 UGSc utun3
185.28.23.108/32 192.168.200.1 UGSc en0
Any suggestion?