Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-03-2014, 03:17 AM
|
#1
|
Member
Registered: Sep 2009
Posts: 89
Rep:
|
Can't ping to our server from another department
We are small group in a university. We have our own router (using Linksys E42000) to prevent unwanted external access to our servers. But we can connect to internet.
By the way we have three linux servers in our group which need to be accessed from outside our group, mainly using ssh.
Question:
Do I need to give permission to my router so that I ca connect to our linux server in our group from outside?
If yes, what is the procedure to do so?
We use internal static IPs to our linux servers.
|
|
|
07-03-2014, 09:55 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,238
|
Quote:
Originally Posted by vjramana
We are small group in a university. We have our own router (using Linksys E42000) to prevent unwanted external access to our servers. But we can connect to internet. By the way we have three linux servers in our group which need to be accessed from outside our group, mainly using ssh.
|
Very similar to a question you asked two years ago:
http://www.linuxquestions.org/questi...tu-4175419881/
Unless you have a route between the two different networks, you won't be able to get access. If you can't ping them, that MAY (or may NOT) be a problem, since your router/firewall may be blocking ICMP packets. You don't say anything about the network(s) in question, so there's not much we can say.
Quote:
Question:
Do I need to give permission to my router so that I ca connect to our linux server in our group from outside? If yes, what is the procedure to do so? We use internal static IPs to our linux servers.
|
The procedure would be for you to read the manual that came with your router, to determine how to allow traffic on the port(s) in question. Since you can run SSH on pretty much any port, and you don't say what port it IS running on, we can't tell you.
|
|
|
07-03-2014, 10:10 AM
|
#3
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
It sounds like a typical port forwarding issue. Your servers are not on the same network as the rest of the University, they're on their own subnet controlled by your router. When you type in your server's IP on a machine outside of your little local subnet, it has no idea how to access that IP, so it asks its DNS server, which doesn't know either, and you get a failed connection. You need to connect to your ROUTER's IP from any external machine, and then tell your router what to do with those incoming packets. If you want to ssh in to the three machines, then you'll need to set up three unique ports and then set up port forwarding in the router to push each port to its machine.
For example, if your three servers are:
192.168.1.2
192.168.1.3
192.168.1.4
And your university is on the 10.1.10.* subnet
And your router's public IP is 10.1.10.234
You could set your router to forward incoming packets on:
port 10002 to 192.168.1.2:22
port 10003 to 192.168.1.3:22
port 10004 to 192.168.1.4:22
Then from any other machine on the University network, you would ssh to 10.1.10.234 on either port 10001, 10002, or 10003 to access your three machines.
Of course replacing these port numbers with anything you feel like between 1025 and 65535, and replacing the IPs with their actual values.
Last edited by suicidaleggroll; 07-03-2014 at 10:11 AM.
|
|
|
All times are GMT -5. The time now is 11:25 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|