Help to create a network route

roddyp

Well-Known Member
Joined
Aug 6, 2003
Messages
446
Reaction score
1
Location
.
Hi,

Need some help. I am sure it probably easy to do, but i am having a problem doing it.

1. I have a server on my LAN that is also connectible via the net.
2. It has an application running that is updated from remote sites. (The necesarry ports etc are open)
3. It is connected via a neotel fibre line, which has a fixed IP address. Lets say its 100.100.100.100
4. I have my internal IP address for it as 192.168.0.141

Now, lets say i want to update my application, but instead of sitting at a remote site, i am sitting here at the office. Currently, my app is hard-coded and will only updated to the public IP address of 100.100.100.100.

The only way i can update my app is to have it connected via the Net. So effectively, its using my ADSL line to connect to my fibre app. Hope this makes sense.

How can i create a network path on my ADSL router to say.. IF you see the address 100.100.100.100:8002, re-direct this 192.168.0.141:8002.

Please help. Its driving me mad, and updating via the Net takes 4 hours. Locally it take 10 mins.

Thanks

Roddy
 
Firstly - hard coding an IP for something like this is a terrible idea

Are you using a different gateway than the Neotel for your own internet connection? Reason I ask is if you use the same gateway your Internet traffic Hops for the data transfer shouldn't even leave your local network technically then and still transfer at LAN speed
 
PsyWulf,

I agree, its a terrible idea. my developer is **** and have left me in this mess.

I have 3 different gateways, as i have 2 ADSL lines and 1 fibre. My server is using the fibre gateway. (192.168.0.253)

My devices are IPOD's, so i have set their wireless settings with the same gateway. However, the traffic still wonders out into the ether and then back.

So, I thought to try setup a static route on my netgear router as its on the same network, but i am not having much success.
 
Thanks Bernie,

Problem is, all the damn routers have different settings. With the netgear, i have "Static Routes". I am trying to figure that out, but it seems a bit one sided.
 
This won't be solved by routing. Routing requires the receiving side to actually respond to the IP address,if you had a spare network card on the server you could bluff it by adding a same IP as the public IP and then using routing

Your most likely bet is to actually set up a Firewall and redirect outgoing connections to that port to the internal address
Something like Endian Community firewall
 
Thanks PsyWulf

I will start to investigate that.
 
That said some routers do have the ability to use custom firmwares which add more robust firewalling support
 
Any ideas where to look? I have many different types of routers so effectively i could any of them
 
You'd have to check the model numbers and see if something like OpenWRT is supported (or if you can SSH and use IPTables command)
 
Think i may have found one. http://www.dd-wrt.com/ seems decent and they have iptables i can fiddle with at a command level.
Let me know if know of any better ones i should use :)
 
Yeah DD-WRT have good support overall (but little support for ADSL routers) so you might have to put a WAN Router with DD-WRT Support in your network as the default gateway (rather than the ADSL Modem/routers)
 
You will need to point the "fixed" IP that the app is using to point it to a DNS name instead. Then make sure internally the DNS resolves to the IP of the internal server, and externally make sure it's pointing to your external IP that's forwarding the ports to the server.

No router is going to help you here.
 
Hi,

Problem is i can;t change anything. My dev hard-coded it and has now disappeared off the face of the earth. So i am pretty much stuck.
The fixed address sits in my App which IOS based. If i had a hosts file or something like on the device, this would solve my problem....
 
Top
Sign up to the MyBroadband newsletter
X