PC running on 192.168.1.92 is attempting to login to SSH running on 192.168.20.90.
Cause of issue:
Windows Firewall is stateful, meaning it keeps track of routes.
So to reach 192.168.20.90, 192.168.1.91 first goes to the router on 192.168.1.254.
Finds the 192.168.20.0 network is reached via 192.168.1.90.
Goes to router 192.168.1.90 then on to 192.168.20.90 via interface 192.168.20.254.
Coming back from 192.168.20.90, first lands on router 192.168.1.90/192.168.20.254 and gets sent straight back to 192.168.1.91 via 192.168.1.90.
Windows firewall does not like this as it is returning via a different route, not via 192.168.1.254 and drops the packet (Could be a malicious form of redirect).
Solution:
Added the below PF rules to 192.168.1.90/192.168.20.254 router to force all packets arriving via 192.168.1.254 so be routed back through 192.168.1.254 to maintain "state".
Now getting SSH login prompt OK.
vi /etc/pf.conf
ext_if = "igc0"
bt_gw = "192.168.1.254"
1. Force return traffic from 192.168.20.0/24 back through the BT Smart Hub¶
pass in quick on $ext_if reply-to ($ext_if $bt_gw) from 192.168.1.0/24 to 192.168.20.0/24 keep state
2. Force new outbound traffic to 192.168.1.0/24 through the BT Smart Hub¶
pass out quick on $ext_if route-to ($ext_if $bt_gw) from 192.168.20.0/24 to 192.168.1.0/24 keep state
3. Allow everything else¶
pass all
~