Hi everyone!
I have the following setup:
client runs two vpn configs
openvpn 172.16.22.0/24 -> server 1
client tun0 172.16.22.101 P-t-P:172.16.22.102
openvpn 172.16.77.0/24 -> server 2
client tun1 172.16.77.101 P-t-P:172.16.77.102
server 2
openvpn 172.16.77.0/24
server tun0 172.16.77.1 P-t-P:172.16.77.2
I need to be able to ping client tun0 ip 172.16.22.101 from server 2.
this is the output of ip route list
from server 2
default via 10.0.5.1 dev eth0
10.0.5.0/24 dev eth0 proto kernel scope link src 10.0.5.4
172.16.22.0/24 via 172.16.77.2 dev tun0
172.16.77.0/24 via 172.16.77.2 dev tun0
172.16.77.2 dev tun0 proto kernel scope link src 172.16.77.1
172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.42.1
ip route list from client
default via 10.0.7.1 dev eth0
10.0.7.0/24 dev eth0 proto kernel scope link src 10.0.7.3
78.46.35.65 dev eth0 scope link
172.16.22.1 via 172.16.22.102 dev tun0
172.16.22.102 dev tun0 proto kernel scope link src 172.16.22.101
172.16.77.0/24 via 172.16.77.102 dev tun1
172.16.77.102 dev tun1 proto kernel scope link src 172.16.77.101
when I ping 172.16.22.101 from server 2 with tcpdump I see the following packets on server 2's tun interface:
20:03:43.766792 IP 172.16.77.1 > 172.16.22.101: ICMP echo request, id 30928, seq 427, length 64
20:03:44.766799 IP 172.16.77.1 > 172.16.22.101: ICMP echo request, id 30928, seq 428, length 64
20:03:45.766787 IP 172.16.77.1 > 172.16.22.101: ICMP echo request, id 30928, seq 429, length 64
But when I listen to the traffic on client tun interface - I don't see any icmp packets at all .
Forwarding is switched on on both servers.
iptables accept any sort of packets.
Please, could anybody suggest anything ?
Thank you!!
Regards,
Sergey