Tuesday, February 22, 2011

easyhotspot + squid



edit /etc/chilli/up.sh
##paste paling bawah
iptables -I INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT
iptables -t nat -I PREROUTING -i tun0 -p tcp -m tcp –dport 80 -j REDIRECT –to$
iptables -I INPUT -i tun0 -p tcp -m tcp –dport 3128 –syn -j ACCEPT
pada terminal
service squid stop
tar -zxvf squid_radius_auth-1.10.tar.gz
cd squid_radius_auth-1.10/
make clean
make install
nano /etc/squid/squid.conf
tambahi juga
#######################
auth_param basic program /usr/local/squid/libexec/squid_radius_auth -f /etc/radius_config
auth_param basic children 5
auth_param basic realm Web-Proxy
auth_param basic credentialsttl 5 minute
auth_param basic casesensitive off
acl radius-auth proxy_auth REQUIRED
http_access allow radius-auth
##################################
buat file di /etc
radius.config
isi dgn 
######################
# squid_rad_auth configuration file
# MvS: 28-10-1998
server 10.1.0.1
secret easyhotspot
################
termnal lagi


squid -k parse # cek squid,conf
klo tidak ada error jalan kan squidna :D

1 comment:

Anonymous said...

this example its run with squid transparent?