|
Debian Lenny vpn+squid+nat+auth_ldap |
|
|
|
|
Scritto da Alessandro Pensato
|
|
Sabato 13 Agosto 2011 08:12 |
nano /etc/rc.local
/sbin/modprobe iptable_nat
/sbin/iptables -t nat -A PREROUTING -i ppp0 -p tcp --destination-port 80 -j REDIRECT --to-ports 3128
/sbin/iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
nano /etc/sysctl.conf
net.ipv4.ip_forward=1
apt-get install pptpd
reboot
nano /etc/pptpd.conf
localip 10.0.0.1
remoteip 10.0.0.10-254
nano /etc/ppp/options
ms-dns 192.168.1.2
ms-dns 192.168.1.16
ms-wins 192.168.1.103
nano /etc/ppp/pptpd-options
ms-dns 192.168.1.2
ms-dns 192.168.1.16
ms-wins 192.168.1.103
nano /etc/ppp/chap-secrets
porkyhttp * ++pwdads31 *
/etc/init.d/pptpd restart
apt-get install squid sarg apache2 php5 php5-dev php5-cli php5-gd ntpdate
ntpdate server it.pool.ntp.org
crontab -e
*/5 * * * * /usr/bin/sarg
nano /etc/squid/allowed.txt
garr.it
cilea.it
microsoft.it
nano /etc/squid/squid.conf
http_port 3128 transparent
acl allowed_sites url_regex -i "/etc/squid/allowed.txt"
http_access allow allowed_sites
cache_mgr sysadmin@home.local
visible_hostname vpn.home.local
error_directory /usr/share/squid/errors/Italian
/etc/init.d/squid reload
|