Centos iptables基礎使用

2021-10-23 01:26:18 字數 716 閱讀 1484

開放埠

# tcp 埠

firewall-cmd --zone=public --add-port=8080/tcp --permanent

# udp 埠

firewall-cmd --zone=public --add-port=8080/udp --permanent

關閉埠

# 關閉 tcp 開放埠

firewall-cmd --zone=public --remove-port=8080/tcp --permanent

# 關閉 udp 開放埠

firewall-cmd --zone=public --remove-port=8080/udp --permanent

檢視埠開放列表

firewall-cmd --list-ports
開啟 iptables

systemctl start firewalld
關閉 iptables

systemctl stop firewalld
檢視 iptables 狀態

systemctl status firewalld
另外:iptables 只是乙個工具命令而已。底層是 netfilter。

CentOS iptables防火牆的基本應用講解

iptables是linux下不錯的防火牆軟體,本文主要給大家介紹下iptables的安裝 規則增加和清除 開放指定埠 遮蔽指定ip和ip段等centos下iptables的基本應用。yum install iptables 如果centos沒有預設安裝iptables,則執行上述命令。如何知道系統...

Optimized Purchasing基礎知識

pr的三要素 物料 數量 採購日期 日期是會影響價錢的 blanket po fo框架訂單。a 成本中心,i 限制 專案的限制標籤 miro支票不管數量,從帳戶分配輸入金額。產生pr三種 me51n,me25,mrp 產生po四種 me21n,me25,me57,me59n evo 物料管理 採購 ...

Phabricator Arcanist基本用法

git clone git git clone git 獲取到arcanist的原始碼後,進行相關配置 開啟.bash profile open e bash profile在環境變數中新增 export path path somewhere arcanist bin 命令列中輸入arc命令檢視是...