Posted: Tue Jun 14, 2011 20:31 Post subject: Multiple Static IP Addresses
Ok so I have 5 static IP's and up till now have only used 1 of them, currently I would like to use one of the others for a server I am running. Anyways using this here http://www.dd-wrt.com/wiki/index.php/One-to-one_NAT I have managed to set this up:
The server has a static dhcp assignment through the router for it's IP, the internal IP is 10.100.2.12
I saved them to their respective places and then rebooted the router, the server is accessible from any machine on the network by typing its 10.100 address in or its public address, however from outside the network it doesn't work, also when this is there that machine itself won't access the internet now.
Anyways I don't know what to do and have been trying different things out all day and would really appreciate some help from someone a bit more seasoned with this stuff.
Posted: Wed Jun 15, 2011 7:47 Post subject: Re: Multiple Static IP Addresses
dustywb wrote:
the server is accessible from any machine on the network by typing its 10.100 address in or its public address, however from outside the network it doesn't work, also when this is there that machine itself won't access the internet now.
That's a pretty good sign you configured it correctly. There's a chance that your netmask or broadcast address is wrong. Your ISP could also be blocking it for some reason. _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
Posted: Wed Jun 15, 2011 14:06 Post subject: Re: Multiple Static IP Addresses
phuzi0n wrote:
That's a pretty good sign you configured it correctly. There's a chance that your netmask or broadcast address is wrong. Your ISP could also be blocking it for some reason.
I don't think my netmask is wrong if so I would think that I wouldn't have internet at all as that's what's set for the WAN connection subnet in the webgui, and if the subnet is 255.255.255.128 my IP range is xx.xx.xx.10-14 then my broadcast should be xx.xx.xx.127 right? I've verified this with 2 different subnet calculators. Also I've entered the .113 static in the webgui and the internet works fine when that's done. Does there need to be a gateway or dns configured in this script? That's the only difference between what is in the webgui and here as far as I can tell.
Well I found out the problem, apparently the IP list that was given to me was incorrect so I was trying to use an IP that we did not own lol. So the script is good and it's currently fully functional.
As long as the first 3 octets that you're hiding are correct then the broadcast address is correct.
No gateway or DNS has to be set, the router still uses the same gateway and DNS that was entered in the GUI.
What exact model and firmware are you using? Try hard resetting and reconfiguring from scratch. If that doesn't solve things then please telnet/ssh to the router, test the ports from inside and outside, and PM me the output from these commands:
iptables -vnL
iptables -t nat -vnL
ifconfig _________________ Read the forum announcements thoroughly! Be cautious if you're inexperienced.
Available for paid consulting. (Don't PM about complicated setups otherwise)
Looking for bricks and spare routers to expand my collection. (not interested in G spec models)
As long as the first 3 octets that you're hiding are correct then the broadcast address is correct.
No gateway or DNS has to be set, the router still uses the same gateway and DNS that was entered in the GUI.
What exact model and firmware are you using? Try hard resetting and reconfiguring from scratch. If that doesn't solve things then please telnet/ssh to the router, test the ports from inside and outside, and PM me the output from these commands:
iptables -vnL
iptables -t nat -vnL
ifconfig
Thanks for the help it's up and running, the IP list I was given was incorrect and so the range of IP's I was told we have weren't right so I was using an IP that wasn't assigned to us.
I've got a Asus RT-AC68U, 5 static ip's from comcast starting with 50.245.224.217 and the following script (part in startup, part in firewall).
The script appears not to be working. 50.245.224.217 works fine, 218 goes nowhere. I can change my router's wan ip to 218 and my internal server loads fine.
I don't have any settings set in the nat/Qos port forwarding range , triggering upnp or dmz. I'm on Firmware: DD-WRT v24-sp2 (04/22/14) std