Iptables rules for nat to apache ip based virtual hosts
24 May
2005
24 May
'05
15:53
Hello together, I have got one official ip address and a dmz with an apache webserver with ip based virtual hosts config. Now I have got the problem, that my prerouting / forward rule does not work properly. E.g. iptables -t nat -A PREROUTING -i $INF -p tcp --sport 1024: -d www.mydomain.com --dport 80 -j DNAT --to 1.2.3.4:80 iptables -A FORWARD -p tcp -d 1.2.3.4 --dport 80 -i $INF -j ACCEPT This does work for one domain. But of course any further prerouting rule is set to the first nat ip address. Do I need an application level gateway for this config or could this feature be achieved by iptables? Thanks for any advice! Regards, Stefan
6913
Age (days ago)
6913
Last active (days ago)
0 comments
1 participants
participants (1)
-
Stefan.Junge@ssi-schaefer.de