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-05-2003, 08:44 AM
|
#1
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Rep:
|
How to connect to a server with a subnet address?
What I'm trying to do is connect to a server which is on the router.
I have set up an account at http://www.noip.com and the way that we connect to the router is with this address :
http://halcp.no-ip.org
I know that it's working because we can connect to the router's admin like this :
http://halcp.no-ip.org:8080
It prompts us for our password and we can get in from remote locations.
Now, our server's subnet address is 192.168.0.108 .
It will be the web server (running apache) and the ftp server (running pure-ftp).
Everything is running smoothly. When we enter http://192.168.0.108 in a browser on our LAN we get the Apache congrat's page.
The ftp daemon is working as well. While in the LAN, we can ftp to 192.168.0.108 on port 31. All is well.
What we wish to do is (obviously) connect to the server (http and ftp) from remote locations.
My question is - how do I accomplish this ?
If I were using a web browser, how would I phrase this in the url box ?
If I were using my ftp client, what address would I type in to get to this subnet server ?
JC
|
|
|
07-05-2003, 08:55 AM
|
#2
|
Member
Registered: Nov 2002
Location: Dallas
Distribution: RedHat 8
Posts: 270
Rep:
|
First of all addresses like 192.168.0.108 are called IP adresses- the Subnets are generally in 4 classes.
A= 255.0.0.0
B= 255.255.0.0
C=255.255.255.0
D=255.255.255.255
As for being able to remote in- now in Windows it is done generally with a 3rd party application such PC ANywhere or Watchgaurd has there own custom software- and there are other that are stickly web based and usually have a fee attached to them.
Now you might be able to Telnet to your boxes and I am unsure as to how to help you here.
I am having a bad time getting W2K box to authinicate with a Linux Server- Oh they see one another fine but as Windows to join a Linux Domain I am g begging to believe it is down right impossible...
You might serch the web for more information on 3rd party apps that allow you remote in behind a router/firewall I am they are avaliable.
Good Luck,
ikw38
|
|
|
07-05-2003, 09:09 AM
|
#3
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
Quote:
First of all addresses like 192.168.0.108 are called IP adresses- the Subnets are generally in 4 classes.
A= 255.0.0.0
B= 255.255.0.0
C=255.255.255.0
D=255.255.255.255
|
I may not have phrased everything 100% correctly, but hopefully I got my point accross, and my question is understood. The relevant ifo here is the IP address :
http://halcp.no-ip.org
(the dynamic IP address at the moment = 24.73.135.25)
The gateway is :
24.73.135.1
The subnet mask :
255.255.255.128
And the LAN address :
192.168.0.108
Hope that clears it up.
JC
|
|
|
07-05-2003, 11:19 AM
|
#4
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
btw : i have set the router to redirect to the lan address (halcp.no-ip.org ------>192.168.0.108) .
Maybe I'm failing because I'm inside the lan. I'm trying to test it. I guess I'll have to wait until I go home to try it.
Does anyone know how to test it like this from inside the LAN ?
In other words, I'm trying to go outside the lan with http://halcp.no-ip.org then come back inside the lan and open the apache test page.
As i stated earlier, apache works fine. If I'm inside the lan I can type :
http://192.168.0.108
or
http://hal.home.org
and get the apache test page.
JC
|
|
|
07-05-2003, 11:41 AM
|
#5
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Rep:
|
you have to forward requests for port 80 to the LAN machine. If the router is
a store bought DSL router there should be section in the config to FORWARD
ports to certain IP addresses on the LAN side. you dont have to buy any
3rd party software like ikw said to accomplish this.
for example:
http://www.gigahurts.net that is my domain name, my server, down the
hall from me right now, but its acutal IP address is 192.168.1.201 and not
the one you get form doing an ns lookup on the name.
it's called Destination Nating or Port Forwarding... you need to port forward.
|
|
|
07-05-2003, 12:38 PM
|
#6
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
Thanks Robert0380, I follow ya.
But I think that I've already set things up that way.
I've got the D-Link DI-604, and they call it "Virtual Server".
Here's my config :
FTP Server 192.168.0.108 TCP 31/31 always
HTTP Server 192.168.0.108 TCP 80/80 always
SSH Server 192.168.0.108 TCP 22/22 always
As you can see, the http server is set for port 80.
The odd thing is that I can SSH into the box just fine from a remote location. But when I try http, I don't get the apache test page. I can only get the test page when I'm inside the LAN.
FTP works as well.
Do me a favor if you would. Type this into your browser and see if you get the apache test page :
http://halcp.no-ip.org:80
if that doesn't work, try this :
24.73.135.25:80
It should either show you the page, or prompt for a password.
Thanks
JC
|
|
|
07-05-2003, 12:51 PM
|
#7
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Rep:
|
no it didnt work, check with you ISP and make sure they dont block port 80.
That seems to be a common issue.
|
|
|
07-05-2003, 12:53 PM
|
#8
|
LQ Guru
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280
Rep:
|
ssh did work. i was able to get a login prompt when i tried to ssh in
(i'm not trying to hack your box by the way, just seeing if ssh worked).
so yea, it seems like something strange with port 80. time to call you ISP.
|
|
|
07-05-2003, 12:58 PM
|
#9
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
Thanks man. Yeah, they probably do block port 80. That's the only thing that makes any sense because ssh and ftp work.
Maybe I can just use a different port.
I appreciate it.
JC
|
|
|
07-05-2003, 01:32 PM
|
#10
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
I changed to port 90, but that didn't make any difference.
JC
|
|
|
07-05-2003, 03:29 PM
|
#11
|
Member
Registered: Mar 2003
Location: Florida
Distribution: Slackware 9.1,10.1
Posts: 268
Original Poster
Rep:
|
Actually it did work. My partner hit this link and it shows the apache test page :
http://halcp.no-ip.org:90
So it appears that my IP is indeed blocking port 80.
Thanks for the help Robert0380.
JC
|
|
|
All times are GMT -5. The time now is 01:52 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
|
|