You may end up having problems will reverse path filtering. Since data could be requested one path and replies another. But that would appear as a broken connection...
Seems not that trouble, due
- I'm able to ssh from router1_local_network to router2
- I had test VNC from router1_local_network to router2_local_netwok Mac
agenda:
router1 local address/network 172.16.72.1/24, just one isp - ISP1
router1 guest wifi 192.168.101.0/24
testing machine 172.16.72.192
Code:
broot@titanium:/tmp/home/root# netstat -anp tcp | grep :22 | grep .192
tcp 0 64 172.16.72.1:22 172.16.72.192:9924 ESTABLISHED 19504/dropbear
router2 local address/network 192.168.50.1/24, just one isp - ISP2
Code:
broot@titanium:/tmp/home/root# ip rule
0: from all lookup local
90: from all to 10.6.0.2/24 lookup main
90: from all to 192.168.50.0/24 lookup main
90: from all to 10.6.0.3 lookup main
90: from all to 10.6.0.4 lookup main
90: from all to 10.6.0.5 lookup main
90: from all to 10.6.0.6 lookup main
90: from all to 10.6.0.7 lookup main
90: from all to 10.6.0.8 lookup main
11210: from 172.16.72.192/29 lookup wgc1
32766: from all lookup main
32767: from all lookup default
seems ok, for all 172.16.72.192/29 table wgc1 applied first
Code:
broot@titanium:/tmp/home/root# ip route show table wgc1
default via router1_ISP1_WAN_GW dev eth4
router2_ISP2_public_IP via router1_ISP1_WAN_GW dev eth4
10.7.0.0/16 dev wgc1 scope link
ISP1_mail_addr via router1_ISP1_WAN_GW dev eth4 metric 1
ISP1_WAN_pool/23 dev eth4 proto kernel scope link src router1_ISP1_public_IP
router1_ISP1_WAN_GW dev eth4 proto kernel scope link
ISP1_some_addr via router1_ISP1_WAN_GW dev eth4 metric 1
127.0.0.0/8 dev lo scope link
172.16.72.0/24 dev br0 proto kernel scope link src 172.16.72.1
looking to that
- some of lines quite strange - why they are here
- no idea from my side what will trigger forwarding the packets to router2 to let them out via ISP2
so I've look at
Code:
broot@titanium:/tmp/home/root# ip route show table main
default via router1_ISP1_WAN_GW dev eth4
10.6.0.0/24 dev wgs1 proto kernel scope link src 10.6.0.1
10.6.0.3 dev wgs1 scope link
10.6.0.4 dev wgs1 scope link
10.6.0.5 dev wgs1 scope link
10.6.0.6 dev wgs1 scope link
10.6.0.7 dev wgs1 scope link
10.6.0.8 dev wgs1 scope link
10.7.0.1 dev wgc1 scope link
ISP1_mail_addr via router1_ISP1_WAN_GW dev eth4 metric 1
ISP1_WAN_pool/23 dev eth4 proto kernel scope link src router1_ISP1_public_IP
router1_ISP1_WAN_GW dev eth4 proto kernel scope link
ISP1_some_addr via router1_ISP1_WAN_GW dev eth4 metric 1
127.0.0.0/8 dev lo scope link
172.16.72.0/24 dev br0 proto kernel scope link src 172.16.72.1
192.168.50.0/24 dev wgs1 scope link
192.168.101.0/24 dev br1 proto kernel scope link src 192.168.101.1
seems that
Code:
default via router1_ISP1_WAN_GW dev eth4
...
ISP1_mail_addr via router1_ISP1_WAN_GW dev eth4 metric 1
ISP1_WAN_pool/23 dev eth4 proto kernel scope link src router1_ISP1_public_IP
router1_ISP1_WAN_GW dev eth4 proto kernel scope link
ISP1_some_addr via router1_ISP1_WAN_GW dev eth4 metric 1
127.0.0.0/8 dev lo scope link
172.16.72.0/24 dev br0 proto kernel scope link src 172.16.72.1
is just copied from table main to table wgc1 and that's an answer for question what for they happen in wgc1 - "just because"
meditation on that give me an idea
probably that's the trouble - Peer Allowed IP not allowed 0.0.0.0 so no packets to internet IP's may be passed via this link
But! I don't want to pass all the traffic though router1->router2->ISP2, just for dedicated IP's
Expirement: add to Server1 Peer Allowed IP everybody -> 192.168.50.1/24,10.7.0.0/16,0.0.0.0/0
- connection to router2 still working
- connections to anything else broken, not reached and so on
may be it's somehow limited on server side (router2 WGS setup)?
here is my traditional stuck
- Server Allowed IP's - it's the list of targets allowed to client to interact? Seems no, elsewise how connection from router1 clients to 192.168.50.1 was established? If so - Client Allowed IP's is the list where Clients allowed to send packets = 0.0.0.0/0 - more that enough to open something like whereismyip.com. (Probably here I'm wrong)
After that I've found on router2 in VPN Director rule to use WGC1 for all targets 172.16.72.0/24 and said "common, it's useless!", drop it... and lost connection to router2
That lead me to think that your guess mentioned by me in the beginning of that reply was partly true - request packets flow via router1_wgc1/router2_wgs1 BUT response packets flow via router2_wgc1/router1_wgs1 based on rule I've removed AND somehow on routers side everything quietly matches
Now I need some time to found a person to restore the rules on router2
Based on that story of studies

- may you give me some hint?