I have a machine connected to a openvpn server on address 184.108.40.206. My machine has an IP 192.168.1.0/24 and it can reach the 220.127.116.11 address. Once I connect to the openvpn server a new interface tun0 is created and the IP address 192.168.0.6 is assigned to it. I can ping the machine hosting the VPN on IP address 192.168.0.1. Traffic goes through interface tun0 as expected.
Can I set some iptables rules to force traffic to go through tun0 even if I ping directly 18.104.22.168? In particular I would like to limit this only to port 80 of 22.214.171.124