Click to See Complete Forum and Search --> : Connecting to Linux from remote box


jerrylinux
03-25-2002, 02:59 PM
I am currently running Redhat Linux 7.2 on one of two machines that I have installed behind a Linksys router. I have had no problems (ok I lied...very few problems) setting up the Linux box and the windoze box to connect through the gateway on my router and browse the internet. I have also been able to turn port-forwarding on the router so that I can successfully access the Apache test page and VNC sessions running on Linux from my windoze box (always on the same network). So far so good.

What I can't do is access any service on my Linux box from a machine that is outside of my little network. I can access the windoze box from remote machines but I always get a refused connection when trying to see my Linux box. The two services that I am most interested in are VNC and HTTP.

I have tried to disable the firewall but I am not even sure if the firewall is what is blocking me.

Any help would be much appreciated.

SuperHornet
03-25-2002, 10:06 PM
Ok what I "Think" you are trying to do is use ssh or telnet (Most people like my self recommend SSH)

You must get sshd running and be able to login via the LAN first. Then forward port 22 (ssh port) to the correct machine.

jerrylinux
03-25-2002, 11:02 PM
Thanks for the feedback but that doesn't really help me. I can use telnet and ssh from another machine on my LAN to get to my linux box. I can also ftp and access the default Apache test page. These services are all running fine. What I can't do is access any of these services on my linux box from a remote machine outside of my own network. :confused:

SuperHornet
03-26-2002, 09:25 PM
I dont know how the linksys handels port forwarding but you basicly want to forward any traffic looking for port 22 on the internet side to the LAN
On a quick google search I found this page that is headed in the right direction for you.

web page (http://www.polycom.com/products/video/viavideo/NetConnect/Linksys/LinksysHelp2.html)

mychl
03-27-2002, 10:09 AM
So lets say your server is at 192.168.1.5

You need to configure your router so that any requests coming in on a given port, get forwarded to 192.168.1.5.

Running a web server, forward all requests on port 80 to 192.168.1.5.

If you want to login via SSH from work, forward all requests on port 22 to 192.168.1.5.

You have a mail server running on machine 192.168.1.11, then tell your router to forward port 110 to 192.168.1.11.

You can probably log into your router's settings by going you your external ip in a browser from behind the router.

That will give you a web based configurator for your router, and you can then set up the forwarding, dhcp, etc...