Project

General

Profile

Actions

Support #120

open

Not getting login prompt from server running on different subnet

Added by Sam Bracewell 1 day ago. Updated about 23 hours ago.

Status:
New
Priority:
Normal
Assignee:
-
Start date:
29/11/2026
Due date:
% Done:

0%

Estimated time:

Description

Setup as follows:

Laptop on 192.168.1.92 attempting to log into server on 192.168.20.90.

Can ping in each other from each direction / location.

Not getting SSH login prompt.


Files

Actions #1

Updated by Sam Bracewell about 23 hours ago

  • Subject changed from Not getting login prompt from server to Not getting login prompt from server running on different subnet
Actions #2

Updated by Sam Bracewell about 23 hours ago

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
~

Actions #3

Updated by Sam Bracewell about 23 hours ago

  • File Login to SSH from different subnet help.txt added
Actions #4

Updated by Sam Bracewell about 23 hours ago

  • File deleted (Login to SSH from different subnet help.txt)
Actions

Also available in: Atom PDF