• A Tale Of Two Routers

    From Lawrence D?Oliveiro@3:633/10 to All on Tuesday, November 03, 2026 01:02:53
    Here?s a fun scenario to think about.

    I?m setting up a replacement home router for a client. The existing
    one is installed on their LAN, which I can get to remotely via
    OpenVPN; the new one is in my living-room, connected to my laptop via
    a dedicated Ethernet cable, on a different subnet from my house LAN
    (which the laptop remains connected to).

    From my main office machine, I can access either one via an SSH
    tunnel; one to a machine at the client?s place, the other to my
    laptop. So I point my browser at ?http://127.0.0.1:Žsuitable-port-nr¯?
    to login and access the admin functions.

    But when I try running tunnels to both at once (using different local
    ports, of course), a peculiar thing happens: the login sessions tend
    to expire within a few seconds, forcing me to keep logging in again
    all the time. I get the feeling each router is seeing some of the
    other?s traffic (automatically-generated session ticklers, perhaps?)
    and getting confused by it. Or maybe the ticklers aren?t getting
    through at all, because they are omitting the port number ...

    So I tried another approach, involving setting up routing entries to
    get to the respective local subnets, with a little help from socat to
    get across the last hop to the client?s installed router. This way,
    each router sees itself being accessed via a different address.

    Now a different problem emerges: the router refuses connections,
    instead showing an error page indicating it has detected a ?DNS
    rebinding attack?. I suspect this is because I am using one private
    address range to access it, while it is configured to work in a
    different private address range; if it saw itself accessed via a
    public address, it probably wouldn?t worry.

    Oh well. I think there one or two more combinations I can try ...

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)
  • From Lawrence D?Oliveiro@3:633/10 to All on Tuesday, November 03, 2026 02:36:18
    On Tue, 3 Nov 2026 01:02:53 -0000 (UTC), I wrote:

    But when I try running tunnels to both at once (using different
    local ports, of course), a peculiar thing happens: the login
    sessions tend to expire within a few seconds, forcing me to keep
    logging in again all the time.

    ...

    So I tried another approach, involving setting up routing entries to
    get to the respective local subnets, with a little help from socat
    to get across the last hop to the client?s installed router.

    ...

    Now a different problem emerges: the router refuses connections,
    instead showing an error page indicating it has detected a ?DNS
    rebinding attack?.

    I found a combination which works: SSH tunnelling to the existing
    router, combined with appropriate temporary routing-table entries to
    allow access to the new one directly via its configured IP address.
    No need for socat at any point.

    The result was, I was able to have both admin pages open
    simultaneously in separate browser tabs, with no premature session
    timeouts going on.

    --- PyGate Linux v1.5.19
    * Origin: Dragon's Lair, PyGate NNTP<>Fido Gate (3:633/10)