LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 01-26-2010, 12:29 AM   #1
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
Linux server remote access?


Dear All
My Linux server is at @172.16.17.100 and my remote equipment is at @172.16.17.110 located at far site . Both of my server and network equipment can have Internet access and I need to virtually put that network element on my Linux server LAN so I can touch it as I touch the other near side network elements . In my application I cannot change my server & remote network element ip addresses and as you see they are invalid ones . Can you please let me know which solutions are suitable for this purpose ?
Thank you in advance
 
Old 01-26-2010, 12:37 AM   #2
Elemecca
Member
 
Registered: Nov 2008
Location: San Francisco, CA
Distribution: Gentoo, CentOS
Posts: 71

Rep: Reputation: 22
The IP addresses aren't invalid, they're in one of the subnets reserved for LANs. Since they have private IPs and Internet access I assume that they're behind some sort of NAT gateway (in the SOHO market often called a router). Most gateways support port forwarding, a method by which they forward traffic arriving at a port on their public IP to a host on the LAN they serve. If you want specific help setting this up, we'll need your gateway's model number.
 
Old 01-26-2010, 03:24 AM   #3
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Elemecca View Post
The IP addresses aren't invalid, they're in one of the subnets reserved for LANs. Since they have private IPs and Internet access I assume that they're behind some sort of NAT gateway (in the SOHO market often called a router). Most gateways support port forwarding, a method by which they forward traffic arriving at a port on their public IP to a host on the LAN they serve. If you want specific help setting this up, we'll need your gateway's model number.

Thank you very much for your reply . I am not sure about my Gateway model number and need to check it . According to you , it seems that there is no settings on my Linux server that can directly accomplish this . Am I right ? Please confirm.
Thank you
 
Old 01-27-2010, 12:11 AM   #4
Elemecca
Member
 
Registered: Nov 2008
Location: San Francisco, CA
Distribution: Gentoo, CentOS
Posts: 71

Rep: Reputation: 22
Not as such, no. Your server can (and probably does) run the OpenSSH daemon, which will listen on TCP port 22 for incoming connections. If the server is on a LAN, only hosts on that LAN can send packets to its IP. Therefore, only hosts on its LAN can initiate communicate with it.

TCP has two kinds of sockets: listeners an initiators. A listening socket sits around and waits for someone to send it a packet. An initiator opens a connection by sending a SYN packet to a listening socket. In SSH, the server is a listener and the client is an initiator. If the initiator can't get a packet to the listener, it can't open a connection. Thus you need to forward a port on the gateway (which the client can talk to) to the server (which the client otherwise can't see).
 
  


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
How To setup remote access server on Red Hat Enterprise Linux Server release 5.1 bagra Linux - Newbie 5 10-19-2011 07:04 PM
Remote Access connection to Linux IMAP Server lewis101 Linux - Newbie 9 02-02-2010 04:54 AM
Remote Access to a Red Hat 9 Linux Server Lordlava Linux - Newbie 5 03-20-2009 08:14 AM
Access remote ftp server through Linux Firewall sanjee Linux - Networking 3 07-14-2008 12:04 AM
Remote access to a Linux server? geoff27 Linux - General 2 09-02-2005 04:23 PM


All times are GMT -5. The time now is 06:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration