Quote:
When I attempt to place an order over the web, I see the HTML code rather than
the expected page. Disabling HAVP 0.82 fixes this; havp uses clamav, which is
current. Putting the IP in the whitelist does not resolve the problem.
I got around this by creating nat rules with iptables:
#!/bin/bash
# /usr/sbin/havp.sh
# Remove all rules added after the 'if' below:
iptables -t nat -D PREROUTING -p tcp -s 192.168.1.0/24 --dport 80 -j HAVP 2>/dev/null
iptables -t nat -D HAVP -p tcp -s 192.168.1.0/24 --dport 80 -j DNAT --to 192.168.1.1:8080 2>/dev/null
# Exceptions:
iptables -t nat -D HAVP -d c.b.a.144/29 -j RETURN 2>/dev/null
iptables -t nat -D HAVP -d x.y.z.200/29 -j RETURN 2>/dev/null
# End exceptions
iptables -t nat -X HAVP 2>/dev/null
if [ "$1" = "up" ] || [ "$1" = "start" ]; then
iptables -t nat -N HAVP
# Exceptions:
iptables -t nat -A HAVP -d x.y.z.200/29 -j RETURN
iptables -t nat -A HAVP -d c.b.a.144/29 -j RETURN
# End exceptions
iptables -t nat -A HAVP -p tcp -s 192.168.1.0/24 --dport 80 -j DNAT --to 192.168.1.1:8080
iptables -t nat -A PREROUTING -p tcp -s 192.168.1.0/24 --dport 80 -j HAVP
fi
# EOF havp.sh
--
buck