Port Forward/NAT Loopbacks
Posted: Fri Feb 13, 2009 8:15 am
Ok, this might be troublesome to implement with a working qos (or maybe not ? I don't have the skills to think this through):
What I would really like is having port forward loopbacks, see this for reference:
http://www.sbtechsolutions.biz/setting- ... on-openwrt
Essentially what I would like:
I have a webserver setup, the server has the ip (example) 192.168.2.10 and the hostname "myserver". This server has several services running that are accessible via http apis.
To illustrate:
Server / service with python webserver / Apache setup as reverse proxy with http auth - layer/ accessible as: http://myserver:80 in my local LAN.
The server is also externally accessible via dyndns:
http://myserver.dyndns.org:8080 - with port forwarding setup so I access the transparent apache reverse proxy externally.
Now what I essentially want to have: I want to be able to access my server IN my LOCAL network with the external dyndns ip.
At the moment when my laptop is connected locally I have to use http://myserver:80 and when I am connected externally (in university, at my parents house, umts etc.) I have to access it with the dyndns.
This is a problem because I have some browser plugins that automatically communicate with webservices on my server - that want an IP sepcified (of course) - and I have to change that IP everytime if I am local or external, because internally I cannot use the dyndns adress to connect (which would be quite cool). The solution I found on the net are said loopbacks - but I have no idea if they are easy to implement with a qos script inbetween.
Thanks for your consideration
edit: for more info I found this forum post where somebody modified the openwrt qos scripts to do what I want, I think:
http://forum.openwrt.org/viewtopic.php?id=4578
edit2:
Did some thinking - as an alternative I noticed I could try and do some dnsmasq trickery by writing the external domain into the hosts file as a domain. This should work if I change my webserver to also respond to port 8080 requests (atm external requests to 8080 are forwareded to myserver:80) for what I want to achieve. My request still stands if feasable, but I think for the time being that could be a solution
What I would really like is having port forward loopbacks, see this for reference:
http://www.sbtechsolutions.biz/setting- ... on-openwrt
Essentially what I would like:
I have a webserver setup, the server has the ip (example) 192.168.2.10 and the hostname "myserver". This server has several services running that are accessible via http apis.
To illustrate:
Server / service with python webserver / Apache setup as reverse proxy with http auth - layer/ accessible as: http://myserver:80 in my local LAN.
The server is also externally accessible via dyndns:
http://myserver.dyndns.org:8080 - with port forwarding setup so I access the transparent apache reverse proxy externally.
Now what I essentially want to have: I want to be able to access my server IN my LOCAL network with the external dyndns ip.
At the moment when my laptop is connected locally I have to use http://myserver:80 and when I am connected externally (in university, at my parents house, umts etc.) I have to access it with the dyndns.
This is a problem because I have some browser plugins that automatically communicate with webservices on my server - that want an IP sepcified (of course) - and I have to change that IP everytime if I am local or external, because internally I cannot use the dyndns adress to connect (which would be quite cool). The solution I found on the net are said loopbacks - but I have no idea if they are easy to implement with a qos script inbetween.
Thanks for your consideration

edit: for more info I found this forum post where somebody modified the openwrt qos scripts to do what I want, I think:
http://forum.openwrt.org/viewtopic.php?id=4578
edit2:
Did some thinking - as an alternative I noticed I could try and do some dnsmasq trickery by writing the external domain into the hosts file as a domain. This should work if I change my webserver to also respond to port 8080 requests (atm external requests to 8080 are forwareded to myserver:80) for what I want to achieve. My request still stands if feasable, but I think for the time being that could be a solution
