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 ...
A Tale Of Two Routers
- From
- Lawrence D’Oliveiro <l…@nz.invalid>
- Organization
- A noiseless patient Spider
- Message-ID
- <11cb…@dont-email.me>
- Date
- Newsgroups
- comp.misc