nat server not accessable form web

boomtheroom

Reputable
Feb 22, 2014
8
0
4,510
Hi All
i ve just setup a slave router onto my main router which ive finally got working heres and example of my setup
main router 192.168.0.500 dhcp enabled range 400-499
slave router 192.168.0.501 ,dns 192.168.0.500
slave router has nas ftp built in
setup 192.168.0.501 port 21
port forward on main router setup to 192.168.0.501 port 21
i can access the nas on my home network by typing in the slave routers ip address and port 21
but when i try from the web i enter the static ip of my network nothing happens..anythin im missing?

 

mbreslin1954

Distinguished
You can't have an octet in an IP address greater than 255. You can't have one of the address numbers 500 or 501, there are only 8 bits in each part of the address, therefore any number separated by a "." can't be higher than FF (hex), which is 255. So zero through 255 gives you 256 different numbers. You can't have an address of 192.168.0.500. It can't be higher than 192.168.0.255.

I'm not sure what's happening with your network setup, but you should educate yourself on IP addresses:

http://compnetworking.about.com/od/tcpiptutorials/a/ipaddrnotation.htm

 

boomtheroom

Reputable
Feb 22, 2014
8
0
4,510
can the main router port forward to a ip address on the slave router that is out of its dhcp range?
ie my slave router it on ip 192.168.0.101
my master router dhcp range is 192.168.0.1 to 192.168.0.100
i have put my router to portforward to 192.168.0.101:21 to access my nas on my ftp on the slave router but http://canyouseeme.org/
cant connect reason timed out.. any ideas..have tried changing port numbers on th nas and the router but no luck..
 
Yes the port forwarding part will work. I strongly suspect the problem is your slave router will only direct the default route out the WAN port and you are using the slave router as a AP. You could try to put in the default route and point it to 192.168.0.1 so it knows to send traffic from addresses outside the subnet back to the main router.

The problem is that you do this configuration on the wan port on most routers and there is no way to do it on the lan and I think if you were to put it in the wan config it would still attempt to send this out the wan. If your slave router can load dd-wrt that may be a better option since you can then have more options in the routing.

Be aware there is a major exploit on some routers that can run a FTP server NAS device. You are likely not affected as much since you do not have this device directly exposed to the internet but if you did it is possible to access these without authorization.
 

mbreslin1954

Distinguished
The DHCP range has nothing to do with port forwarding, don't worry about that.

I'm not sure how your physical connections are made, since you haven't specified them, but as bill001g said, if your second router is set up as an access point (AP), i.e., the connection to the main router is from one of the second router's LAN ports, not the WAN/Internet port, then the second router is not doing any routing at all, it's just acting as a dumb switch.

This might work if the cable went from your second router's WAN port to a LAN port in your main router, then in the second router's configuration you configured it to have a static IP address of .101. So the 2nd router's Internet connection now comes in as 192.168.0.101, and the main router knows that anything coming in on port 21 goes to .101, which is the secondary router.
 


The default route is the path the device needs to take to get to devices outside...ie the internet. You must tell the second router how to get there so you tell him to go to your main router. It is normally under the WAN settings for default gateway but if the lan has a default gateway it might work

Still I don't know if this will work the device is not designed to operate with only the lan ports connected and if you were to use the wan ports you would break your network into 2 different subnets.
 
The issue would be similar to if you had your PC without the default gateway. If the second router does not know how to reach the internet data coming from the internet will be sent to the device because you have port forwarding but it does not know how to send any data back since it must pass though the main router. The trick will be how do you tell the second router to go to the internet via the main router.
 

boomtheroom

Reputable
Feb 22, 2014
8
0
4,510


one other question i went to can you see me dot org to see i the port 21 is open but it just times out,
then i tried on port 80 which has my remote cam on it and it only succeeds when the remote camera is on..if i turn off the camera ie turn of the remote http server software that the camera runs on it doesnt respond to the port..so if a port is open on the router does it only respond to port seeking software if there i a server running on the other end of that port?
 

boomtheroom

Reputable
Feb 22, 2014
8
0
4,510
might be getting somewhere now i changed the static ip of my switch(nas) to 192.168.0.50 (within my routers dhcp range)
now i can see the nas withing the routing network only problem now when i try to access outsde of the network i ge connection refused..