LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Linux server remote access? (https://www.linuxquestions.org/questions/linux-newbie-8/linux-server-remote-access-784766/)

hadimotamedi 01-26-2010 12:29 AM

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

Elemecca 01-26-2010 12:37 AM

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.

hadimotamedi 01-26-2010 03:24 AM

Quote:

Originally Posted by Elemecca (Post 3840600)
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

Elemecca 01-27-2010 12:11 AM

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).


All times are GMT -5. The time now is 07:17 PM.