[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Remote Access



Hi Darrell

I refer you to my first post on this.

<><><><><>
I have port 22 forwarded to an internal machine which I can then use to
ssh locally to any machine on my LAN.  Is this a possibility for you? 
Else you'll have to do something more sophisticated passively I guess.
<><><><><>

So, what you need to do is 'port-forward' the port you want to use to
your local machine.

If your Blueyonder IP is 22.33.44.55 and the machine you run ssh on (for
eg) is on 192.168.1.8 (as is my server - ooo security leak!!! :D) then
you will have to port forward 22.33.44.55:22 > 192.168.1.8:22 

You can in fact map ports onto a different port for added security.  But
anyhoo, I used to use a linux box as my gateway/router and configured IP
tables to do this for me.  Here is a handy snippet.

iptables -t nat -A PREROUTING -i ppp0 -p -tcp --dport xx -j DNAT --to
aa.bb.cc.dd:xx

Where xx is the port your mapping and aa.bb.cc.dd:xx is the local
(internal) IP + port you're mapping to.

Now, I've gone down the James Mears' route (ahem) and I use the SMC
Barricade hardware modem/router/teasmade and there I configure it to do
something similar although it calls it virtual servers or something.

Anyhoo, without anymore detailed info I'm afraid I can't help
anymore.... and perhaps I couldn't anyways :)

HTH

Neil

On Mon, 2002-10-28 at 16:01, Darrell Blake wrote:
> I think everyone has the wrong idea about what I'm wanting to do. The 
> router is mine. I got a cable internet connection with blueyonder and 
> because I wanted to share the connection over multiple machines I bought 
> a router. Before, because I had my ftp daemon running, all I had to do 
> was type in my IP address in an ftp client (duh) to access my machine 
> whereas now the only machine connected to the internet is the router and 
> the other machines use the router as a gateway. I'm wanting to know how 
> to access this machine even though it isn't directly connected to the 
> internet.
> 
> Cheers,
> 
> Darrell
> 
> 
> ___________________________________________________________________
> 
> Sheffield Linux User's Group -
> http://www.sheflug.co.uk/mailfaq.html
> 
>   GNU the choice of a complete generation.


___________________________________________________________________

Sheffield Linux User's Group -
http://www.sheflug.co.uk/mailfaq.html

  GNU the choice of a complete generation.