[geeks] setting up modem/router for sshd

Tim H. lists at pellucidar.net
Mon May 13 19:13:35 CDT 2002


for what it's worth (no knowledge of the hardware, good basic knowledge of IP routing)

The problem that springs to mind is that the eth0 (which I assume is "your side" of the modem) is in non-routable IP space.  You can't get to a 10.x.x.x number over the internet.  This means that there is no way to reach your computer directly from the outside.  I don't know what the cip0 interface is, but that is another non-routable subnet. Not having seen/used one og these gadgets, the first hope would be some type of port forwarding mechanism.  Aside from that, the only option I see is to buy another static IP address for your machine so the internal machine can have a public IP address, but wait, this is a router, so you will need two more, one for the eth0 interface on the router and one for your internal machine.  Then you route for eth0 would look like x.y.z.a netmask 255.255.255.254 and the computer would be x.y.z.a-1 or a+1 depending on which way you did it. The cost/hassle/possibility of that is determined by your ISP.  There are also some redundant routes in that!
 table, and I have absolutely no idea of what the default route definition means "10.0.0.15/0" in my book is a really clumsy way of saying "any".  

Tim

On Mon, 13 May 2002 19:41:47 +0200
"William S." <wstan at xs4all.nl> wrote:

> I am currently connected to the internet via an
> ISDN/ADSL Alcatel modem. It is currently acting as
> a router (gateway '10.0.0.138') for my single pc
> (10.0.0.150). I also have a static ip address
> which is (213.84.66.123).
> 
> I would like to set up sshd on my pc so that I can
> log into it from the outside. The only problem I seem
> to have is that any attempts to log into 213.84.66.123
> with ssh goes to my router/modem, not the pc with sshd
> running. I kinda verified this using telnet 213... :
> was directed to the modem/router.
> 
> I guess what I need to do is make the proper entry(s)
> in my ip address/route table so that packets sent to
> 213.84.66.123 port 22 go to my pc, not the modem.
> 
> Below is a copy of my tables that are programmed into the
> modem. I can change the entries via a web interface.
> Can anyone tell me what I need to change to make it
> work?
> 
> ---IP address table---
> 
> Intf  Address       Netmask        Type  Transl
>   
> MXS   213.84.66.123 255.255.255.0  Auto  pat 
> eth0  10.0.0.138    255.0.0.0      Extra none 
> cip0  172.16.1.1    255.255.255.0  CIP   none 
> loop  127.0.0.1     255.0.0.0      Auto  none 
> 
> ---IP route table---
> 
> Destination        Source       Gateway       Intf  
> 
> 10.0.0.0/8         10.0.0.0/8   10.0.0.138    eth0 
> 213.84.66.123/32   any          213.84.66.123 MXS 
> 255.255.255.255/32 any          10.0.0.138    eth0 
> 10.0.0.138/32      any          10.0.0.138    eth0 
> 172.16.1.1/32      any          172.16.1.1    cip0 
> 127.0.0.1/32       any          127.0.0.1     loop 
> 172.16.1.0/24      any          172.16.1.1    cip0 
> 10.0.0.0/8         any          10.0.0.138    eth0 
> default            10.0.0.150/0 213.84.66.123 MXS 
> 
> -- 
> Bill
> Amsterdam, NL
> _______________________________________________
> GEEKS:  http://www.sunhelp.org/mailman/listinfo/geeks



More information about the geeks mailing list