Configure portmapping to other port
Hi,
How do I proceed in mapping an internet facing port 5080 to port 80 of another server in my LAN ?
I have spent hours on Google, on this and other forums, but can't find any clue...
The set-up: my server (100.100.100.110) runs a webserver on port 80, I want to access it via the internet facing address of my WL500G router (e.g. 81.83.48.01).
I tried via the virtual server page, but problem is that I can't specify the destination port...
example: "100.100.100.110 5080 TCP/UDP Webserver"
I'm running a standard WL500G router, in Home Gateway mode, firmware 1.6.5.3.
Thanks,
Stef
problem is more complicated than that
Sorry, I might not have been detailed enough.
Lexi is right; my problem is that the *internal* port (80) cannot be put the same as the *external* port (5080)... It is a black-boxed device with a fixed port 80.
Is there really no way to set it up like this:
81.83.48.01:5080 ----> [router] ----> 100.100.100.110:80 ?
re: the firmware upgrade ("1.7.5.9 preferably CR5"), does it only fix stability issues or also portmapping-related issues ?
Thanks a lot Styno & Lexi
advanced portmapping - the sequel...
Hi,
thanks all for the tips. I've finally found time to upgrade the firmware to 1.8.1.7, and I must say, it works nice (I especially like the telnet service)
Now, to come back to my problem of mapping an "outside" port 5080 to an "inside" port 80 on one of the machines in my LAN: I can't get it to work...
I want to connect to my router's WAN address (via dyndns.org) on port 5080 and have all (HTTP) traffic redirected to 100.100.100.110 port 80. Note: For technical reasons, I cannot change the port 80 into something else.
Here's what I tried:
iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport 5080 -j DNAT --to 100.100.100.110:80
iptables -A FORWARD -d 100.100.100.10 -p tcp --dport 5080 -j ACCEPT
What am I doing wrong here ?
I tested it from the internet and it doesn't work
Oleg,
Sorry, I have not been very clear aparently. Mea culpa.
The wl-500g router I've been talking about is located at another physical location outside my LAN.
This is the set-up:
[my PC]--[router]----(internet)----[wl-500g]---[webserver port 80]
+--[file server port 5631,5632]
The file server is accessible over the internet via PCAnywhere and VNC, *through* the router, so the wl-500g is working just fine (at least for same port to same port mapping...)
So I have tested this indeed from the internet.
Big O.