Tường lửa cho Linux Server bằng IPTABLES!
1. Giới thiệu:
Trang này sẽ mô tả cách tôi thiết lập các đoạn Script để Firewall bằng iptables dựa trên kernel 2.4 hoặc 2.6. Phần này sẽ không chi tiết và cũng không dạy cho bạn bất cứ gì về ipatbles, ở đây là những đoạn scripts mà bạn có thể dùng, những thứ mà tôi biết và thực hiện trên các server của tôi. Những scripts này là những gì tôi thường dùng khi cài đặt, thiết lập hệ thống bảo vệ cho các máy chủ server của tôi bấy lâu nay, cơ bản là rất hiệu quả.
2. Scripts:
Tôi có đoạn scripts khác nhau để initiate/deactivate dịch vụ firewall cho máy chủ Linux
Tập tin script "pre.iptable" sẽ từ chối mọi thứ đi vào máy chủ từ môi trường Internet.
The Scripts
I use 3 different scripts to initiate/deactivate the firewall services for Linux.
A pre.iptable script that will deny everything that comes in on the Internet. I initiate this before any network interfaces come up so when the network comes up it is protected in case, for any reason, the main firewall script fails to initialize.
A rc.firewall script as the main script to initiate all the firewall and masquerading services needed to run on the network. Basically what this script will do is allow anyone on the internal network to access all the services of the internet, but anyone from the outside cannot access the internal network, unless someone on the internal network initiates the communication.
Finally a script to flush all the IPTables at shutdown, or whenever you make changes to the main script.
In order for IPTables to work properly, you must have all the required Kernel modules available, they are listed in the main rc.iptables script. Most Linux Distributions will already provide these within their default kernels.
- 05/10/2011 20:02 - Linux - Một vài mốc thời gian.
- 05/11/2010 15:39 - Cấu hình DHCP Server trên Unix!
- 05/11/2010 15:37 - Cấu hình IP Address (NIC CARD) trên Unix!
- 05/11/2010 15:37 - 5 phút cài đặt CentOS - Video!
- 05/11/2010 15:36 - Các lệnh cơ bản thường dùng trong UNIX!
- 05/11/2010 15:35 - Học Unix trong 10 phút!
















