Hi,
I want to split HTTP traffic coming into my Linksys OpenWrt box (on WAN), based on HTTP "host" header, to two different LAN systems running web servers. How can it be done ?
1. Is it possible to do via iptables ? I googled but can't find anything that works. The only reference I found was somewhere in HyperWRT forums. It talks about a "webstr" match. I can't find any iptables match extension that'd let me do that.
2. I tried lighttpd, using it as a reverse proxy. It seems to work, but it crashes if I transfer a big file. The problem is, lighttpd tries to cache the file or something to that effect. It's (lighttpd's) memory consumption grows, until it becomes too much that the kernel steps in and kills the process. I can't find how to disable caching or set a low cache limit in lighttpd.
Note on option 1 above : I guess this is in tune with being able to block access to certain websites - like access restrictions or parental control. This feature is there in some routers and I think it must be using a similar logic to deny access.
Are there any other reverse proxies ? I came to know about "pound" (http://www.apsis.ch/pound/) - a reverse proxy for Linux, which can possible do what I want. But its not available for OpenWrt
So, what are my options ?
Thanks in advance.