Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Dec 2007 13:47:51 +0800
From:      "sham khalil" <ksham.fmc@gmail.com>
To:        freebsd@celestial.com, freebsd-questions@freebsd.org
Subject:   Re: SSH through port forwarding
Message-ID:  <f5ccf92b0712172147n5f97e8e0qf2c871753f0298bc@mail.gmail.com>
In-Reply-To: <20071218040802.GB6678@ayn.mi.celestial.com>
References:  <340a29540712171957l7b3e426fh9f35051a7bc6d48e@mail.gmail.com> <20071218040802.GB6678@ayn.mi.celestial.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 18, 2007 12:08 PM, Bill Campbell <freebsd@celestial.com> wrote:

> On Mon, Dec 17, 2007, Andrew Falanga wrote:
> >Hi,
> >
> >I'm having a difficult time working with my father to get the port
> >forwarding working on his Linksys router to forward SSH requests to his
> >FreeBSD machine at home.  As near as we can figure, it's setup correctly.
> >In case anyone here uses this router it is WRT54G and details (including
> a
> >users manual) can be found at,
> >
> http://www.linksys.com/servlet/Satellite?c=L_Product_C2&childpagename=US%2FLayout&pagename=Linksys%2FCommon%2FVisitorWrapper&cid=1149562300349
> .
> >
> >Now, I'm in Idaho and he's in NY (which does make things difficult).  Is
> >there any special tricks to setting up port forwarding for SSH?  Probably
> >should have checked this first, but I'm going to go look on the handbook
> >too, just to see.
>
> It should Just Work(tm).  I don't have one of those handy, but
> port forwarding is generally under the Advanced tab Linksys
> routers.  It may be called Games or something like that.  Forward
> port 22, ssh, to the internal IP and save the settings.
>
> Generally one should have a fixed internal IP for forwarding as
> DHCP assigned IP addresses may change.
>

once you open port 22 to public ip, you'll get people try to bruteforce your
machine.
if you don't want that set sshd to listen to a higher number like 5522
then forward port 5522 from the router to the internal machines.

unfortunately for wrt54g, you can't forward port 5522 to 22 for internal
machine.

sham khalil



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f5ccf92b0712172147n5f97e8e0qf2c871753f0298bc>