Tips:

Hướng dẫn tạo một proxy server trên VPS để dùng hoặc chia sẻ

20.4.14 Unknown
Thông thường các bạn muốn dùng proxy để download hoặc vượt tường lửa hay thử nghiệm cái gì đó thì đã số tìm các proxy free trên mạng , những proxy free thì đa số rất chậm và nhanh die do nhiều người dùng .
Nếu bạn có môt con VPS thì tội gì không tạo một proxy server để dùng cho tiện .
Mình hay download phim trên fshare cho nên proxy dùng thường xuyên . tất nhiên là dùng cả trên điện thoại được qua soft này Hướng dẫn sử dụng proxy trên android

Để cài đặt một proxy server trên VPS tốt nhất là dùng Squid vì nó rất dễ cấu hình và nhiều tính năng hay .

Hướng dẫn cài đặt Squid trên centos .
Mã:
yum -y install squid
Mã:
chkconfig squid on
Chỉnh sửa cấu hình .
Mã:
nano /etc/squid/squid.conf
Mặc định port là 3128 các bạn sửa lại dòng này
Mã:
http_port 3128
Thiết lập anonymous thêm các dòng dưới vào cuối .
Mã:
via off
forwarded_for off

request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access User-Agent allow all
request_header_access Cookie allow all
request_header_access All deny all
Thiết lập cho phép chỉ máy bạn truy cập được proxy thêm dòng sau vào phần acl localnet src
acl localnet src ip.cua.may.ban
ví dụ
Mã:
acl localnet src 192.168.1.1
Nếu bạn cho phép ai cũng dùng được proxy chẳng hạn chia sẻ trên cho anh em dùng thi chỉnh dòng này
Mã:
http_access deny all
Thành
Mã:
http_access allow all
Lưu lại và Khởi động lại squid

Mã:
service squid restart
Bây giờ bạn có thể dùng proxy đó để lướt web , download và dùng vào những việc bạn muốn mà không phải đi tìm các proxy free củ chuối trên mạng rồi .

Bạn nào có proxy nào cài đặt xong thì cho mình dùng ké với nhé đang thiếu proxy. Inbox nhé .

╔══╗
╚╗╔╝
╔╝ (¯`v´¯)
╚══`.¸.VL48 -

Từ khóa :
Hướng dẫn tạo một proxy server trên VPS để dùng hoặc chia sẻ Hướng dẫn tạo một proxy server trên VPS để dùng hoặc chia sẻ
9 10 1

Bài viết Hướng dẫn tạo một proxy server trên VPS để dùng hoặc chia sẻ