</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的防火墙设置
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
二进制文件查看工具和方法
原創
2024-05-30 02:27:38
scp远程连接复制文件或目录
原創
2024-05-30 00:06:48
干货收藏!Calico的BGP RouteReflector策略实践
原創
2024-05-29 22:58:38
centos7按照MYSQL8(安装包)
Rsky08
2024-05-29 22:15:17
由浅入深在实践中玩转Zabbix,解决剩下20%的监控需求!
本文整理自Zabbix中級認證專家李銘栓(滿分學員)在Zabbix Meetup廣州站的演講。 掌握這幾種監控方式解決80%的監控問題,剩下的20%如何實現?這裏有答案! 幾點經驗分享: 1
Zabbix中國
2024-05-24 22:33:53
Linux操作系统的安装策略与过程
原創
2024-05-22 01:50:32
linux加载动态库失败
mskk
2024-05-21 00:52:55
Docker on Centos-docker-compose
原創
2024-05-20 11:27:29
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