HTTP Anti-Virus Proxy

Official HAVP Support Forum
Registration disabled, I'm tired of spambots. E-mail havp@hege.li if you have questions.
HAVP project is pretty much frozen/abandoned at this time anyway.
It is currently 22 Jun 2014 09:52

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 16 Oct 2006 22:26 
Offline

Joined: 16 Oct 2006 22:21
Posts: 3
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. What
am I doing wrong?

whitelist:
x.y.z.205/*

Steps to recreate:
http://x.y.z.205/appfinityweborder
login 0012
password april
customer alr08
item # 1
quantity 700
ENTER
click SAVE

SECOND SUBJECT: Is it possible to whitelist by IP address, specifying a
range? I want to whitelist x.y.z.200/29* so that any url from any IP
between .202 and .206 is whitelisted.
--
buck


Top
 Profile  
 
 Post subject:
PostPosted: 17 Oct 2006 08:27 
Offline

Joined: 16 Oct 2006 22:21
Posts: 3
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


Top
 Profile  
 
PostPosted: 17 Oct 2006 09:03 
Offline
HAVP Developer

Joined: 27 Feb 2006 18:12
Posts: 687
Location: Finland
buck wrote:
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. What
am I doing wrong?


This could be a bug, but I would need to access the page to verify it.

Quote:
SECOND SUBJECT: Is it possible to whitelist by IP address, specifying a
range? I want to whitelist x.y.z.200/29* so that any url from any IP
between .202 and .206 is whitelisted.


It's recommended to use Squid before HAVP (and after) so you can do this all easier and more efficiently. Perhaps whitelisting IP's is added later to HAVP.

Cheers,
Henrik


Top
 Profile  
 
 Post subject:
PostPosted: 18 Oct 2006 09:20 
Offline

Joined: 16 Oct 2006 22:21
Posts: 3
Henrik,

I cannot post the URL in a public forum, but if you will send me a message off list I will reply with the information you need.

buckprivatemil yahoo com

I appreciate your offer to check this out. Thank you.
--
buck


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group