So I draw a diagram like all good techies should in times of confusion :lol:
So that should clarify the IP's, and what can and cant be pinged.
The route table on Client 1 (the one I can't ping Client 2 from) is:
iMacQLD:~ lynellewinter$ netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.12.1 UGSc 3 0 en0
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 1 29425 lo0
169.254 link#4 UCS 0 0 en0
192.168.12 link#4 UCS 2 0 en0
192.168.12.1 30:85:a9:6c:e9:20 UHLWIir 4 14 en0 1195
192.168.12.100 127.0.0.1 UHS 0 0 lo0
192.168.12.255 ff:ff:ff:ff:ff:ff UHLWbI 0 23 en0
The routing table on Router1 (the OpenVPN server) is:
admin@(none):/tmp/home/root# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
202.7.179.120 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.12.12.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun21
10.12.12.0 10.12.12.2 255.255.255.0 UG 0 0 0 tun21
1.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.12.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
192.168.10.0 10.12.12.2 255.255.255.0 UG 0 0 0 tun21
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.7.179.120 0.0.0.0 UG 0 0 0 ppp0
The route table in Router 2:
admin@(none):/tmp/home/root# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun21
202.7.179.113 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun21
1.1.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0 br0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 202.7.179.113 0.0.0.0 UG 0 0 0 ppp0
admin@(none):/tmp/home/root#
The route table on Client 2:
macbookair:~ ilium007$ netstat -nr
Routing tables
Internet:
Destination Gateway Flags Refs Use Netif Expire
default 192.168.10.1 UGSc 9 2 en0
default 192.168.10.1 UGScI 0 0 en2
1.1.1/24 10.12.12.17 UGSc 0 0 tun0
10.12.12/24 10.12.12.17 UGSc 0 1 tun0
10.12.12.17 10.12.12.18 UH 5 2 tun0
60.240.79.56/32 192.168.10.1 UGSc 1 5 en2
127 127.0.0.1 UCS 0 0 lo0
127.0.0.1 127.0.0.1 UH 9 413344 lo0
169.254 link#5 UCS 0 0 en0
192.168.10 link#5 UCS 5 0 en0
192.168.10 link#4 UCSI 2 0 en2
192.168.10.1 50:46:5d:6d:9:68 UHLWIi 2 4 en2 1137
192.168.10.1 50:46:5d:6d:9:68 UHLWIir 11 2109 en0 1196
192.168.10.100 127.0.0.1 UHS 0 2 lo0
192.168.10.172 cc:8:e0:3e:b:b9 UHLWIi 0 115 en0 920
192.168.10.187 127.0.0.1 UHS 0 12 lo0
192.168.10.200 0:15:17:3d:52:d2 UHLWIi 2 5010 en0 613
192.168.10.202 4:1e:64:99:f3:d7 UHLWIi 0 0 en2 260
192.168.10.202 4:1e:64:99:f3:d7 UHLWIi 0 0 en0 196
192.168.10.255 ff:ff:ff:ff:ff:ff UHLWbI 0 10 en0
192.168.12 10.12.12.17 UGSc 2 0 tun0
From Router 1 I can ping Client 2:
admin@(none):/tmp/home/root# ping 192.168.12.100
PING 192.168.12.100 (192.168.12.100): 56 data bytes
64 bytes from 192.168.12.100: seq=0 ttl=64 time=1.069 ms
64 bytes from 192.168.12.100: seq=1 ttl=64 time=0.339 ms
64 bytes from 192.168.12.100: seq=2 ttl=64 time=0.339 ms
64 bytes from 192.168.12.100: seq=3 ttl=64 time=0.383 ms
--- 192.168.12.100 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.339/0.532/1.069 ms
admin@(none):/tmp/home/root#
but from Client 1 I cannot ping Client 2:
PING 192.168.10.100 (192.168.10.100): 56 data bytes
^C
--- 192.168.10.100 ping statistics ---
1 packets transmitted, 0 packets received, 100.0% packet loss
iMacQLD:~ lynellewinter$
From Router 2 I can ping Client 2 (so ping is not blocked on the Mac):
admin@(none):/tmp/home/root# ping 192.168.10.100
PING 192.168.10.100 (192.168.10.100): 56 data bytes
64 bytes from 192.168.10.100: seq=0 ttl=64 time=0.824 ms
64 bytes from 192.168.10.100: seq=1 ttl=64 time=0.650 ms
64 bytes from 192.168.10.100: seq=2 ttl=64 time=0.490 ms
64 bytes from 192.168.10.100: seq=3 ttl=64 time=0.553 ms
--- 192.168.10.100 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 0.490/0.629/0.824 ms
admin@(none):/tmp/home/root#
And obviously I can ping Client 1 from Client 2 (thats how I am ssh'ing to it to get these stats):
macbookair:~ ilium007$ ping 192.168.12.100
PING 192.168.12.100 (192.168.12.100): 56 data bytes
64 bytes from 192.168.12.100: icmp_seq=0 ttl=63 time=61.752 ms
64 bytes from 192.168.12.100: icmp_seq=1 ttl=63 time=62.053 ms
64 bytes from 192.168.12.100: icmp_seq=2 ttl=63 time=65.750 ms
64 bytes from 192.168.12.100: icmp_seq=3 ttl=63 time=63.571 ms
^C
--- 192.168.12.100 ping statistics ---
4 packets transmitted, 4 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 61.752/63.282/65.750/1.583 ms
macbookair:~ ilium007$
**EDIT** Just noticed the 10.8.0.2 in the Router 2 route table - that is for the OpenVPN Server (related to VPNing into my network (192.168.10.0/24) but unrelated to this issues I think)