Cấu hình Web Filtering
Cập nhật lần cuối: 03/08/2026 17:00
Cấu hình Web Filtering
Điều kiện tiên quyết:
- Khách hàng cần truy cập vào Cloud Firewall tại trang https://cloud.vnpt.vn/
- Cấu hình IP Whitelist bảo mật
- Sử dụng user/password được thiết lập tại mục Tài khoản truy cập.
- Nhấn vào nút "Truy cập Console" tại màn hình chi tiết Firewall để mở trang quản trị.
Chức năng Squid cho phép người dùng lọc các trang web sau đó chặn, cấp phép hoặc kiểm soát quyền truy cập vào các trang web này. Khách hàng có thể dùng nó như một “người gác cửa” để kiểm tra yêu cầu truy cập Internet dựa trên bộ quy tắc có sẵn để tăng cường bảo mật và tối ưu băng thông
Quý khách có thể cài đặt Squid Web Proxy theo các thao tác dưới đây:
Bước 1: Tải xuống danh sách blacklist
Truy cập Service → Squid Web Proxy → Administration
Sau đó chuyển qua tab “Remote Access Control Lists”
Rồi tạo mới blacklist và sử dụng URL dẫn đến blacklist sau: https://s3.onsmartcloud.com/blacklist/blacklists.tar.gz

Màn hình cấu hình blacklist
Sau đó nhấn Download ACLs rồi Apply để tải xuống danh sách trong URL trên
Màn hình download danh sách trong blacklist
Sau khi tải xuống hoàn tất, vào lại edit sẽ thấy các category để chọn cho việc filter

Màn hình danh sách trong categories đã được về thành công
Ngoài ra nếu muốn chọn riêng lẻ từng category để giảm kích thước và gánh nặng cho squid thì có thể tải category riêng lẻ theo danh sách URL sau:
- https://s3.onsmartcloud.com/blacklist/astrology.tar.gz
- https://s3.onsmartcloud.com/blacklist/child.tar.gz
- https://s3.onsmartcloud.com/blacklist/games.tar.gz
- https://s3.onsmartcloud.com/blacklist/dynamic-dns.tar.gz
- https://s3.onsmartcloud.com/blacklist/webhosting.tar.gz
- https://s3.onsmartcloud.com/blacklist/dating.tar.gz
- https://s3.onsmartcloud.com/blacklist/cleaning.tar.gz
- https://s3.onsmartcloud.com/blacklist/adult.tar.gz
- https://s3.onsmartcloud.com/blacklist/cryptojacking.tar.gz
- https://s3.onsmartcloud.com/blacklist/redirector.tar.gz
- https://s3.onsmartcloud.com/blacklist/phishing.tar.gz
- https://s3.onsmartcloud.com/blacklist/strict_redirector.tar.gz
- https://s3.onsmartcloud.com/blacklist/educational_games.tar.gz
- https://s3.onsmartcloud.com/blacklist/hacking.tar.gz
- https://s3.onsmartcloud.com/blacklist/warez.tar.gz
- https://s3.onsmartcloud.com/blacklist/sexual_education.tar.gz
- https://s3.onsmartcloud.com/blacklist/webmail.tar.gz
- https://s3.onsmartcloud.com/blacklist/drogue.tar.gz
- https://s3.onsmartcloud.com/blacklist/lingerie.tar.gz
- https://s3.onsmartcloud.com/blacklist/ai.tar.gz
- https://s3.onsmartcloud.com/blacklist/publicite.tar.gz
- https://s3.onsmartcloud.com/blacklist/download.tar.gz
- https://s3.onsmartcloud.com/blacklist/filehosting.tar.gz
- https://s3.onsmartcloud.com/blacklist/examen_pix.tar.gz
- https://s3.onsmartcloud.com/blacklist/audio-video.tar.gz
- https://s3.onsmartcloud.com/blacklist/manga.tar.gz
- https://s3.onsmartcloud.com/blacklist/bitcoin.tar.gz
- https://s3.onsmartcloud.com/blacklist/dialer.tar.gz
- https://s3.onsmartcloud.com/blacklist/stalkerware.tar.gz
- https://s3.onsmartcloud.com/blacklist/special.tar.gz
- https://s3.onsmartcloud.com/blacklist/blog.tar.gz
- https://s3.onsmartcloud.com/blacklist/sports.tar.gz
- https://s3.onsmartcloud.com/blacklist/malware.tar.gz
- https://s3.onsmartcloud.com/blacklist/agressif.tar.gz
- https://s3.onsmartcloud.com/blacklist/tricheur.tar.gz
- https://s3.onsmartcloud.com/blacklist/remote-control.tar.gz
- https://s3.onsmartcloud.com/blacklist/liste_bu.tar.gz
- https://s3.onsmartcloud.com/blacklist/arjel.tar.gz
- https://s3.onsmartcloud.com/blacklist/gambling.tar.gz
- https://s3.onsmartcloud.com/blacklist/mobile-phone.tar.gz
- https://s3.onsmartcloud.com/blacklist/tricheur_pix.tar.gz
- https://s3.onsmartcloud.com/blacklist/press.tar.gz
- https://s3.onsmartcloud.com/blacklist/mixed_adult.tar.gz
- https://s3.onsmartcloud.com/blacklist/marketingware.tar.gz
- https://s3.onsmartcloud.com/blacklist/vpn.tar.gz
- https://s3.onsmartcloud.com/blacklist/bank.tar.gz
- https://s3.onsmartcloud.com/blacklist/celebrity.tar.gz
- https://s3.onsmartcloud.com/blacklist/translation.tar.gz
- https://s3.onsmartcloud.com/blacklist/financial.tar.gz
- https://s3.onsmartcloud.com/blacklist/chat.tar.gz
- https://s3.onsmartcloud.com/blacklist/update.tar.gz
- https://s3.onsmartcloud.com/blacklist/ddos.tar.gz
- https://s3.onsmartcloud.com/blacklist/shortener.tar.gz
- https://s3.onsmartcloud.com/blacklist/reaffected.tar.gz
- https://s3.onsmartcloud.com/blacklist/social_networks.tar.gz
- https://s3.onsmartcloud.com/blacklist/radio.tar.gz
- https://s3.onsmartcloud.com/blacklist/doh.tar.gz
- https://s3.onsmartcloud.com/blacklist/shopping.tar.gz
- https://s3.onsmartcloud.com/blacklist/fakenews.tar.gz
- https://s3.onsmartcloud.com/blacklist/dangerous_material.tar.gz
- https://s3.onsmartcloud.com/blacklist/jobsearch.tar.gz
- https://s3.onsmartcloud.com/blacklist/sect.tar.gz
- https://s3.onsmartcloud.com/blacklist/residential-proxies.tar.gz
- https://s3.onsmartcloud.com/blacklist/strong_redirector.tar.gz
- https://s3.onsmartcloud.com/blacklist/cooking.tar.gz
- https://s3.onsmartcloud.com/blacklist/liste_blanche.tar.gz
- https://s3.onsmartcloud.com/blacklist/associations_religieuses.tar.gz
- https://s3.onsmartcloud.com/blacklist/exceptions_liste_bu.tar.gz
- https://s3.onsmartcloud.com/blacklist/forums.tar.gz
Bước 2: Tạo Certificate Authority
Truy cập System → Trust → Authorities
Sau đó tạo mới CA

