iptables and apache virtual hosts

Luke Davis ldavis at shellworld.net
Sat Mar 12 23:34:46 EST 2005


On Sat, 12 Mar 2005, Janina Sajka wrote:

> $IPT -t nat -A PREROUTING -i $WAN -p tcp --dport 80 -j DNAT --to
> 192.168.1.1:80

What is $wan?

Put in a way that will provide better info: what are these addresses?

* The internal address of your router
* The address of the server's NIC, to which the router is connected
* Any aliased addresses on that NIC
* The apache "namevirtualhost" lines, and a few vhost blocks
* The apache "bindaddress" and "listen" lines

Is iptables permitting established and related connections through?
Are any other services having problems?

Luke




More information about the Speakup mailing list