Hi,
I'm a software programmer and not familiar with advanced network routing, I tried to follow
community resources but still can't get my setup to work, here is my setup:
Office Network
PFSense
Open VPN Server configured:
Client Network
Client A
Ubuntu server with 2 NICs (one physical, one usb).
- enp3s0 (physical): Static IP 192.168.222.2, connected directly to a Siemen PLC (also static IP, no router here)
- enx* (usb dongle): 192.168.1.60, configured DHCP on local network with internet.
- tun0 (openvpn ip): 172.21.20.2
Siemens PLC
- Static IP: 192.168.222.223, connected directly to the physical ethernet enp3s0 of the client above (no router, all static ips)
Other clients Network
Client B
Any computer connected to VPN, in my case a Technician with a laptop
From Client B, I'm able to ping 192.168.222.2 (Client A static IP) but
can't ping 192.168.222.223. Here is tcp dump logs from Client A:
10:30:06.117494 ip: 172.21.20.2 > 192.168.222.223: ICMP echo request, id 1, seq 4802, length 40
10:30:09.193062 ip: 172.21.20.3 > 172.21.20.2: ICMP host 192.168.222.223 unreachable, length 68
I tried to change my routes from 192.168.222.0 to 192.168.1.0 in openvpn configurations for testing, and I'm able to ping all computers on Client A 192.168.1.0/24 network. What am I missing here? iptables rules on Client A to forward traffic to the other NIC ? I tried many stuff but not really know what I'm doing here 🙂