Màn hình tạo mới một CA
Bước 3: Tiến hành cấu hình Squid.
Chuyển qua tab “General Proxy Settings”, sau đó bật “Enable proxy”

Màn hình bật Enable proxy
Tiếp theo chuyển qua tab “Forward Proxy”
Sau đó bật “Enable Transparent HTTP proxy”, bật “Enable SSL inspection” và chọn CA to use là CA tạo ở bước 2

Màn hình cấu hình ở Forward Proxy
Bước 4: Tạo Firewall Redirect trong NAT Port-Forward
Truy cập Firewall → NAT → Port Forward, tạo mới Redirect cho port 3128
- Interface: LAN
- Source: LAN net
- Destination port: HTTP (80)
- Redirect: 127.0.0.1 port 3128
Màn hình cấu hình Port Forward trong NAT
Làm tương tự với port 3129
Màn hình các cấu hình trong Port Forward
Sau khi tạo Redirect sẽ có Firewall rule LAN
Màn hình các rules trong LAN tương ứng với Port Forward
Bước 5: Tiến hành test
Trên máy Ubuntu:
Route qua firewall: ip route replace default via 70.226.26.115

Màn hình thay đổi Default Gateway trên máy Ubuntu
Import file CA
Màn hình import file CA
Cập nhật CA

Màn hình cập nhật file CA
Test connect tới web có trong blacklist

Màn hình test connect tới web có trong blacklist
Trên máy Window:
Route qua firewall:
Vào “Network and Sharing Center” chọn “Change adapter settings”
Sau đó chọn network rồi vào “properties” Chọn “Internet Protocol Version 4 (TCP/Ipv4)
Rồi sửa trong “Properties”
Màn hình test connect tới web có trong blacklist
Tải file pem CA về máy
Vào Certmgr, chuột phải vào Trusted Root Certification Authority chọn All tasks rồi import

Màn hình Import chứng chỉ vào kho Trusted Root Certification Authorities
Chọn file pem vừa tải, sau đó chọn “Place all certificates in the following store”, “Trusted Root Certification Authorities” rồi Finish → Yes → OK
Nếu thành công sẽ hiện : The import was successful
Sau đó truy cập web có trong blacklist sẽ thấy website đã bị chặn
Màn hình không truy cập thành công trang web trong blacklist


