You are not logged in.
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
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? ) 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
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
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
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
Archlinux user since March 19 2008
^mud^ on #archlinux
Offline
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
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
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
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 )
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
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
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
Almost there I think. Do I actually use 192.168.1.x or do I put in the 1 for X?
Offline
Put the number I used 'x' because I did not remember the IPs you were using and was lazy to read back
Again ... do NOT use ftp use ssh. You can do the same things but it is more secure.
R.
Offline
Think I got it. If not, this guy has the exact setup I'm going for
http://ubuntuforums.org/showthread.php?t=333700
Offline
Glad to hear you got it.
Enjoy!
And remember to close the thread if everything works the way you want.
R.
Offline