Install Squid and Sockd proxy servers on an AWS instance
Jump to navigation
Jump to search
Dante
root@localhost ~ # cd /usr/local/srcroot@localhost /usr/local/src # wget wget https://www.inet.no/dante/files/dante-1.4.1.tar.gzroot@localhost /usr/local/src # tar xvzf dante-1.4.1.tar.gzroot@localhost /usr/local/src # cd dante-1.4.1root@localhost /usr/local/src/dante-1.4.1 # ./configureroot@localhost /usr/local/src/dante-1.4.1 # makeroot@localhost /usr/local/src/dante-1.4.1 # make installroot@localhost ~ # nano -w /etc/sockd.conferrorlog: /var/log/sockd.errlog
logoutput: /var/log/sockd.log
internal: 0.0.0.0 port = 1080
external: eth0
user.notprivileged: nobody
clientmethod: none
socksmethod: none
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: error connect # disconnect
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bind connect udpassociate
log: error connect # disconnect iooperation
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
command: bindreply udpreply
log: error connect # disconnect iooperation
}
Squid
root@localhost ~ # yum install squidroot@localhost ~ # nano -w /etc/squid/squid.confauth_param digest program /usr/lib64/squid/digest_pw_auth -c /etc/squid/digest auth_param digest children 2 auth_param digest realm REALM acl authenticatedusers proxy_auth REQUIRED http_access allow authenticatedusers http_access deny all http_port 3128
root@localhost ~ # touch /etc/squid/digestroot@localhost ~ # chown squid:squid /etc/squid/digestroot@localhost ~ # chmod 640 /etc/squid/digestroot@localhost ~ # htdigest /etc/squid/digest REALM USERroot@localhost ~ # echo -n "USER:REALM:SECRET" | md5hashroot@localhost ~ # chkconfig squid onroot@localhost ~ # /etc/init.d/squid start