Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng

Quản trị net diễn đàn chia sẻ thông tin các thủ thuật mạng, internet bảo mật thông tin dành cho giới IT VIệt hy vọng là nơi bổ ích cho cộng đồng (http://quantrinet.com/forum/index.php)
-   15. Firewall and Gateway (IPtables, CSF) (http://quantrinet.com/forum/forumdisplay.php?f=484)
-   -   Hướng dẫn sử dụng cơ bản Firewall - IPtables trên CentOS 7 (http://quantrinet.com/forum/showthread.php?t=10120)

hoctinhoc 29-04-2017 11:28 PM

Hướng dẫn sử dụng cơ bản Firewall - IPtables trên CentOS 7
 
Hướng dẫn sử dụng cơ bản Firewall - IPtables trên CentOS 7

1. Cài đặt

Mặc định FIREWALLD - IPTABLE đã được cài đặt sẳn trên CentOS 7, nhưng nếu kiểm tra không thấy dịch vụ thì bạn cài đặt bằng cách sau:

- Kiểm tra bằng lệnh start, xem or enable thì sẽ báo lỗi nghĩa là Firewalld chưa được cài
systemctl status firewalld lỗi

Unit firewalld.service could not be found

- Cài Firewalld

yum -y install firewalld

2. Kiểm tra và start Firewall

systemctl list-units --type=servicesystemctl enable firewalld sudo systemctl enable firewalld systemctl start firewalld sudo systemctl start firewalld systemctl status firewalld

3. Xem các Rules và mở Port

sudo iptables -L

sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --reload

đang updateing.........................

Tham khảo: http://www.tecmint.com/start-stop-di...bles-firewall/

Chúc bạn thành công


Bây giờ là 04:22 AM. Giờ GMT +7

Diễn đàn tin học QuantriNet
quantrinet.com | quantrimang.co.cc
Founded by Trương Văn Phương | Developed by QuantriNet's members.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.