You are not logged in.

#1 2008-03-21 03:30:34

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Giving an internal IP to the internet [Solved]

So I'm setting up a small torrentflux server and thinking about putting a small ftp part of it too if I can get this working. Right now I'm using http://www.no-ip.com/ to update the dynamic IP issues I'll have. Now that is all setup, I can access the server with ssh and through it's internal IP, but obviously nobody else can. Now here is where the problems start. Being cursed with a DSL connection that is up to a router, every computer connected is given the same IP. I forwarded port 80 for the server but that didn't help much. Still if I enter (<No-Ip-I-choose>/torrentflux) or (<direct-ip>/torrenflux) I get nothing. However, if I removed the torrentflux it takes me to the DSL gateway settings. What would I go about doing to set it up so that the server was accessible? Seeing

404 Not Found
The requested URL '/torrentflux' was not found on this server.

Just gets old.

Last edited by Reasons (2008-03-21 20:23:33)

Offline

#2 2008-03-21 04:46:28

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Giving an internal IP to the internet [Solved]

I'm not sure I understand what you are doing but let's try.
Your router has the public address (whatever that may be), correct?
So, anyone trying to access a service in your network will have to go through it. In the  router you ought to have a firewall (please, answer yes to that question? wink ) so ... what you have to do is set the rules in the firewall so that anyone connecting to port 22 (for example) in the router  will be redirected to connect to 142.214.0.6:22 (in other words: a machine in the local network that has the SSHD service running.

You may want to set your network so that the "external" services are in the dmz for added security to the local network.

Hope this helps.

R.

Offline

#3 2008-03-21 05:11:56

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Giving an internal IP to the internet [Solved]

Not even going to lie, most of that went over my head and I do well with pictures, so I grabbed a few and made this poor diagram. Both the gateway and router have port 80 forwarded for 192.168.1.5. However, lets say I enter the IP address I'm given from the gateway (or router), it takes me to the config screen instead of anything to do with the server.

                                      --------> Laptop (not relevant 192.168.1.2)
Qwest DSL gateway --> Netgear router |
                                      ---------> Server (192.168.1.5)

Picture order is:
ifconfig through ssh to the server
DSL gateway port forward
Router port forward

http://xs125.xs.to/xs125/08125/2008-03- … rot402.png
http://xs125.xs.to/xs125/08125/2008-03- … rot384.png
http://xs125.xs.to/xs125/08125/2008-03- … rot734.png

Offline

#4 2008-03-21 08:40:28

woz
Member
Registered: 2008-03-19
Posts: 2

Re: Giving an internal IP to the internet [Solved]

I have a feeling this could be that you are testing this from within your network.  If you are in your own network and you try to reach the external ip, the forwarding might not take effect.  If you are accessing it from an external ip it might act differently.  To test this out, try to access your external ip/no-ip domain from a proxy.  If that still doesn't work, then something else is wrong. 

Also, i'm assuming that if you try to go to http://192.168.1.5/torrentflux you get the results you are looking for.  If you go to that link from your laptop and it doesn't work, then your server isn't set up right.

Offline

#5 2008-03-21 09:00:58

mud
Member
From: Nothern Norway, now in Ireland
Registered: 2008-03-21
Posts: 4

Re: Giving an internal IP to the internet [Solved]

if you have forwarded correctly

go to -> http://whatismyip.com/ and do a http://ip-from-that-page/torrentflux

should work.

if im mistaken im sorry, haven sleept in two days now hmm


Archlinux user since March 19 2008

^mud^ on #archlinux big_smile

Offline

#6 2008-03-21 14:04:28

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Giving an internal IP to the internet [Solved]

mud wrote:

if you have forwarded correctly

go to -> http://whatismyip.com/ and do a http://ip-from-that-page/torrentflux

should work.

if im mistaken im sorry, haven sleept in two days now hmm

That doesn't work but the poster before that does, going to try the proxy now.
Update- Proxies did nothing. I'm really thinking the problem is both computers have the same IP, if that is even possible. That's what the site is telling me.

Last edited by Reasons (2008-03-21 14:11:43)

Offline

#7 2008-03-21 15:27:40

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Giving an internal IP to the internet [Solved]

New idea. Should I forward port 80 in the gateway to point to the router and then forward port 80 in the router (which is what the server is connected to) with the 192.168.1.5?

Offline

#8 2008-03-21 15:49:40

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Giving an internal IP to the internet [Solved]

Reasons wrote:

New idea. Should I forward port 80 in the gateway to point to the router and then forward port 80 in the router (which is what the server is connected to) with the 192.168.1.5?

That's what I was telling you to do in my original post smile )
You forward/route the packets from the entry point. I assumed the entry point for you is the router but if that is not the entry point from the outside world to your network, then froward from whatever the entry point may be.
This is the idea:
                                                           |--> (forword port 80)  ----------------------> 192.168.1.5
(Internet) ---->[your gateway] -->
                                                           |--> (forword port 21) ----------------------> 192.168.1.x

BTW never use FTP to the open world (is not secure), you are 'asking' to get cracked, use SFTP or SSH.

R.

Last edited by ralvez (2008-03-21 20:03:51)

Offline

#9 2008-03-21 19:53:26

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Giving an internal IP to the internet [Solved]

So to make sure I have this correct I should forward the gateway at 192.168.1.1 to port 80 and then forward, on the router, 192.168.1.5 to 80?

Yes I know nothing about networking.

Offline

#10 2008-03-21 19:59:25

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Giving an internal IP to the internet [Solved]

Nope, you do not need to forward a forwarded port. Just do it once, from whatever happens to be the Internet's entry point.

R.

edit: to access the machine from your local network it should suffice that you point to the correct address of the machine in your network. Say you named 192.168.1.5 "sunshine" then you just access the service by going to http://sunshine:80

edit 2: I've edited the illustration in my previous post to be more specific to your scenario.

Last edited by ralvez (2008-03-21 20:03:31)

Offline

#11 2008-03-21 20:06:57

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Giving an internal IP to the internet [Solved]

Almost there I think. Do I actually use 192.168.1.x or do I put in the 1 for X?

Offline

#12 2008-03-21 20:14:13

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Giving an internal IP to the internet [Solved]

Put the number I used 'x' because I did not remember the IPs you were using and was lazy to read back wink
Again ... do NOT use ftp use ssh. You can do the same things  but it is more secure.

R.

Offline

#13 2008-03-21 20:19:05

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Giving an internal IP to the internet [Solved]

Think I got it. If not, this guy has the exact setup I'm going for
http://ubuntuforums.org/showthread.php?t=333700

Offline

#14 2008-03-21 20:22:22

ralvez
Member
From: Canada
Registered: 2005-12-06
Posts: 1,694
Website

Re: Giving an internal IP to the internet [Solved]

Glad to hear you got it.
Enjoy!

And remember to close the thread if everything works the way you want.

R.

Offline

Board footer

Powered by FluxBB