Since forwarding/proxying is based on hostname, it must be proxied based on application protocol (if the hostname is included into the protocol request/response).
 
For http you can use apache with mod_proxy to do the proxying.  I'm not sure about https - I think I've heard that the different virtual servers in apache need different IP addresses for the certs to work correctly in all cases, but I'm not 100% sure about that.
 
Cheers,
jr
Is it possible to make iptables forward packets based on hostname.
 
I've one.cc.com and two.cc.com three.cc.com pointing to 213.93.43.28 . And I want that traffic with one.cc.com is going to 213.93.43.84. But the two.cc.com and three.cc.com traffic need to be forwarded to an internal network ip (suchs as 192.168.100.2).
 
Is this possible with iptables. Or do I have to add an loadbalancer or use an proxy. I also thought about using ipv6, but it has an lack of supporting program's.
 
If you have any other idea's about this matter. Please tell me.
 
Peter Gosens

Reply via email to