</pre><p><span style="font-family: FangSong_GB2312; font-size: 14px;">(轉載)</span><span style="font-family: Simsun;font-size:14px;"> </span></p><p><span style="font-family: FangSong_GB2312; font-size: 14px;">iptables 所在目錄 /etc/sysconfig/iptables</span><span style="font-family: Simsun;font-size:14px;"> </span></p><p><span style="font-family: FangSong_GB2312; font-size: 14px;">service iptables status 查看iptables狀態 </span></p><p><span style="font-family: FangSong_GB2312; font-size: 14px;">service iptables restart iptables 服務重啓 </span></p><p><span style="font-family: FangSong_GB2312; font-size: 14px;">service iptables stop iptables 服務禁用</span></p><span style="font-family: Simsun;font-size:14px;"></span><h3 class="title pt10 pb10 pl5" style="font-family: Simsun; margin: 0px; padding-top: 10px; padding-bottom: 10px; padding-left: 5px; line-height: 36px; color: rgb(31, 155, 207); text-shadow: rgb(153, 153, 153) 1px -1px 1px; background: url(http://www.longhui.org/wp-content/themes/Qiumin/s/articleTit.png) repeat-y rgb(254, 254, 254);"><span style="font-family: FangSong_GB2312;">Linux服務器打開防火牆的SNMP端口(161)的方法</span></h3><span style="font-family: FangSong_GB2312; font-size: 14px;"><span style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);">方法一 iptables -I INPUT -p UDP –dport 161 -j ACCEPT;</span><br style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);" /><span style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);">方法二 vi /etc/sysconfig/iptables</span><br style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);" /><span style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);">插入</span><br style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);" /><span style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);">-A -INPUT -p udp -m udp --dport 161 -j ACCEPT</span><br style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);" /><span style="color: rgb(51, 51, 51); line-height: 28px; background-color: rgb(254, 254, 254);">保存 重啓 service iptables restart</span></span><pre class="reply-text mb10" id="content-662957502" name="code" style="white-space: pre-wrap; word-wrap: break-word; color: rgb(51, 51, 51); line-height: 26px; background-color: rgb(255, 255, 255);">
Linux關於snmp的防火牆設置
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
Linux中的tty和pts
一、幾個基本概念 tty(Teletypewriter) 來源於“電傳打印機”,Linux系統中則是終端設備的統稱,同時也代指操作系統中支持終端設備的tty子系統。 console(控制檯)
原創
2024-05-18 00:45:13
個人開發者如何入門 Java 異步編程
原創
2024-05-17 01:49:09
在Linux操作系統的安裝過程中,如何選擇合適的發行版
原創
2024-05-17 01:49:06
流水線 YAML 高級用法來了!大幅降低重複代碼、靈活編排多任務
原創
2024-05-16 21:13:44
高效調度新篇章:詳解DolphinScheduler 3.2.0生產級集羣搭建
原創
2024-05-15 21:22:54
Spring 按條件裝配使用方法
原創
2024-05-15 11:50:12
界面組件DevExpress Reporting v24.1預覽版 - 擁有原生Angular報表查看器
原創
2024-05-14 12:21:34
利用pyinstaller打包Python程序爲一個可執行文件
osc_hwc3munb
2024-05-14 02:04:34
FA的linux基礎01
osc_hzf6peqc
2024-05-14 01:40:14
Android內存管理機制官方詳解文檔
osc_51airx3z
2024-05-14 00:37:42
raid添加新的硬盤問題
osc_61miaq6u
2024-05-13 22:58:18
BlackHat ASIA 議題解讀 | 安卓Netlink內核模塊中隱藏的“傳送門”
百度安全
2024-05-13 21:42:48
Linux下BMP圖片添加水印
osc_m6gaz63w
2024-05-13 21:33:54