inet addr:172.31.64.201 Bcast:172.31.79.255 Mask:255.255.240.0
sudo su
vi /etc/network/interfaces
iface lo inet static
address 172.31.64.201
netmask 255.255.240.0
network 172.31.79.0
broadcast 172.31.79.255
gateway 172.31.79.1
dns-nameservers 172.31.79.1 8.8.8.8
use ec2 console to reboot (status changed in 4 mins)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install squid3
--------------------------------------------------------
Ctrl+W search/next search result
Ctrl+X exit
Ctro+O write
(cache is disable by default)
visible_hostname testproxy
http_port 3128
acl network src 172.31.0.0/20
http_access allow network
(http_access allow all, http://ipcalc.nmonitoring.com/)
cache_peer 10.1.2.3 parent 80 0 no-query default login=my_username:my_password
never_direct allow all
--------------------------------------------------------sudo service squid3 stop
sudo service squid3 start
inbound TCP rule: 3128 source: 0.0.0.0/0
Firefox:
in setting: 172.31.64.201(privite IP in AWS) and port 3128
in browser link type 172.31.64.201->see Access Denial page
Connection to 172.31.64.201 failed -> good
Log file:
/var/log/squid/access.log
Proxy:
Install node.js
sudo apt-get install build-essential curl git m4 ruby texinfo libbz2-dev libcurl4-openssl-dev libexpat-dev libncurses-dev zlib1g-dev
54.211.223.78
https://www.youtube.com/watch?v=iKtkp80gV04
http://www.cnblogs.com/derekchen/archive/2011/02/25/1964909.html