HTTP Anti-Virus Proxy
http://havp.hege.li/forum/

help ---display "Invalid request"
http://havp.hege.li/forum/viewtopic.php?f=3&t=398
Page 1 of 1

Author:  fubaby [ 22 Nov 2008 12:11 ]
Post subject:  help ---display "Invalid request"

Hello,
havp->squid->Internet
havp.config :
SERVERNUMBER 40
MAXSERVERS 200
ACCESSLOG /var/log/havp/access.log
ERRORLOG /var/log/havp/havp.log
TEMPDIR /var/tmp
DBRELOAD 60
PORT 8080
MAXSCANSIZE 5000000
KEEPBACKBUFFER 20000000
KEEPBACKTIME 5
TRICKLING 30
STREAMSCANSIZE 2000
ENABLECLAMLIB true
CLAMBLOCKENCRYPTED false
CLAMMAXFILES 50
CLAMMAXFILESIZE 10
CLAMMAXRECURSION 8
CLAMMAXRATIO 250

squid.conf :
acl our_networks src 192.168.0.0/24
http_access allow our_networks
http_access allow localhost
http_port 3128
cache_mem 100 MB
cache_swap_low 90
cache_swap_high 95
visible_hostname proxy
icp_port 3130
dns_nameservers x.x.x.x x.x.x.x


set up proxy in browser (port 192.168.0.1: 8080) ,Normal.
If there is not browser-based port agent, will be "Invalid request "
why ? why ?

Thanks,

Author:  fubaby [ 23 Nov 2008 03:53 ]
Post subject:  Re: display "Invalid request"

iptables :
modprobe ip_tables
modprobe iptable_nat
modprobe iptable_filter
modprobe ip_conntrack_ftp
modprobe ip_nat_ftp
echo 1 >/proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0(wan) -j SNAT --to x.x.x.x
iptables -t nat -A PREROUTING -s 192.168.1.0/24 -i eth1(lan) -p tcp --dport 80 -j REDIRECT --to-port 8080

Author:  fubaby [ 23 Nov 2008 09:34 ]
Post subject:  Re: help ---display "Invalid request"

why ?

Author:  hege [ 23 Nov 2008 12:11 ]
Post subject:  Re: help ---display "Invalid request"

Did you read the config file through?

If you want transparent proxy, then you must set TRANSPARENT true.

Author:  fubaby [ 24 Nov 2008 07:47 ]
Post subject:  Re: help ---display "Invalid request"

hehe ,ok
Thanks,

Page 1 of 1 All times are UTC + 2 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/