Linux - NetworkingThis 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.
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.
I need to manage a remote server that I'm setting up.
It's based on Ubuntu Server 12.04 (from the minimal edition) and I need to access it over SSH, Webmin (and some server monitor/hardware failure alerting system).
Issue here is, it's going to be placed on a local LAN and obviously have an IP like 192.168.x.xxx and will be behind a hardware firewall (pretty simple - just something like a Dlink router).
I am not on the same LAN and am in a totally different location, so would obviously be accessing it over the internet.
Accessing the servers local IP number from my location will obviously not get me into it. How else can I have access to manage it?
When you're referring to "border device", would it be the 1st device that is connecting the whole network to the internet or (maybe) the router that the server (I wish to access) is connected to?
I've attached a diagram and what I wish to access is the EMR Server.
Knowing how ISP's in our area are, they usually configure their router with the public IP address, so all that users know is 192.168.x.xxx and they give no access to their routers.
Thanks for this.
I am still a bit confused - I've setup port forwarding and opened port 22 for 192.160.0.107 (which is the ubuntu server), but how would I, from over the internet connect into this?
ssh to the public IP. The router will see you coming in on port 22, it will check its port forwarding rules, and will forward the connection to whatever local IP you told it to send port 22 to.
AAHHH! I see.
However, there's still a hindrance here - the ISP provides one public IP and there's hundreds of their (different) customers connected to that. Also, the public IP keeps changing.
I tried logging in from cygwin with
Code:
ssh user@publicip
and I get
Code:
ssh: connect to host publicip port 22: Connection timed out
I go the "current" publicip from whatismyip.com
Over the local LAN I can ssh into the server with cygwin
I mean, you sound like you're not actually configuring this ISP device, that that's their device, not yours. If you can't access the internet connected device (or find someone who can) then you can't allow traffic inbound through it to a specific internal node. The other option is a solution that reaches out from the server via a broker service. If you have a third server that both machines can ssh to then you can have a reverse tunnel going back to the 1st server to get in that way.
I mean, you sound like you're not actually configuring this ISP device, that that's their device, not yours.
this is true.
Quote:
Originally Posted by acid_kewpie
If you can't access the internet connected device (or find someone who can) then you can't allow traffic inbound through it to a specific internal node.
This is what I feared.
Quote:
Originally Posted by acid_kewpie
The other option is a solution that reaches out from the server via a broker service. If you have a third server that both machines can ssh to then you can have a reverse tunnel going back to the 1st server to get in that way.
Would really appreciate if you could highlight on this pls.
But in the meantime I'm removing the port forwarding I setup earlier.
This is describing an intermediary sytem, but note that this could potentially be your own home system, collapsing the roles of the "middle" and "outside" pcs. And here you may need to port forward into YOUR internal system, or rather the address your laptop usually has as and when it is connected to your home wifi etc.
Knowing how ISP's in our area are, they usually configure their router with the public IP address, so all that users know is 192.168.x.xxx and they give no access to their routers.
This would be a problem...but it all depends on how they set things up. I have experience with several ISPs, and they usually fall into one of two categories:
1) ISP provides a dumb modem which simply translates the incoming connection to an ethernet connection. It provides no routing whatsoever, doesn't even have its own IP. The public IP is given to the device attached to the modem, usually your own router.
2) ISP provides a modem/router combination device, which steals the external IP and only provides LAN IPs to the connected devices, but they give you the login information for the modem/router allowing you to set up things like NAT, port forwarding, firewall rules, subnet, DHCP range, etc.
I prefer #1, but in either case you can do what you're asking, the difference is going to be which device you log into to make the port forwarding rule. From the sound of it, your ISP has given you the device in #2 (modem/router hybrid), but no login information for it. This would be unacceptable to me, and I would be calling to complain immediately. No customizable subnet, or DHCP range...inexcusable in my opinion. Depending on the type of connection, you may be able to purchase your own dumb modem, give them the MAC address, and set that up in place of the modem/router hybrid they provide (pushing you into category #1 above). Either way, first thing I would do is get on the phone with the ISP.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.