LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-10-2004, 11:38 AM   #1
SatinKnight
LQ Newbie
 
Registered: Feb 2004
Location: Seattle
Posts: 9

Rep: Reputation: 0
Remote access to my computer?


I have newbie question on how to remotely access one of my computers. I'm running several boxes off my DSL and would like to access my Linux system remotely (Fedora Core 1, Apache 2.0, MySQL 4.0 and PHP 4.3). I do not have a static ISP address, but it hasn't changed in the last month either. My home architecture currently is something like:


 ISP       Router     Switch & nbsp; Computers
                &nbs p;              +-- WinXP 1
Qwest ---- Cisco ---- NetGear -+-- WinXP 2
 DSL        678      &nbs p; GS108   +-- WinXP 3
                &nbs p;              +-- Intel Wireless Gateway
                &nbs p;              +-- LAMP Box


Internally the routter is dynamically assigning Class A addresses, e.g. 10.0.0.x to the various boxes. So how do I direct http (or ftp etc.) requests to the correct computer?


I read the Remote login thread (threadid=6885) but it was a bit over my head and I couldn't even tell if it was answering my question <sigh>.

TAI
 
Old 02-10-2004, 11:48 AM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Quote:
Internally the routter is dynamically assigning Class A addresses, e.g. 10.0.0.x to the various boxes. So how do I direct http (or ftp etc.) requests to the correct computer?
With this setup, AFAIK, you can't.
A box that you're going to connect to externally needs a static IP on the local network, and the router needs to be configured to forward a given port (22 for SSH) to that machine.

So:
Configure the box in question to have a static IP
Make the router forward port 22 to the box's IP (see docs on your router for specifically how - most have an HTML interface that will let you set prefs)
connect to your router's IP remotely on port 22 and witness the magic.

--Rounan

EDIT: I'm not familiar with SQL requests, but if you also want webservice, forward port 80 to the box. SQL will use a port. don't know which. Same principle applies.

Last edited by Rounan; 02-10-2004 at 11:50 AM.
 
Old 02-10-2004, 11:55 AM   #3
fataldata
Member
 
Registered: Jun 2002
Location: Breckenridge, Colorado
Distribution: Ubuntu Hardy 8.04
Posts: 101

Rep: Reputation: 15
Configure your router to forward port 80 traffic to the ip address of your Linux box then make sure you are running a web server on the linux pc. You will probably want to statically assign an address to the Linux box as well.
Some ISP's block incoming Port 80 traffic, to prevent you from running a web server so if this doesn't work you may change the port that the webserver is running on to work around this. SSH = port 22 and FTP = port 21
 
Old 02-12-2004, 08:22 AM   #4
bmcneil2k
LQ Newbie
 
Registered: Feb 2004
Posts: 16

Rep: Reputation: 0
Hey
You could be a little more secure about this ( if you care to )
Configure a machine to work through , on your internal lan.. for PCANYWHERE or
TimbuckTu, if you have a server all the more, use terminal server services to access it .
1. Configure a remote client PC could be a server ( use terminal server ) , with the password encription feature this will be the added security,
2. Set up Port mapping with your router , use the ports for what ever service you choose, if it terminal services 5631, 5632 you can serch for them on www.microsoft.com, Winxp has built in terminal server
3. use TimbuckTu ports 407 UDP, 1417-1420 for services
4. set this up on your router Nat features, to point to the internal workst or server IP
5. Use the connection to this terminal server to telnet to the local Linux box and perform anything on a more secure path.
 
Old 02-12-2004, 08:38 AM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
Windows XP terminal server is not going to run well on linux.
and do you realy trust microsoft with your security !!!!!

set all the pc's on your lan's IP address statically, (not via dhcp)
and set your router o forward all ssh traffic to the ip on the linux machine.
now use the serives tool from fidora core 1's menu and make sure sshd is set to run on bootup.

now, from any machine with internet access you can login to your home linux machine with ssh.

read
man ssh

also, you may want to have an ftp server running for file transfere.
use the services tool again, the ftp daemon is called vsftpd (very secure ftp daemon)
 
Old 02-12-2004, 08:56 AM   #6
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
you guys are crazy... you dont have to have a static IP (on your internal machines), just set the DHCP lease on your router to unlimited.

Why not just foward port 22 to one machine, that will give you SSH access to all linux machines.
_____________________

On the web server, I don know what you are doing, but you only have to foward to port 80 on one of the machines, and install SQL on another, it will make the sql connection from behind your router and never need to go outside port 80 (that is if you even plan to have a sql backend).

Last edited by trey85stang; 02-12-2004 at 08:58 AM.
 
Old 02-12-2004, 09:27 AM   #7
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Trey, that'll work great - until you power off two computers and then power them back on in reverse order. oops, their IPs are reversed.
Static IP is a much better solution.

And yeah, once you're on the internal network, you can use the machine you've connected to to ssh to any other.

--Rounan
 
Old 02-12-2004, 11:16 AM   #8
trey85stang
Senior Member
 
Registered: Sep 2003
Posts: 1,091

Rep: Reputation: 41
Quote:
Originally posted by Rounan
Trey, that'll work great - until you power off two computers and then power them back on in reverse order. oops, their IPs are reversed.
Static IP is a much better solution.

And yeah, once you're on the internal network, you can use the machine you've connected to to ssh to any other.

--Rounan
most routers IP address are given via mac address... I have run a dynamic setup with 4 machines for over a year now.. and they all have had the same ip (even reinstalling on a few they still get the same ip)
 
Old 02-12-2004, 11:50 AM   #9
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Huh... nifty.
I've observed the opposite behaviour with my Linksys routers.

Dah well, all hardware is not created equal.

Cheers,
--Rounan
 
Old 02-12-2004, 03:11 PM   #10
SatinKnight
LQ Newbie
 
Registered: Feb 2004
Location: Seattle
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by bmcneil2k
Hey
You could be a little more secure about this ( if you care to )
Configure a machine to work through , on your internal lan.. for PCANYWHERE or
TimbuckTu, if you have a server all the more, use terminal server services to access it .

<snip>
A question about bandwidth here. The network has 6 systems on it, 3 of them 10/100, a WiFi and two 10/100/1000 NICs. If I were to route everthing from the router through another machine as a firewall, would I have to get two 10/100/1000 cards? My U2 Server only has one slot left and I'm currently using the onboard 10/100 port.
 
Old 02-12-2004, 04:15 PM   #11
linuxnut2003
Member
 
Registered: Nov 2003
Location: Oklahoma, USA
Distribution: gentoo
Posts: 73

Rep: Reputation: 15
no i dont think so ... but I could be wrong
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote access a Linux computer using another Linux computer sceadu Linux - General 10 05-19-2006 10:32 PM
Remote access to my home computer Pedroski Linux - Networking 5 02-17-2005 08:34 AM
Sound on remote computer. grayswander Linux - General 1 04-01-2004 06:12 PM
Displaying to a remote computer rech Slackware 2 01-06-2004 02:23 PM
Samba - The remote computer is not available matthijs_klomp Solaris / OpenSolaris 2 11-07-2003 01:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration