I currently have a DSL modem at home that has a static IP (say 77.77.77.77
).
This modem is connected to a wireless router which has a few machines connected to it.
For sake of simplicity, from now on, I refer to the network behind 77.77.77.77
as home-net
My goal is to be able to ssh
into any machine behind home-net
without resorting to ugly port-forwarding
and port mappings.
Towards implementing this, My plan is:
- Add entry
77.77.77.77 home-net
tohosts
on any machine I want tossh
from - Set up
port-forwarding
onhome-net
router for DNS queries - A machine (on the same network) running
bind
receives these DNS queries and resolves them to LAN IPs
I don't fully understand how to implement it..I'm hoping that a DNS query would be sent to home-net
asking for the system in question (example pc1
) which would get forwarded to the machine running bind
that will resolve this to some LAN IP..I'm not sure whether this is sufficient to solve the problem though..
I haven't been able to implement or test this yet..Sadly, setting up a DNS server using bind
seems to be far more complicated than I estimated..
My questions are:
- Is it possible to use this single static IP to ssh into any machine in
home-net
withoutport-forwarding
?- Example
ssh [email protected]
andssh [email protected]
(both default port 22)?
- Example
- Would this setup even work?
- Is there an easier way to do this?