-
互聯(lián)網(wǎng)安全法,互聯(lián)網(wǎng)凈網(wǎng)行動
-
”凈網(wǎng)2020”落實好維護網(wǎng)絡安全責任
-
關于端午節(jié)放假通知-宇眾網(wǎng)絡
-
宇眾網(wǎng)絡春節(jié)放假通知
-
關于公司收款銀行賬戶變更通知函-宇眾網(wǎng)絡
-
關于網(wǎng)上有人冒充我公司名義進行詐騙的公告。
-
關于端午節(jié)放假通知,節(jié)日放假,但是我們業(yè)務不“放假”-宇眾網(wǎng)絡
-
工信部進一步加強未備案網(wǎng)站管理工作的通知-宇眾網(wǎng)絡
-
關于東莞市宇眾網(wǎng)絡科技有限公司香港數(shù)據(jù)中心(香港機房)路由優(yōu)化通知
-
宇眾網(wǎng)絡慶祝五·一勞動節(jié)快樂
-
東莞東城機房網(wǎng)絡升級通知
-
臨近過年,互聯(lián)網(wǎng)IDC貴圈也有被騙的,請認準宇眾網(wǎng)絡公司官方聯(lián)系方式
-
我司已獲得ISP/ICP/IDC三證資格,更好的為客戶服務
-
關于浙江金華高防機房網(wǎng)絡線路切割通知
-
工信部近日下發(fā)關于進一步規(guī)范域名備案工作的通知
行業(yè)資訊
- 首頁
- 新聞中心
- 行業(yè)資訊
Linux中iptables(防火墻)中如何打開指定的端口-宇眾網(wǎng)絡服務器銷售
例:當修改了ssh遠程連接端口,如何在iptables上打開新的端口(這里將默認22端口號修改為33端口號)
#輸入命令打開33端口。
[root@niaoyun ~]# iptables -I INPUT -p tcp --dport 33 -j ACCEPT
#查看防火墻規(guī)則,發(fā)現(xiàn)33端口號已經(jīng)打開了。
[root@niaoyun ~]# iptables -nvL
Chain INPUT (policy ACCEPT 0 packets 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:33
295 23186 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATEDESTABLISHED
34 2310 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
2342 200K REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT 0 packets 0 bytes)
pkts bytes target prot opt in out source destination
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT 15 packets 1412 bytes)
pkts bytes target prot opt in out source destination
#iptables規(guī)則已經(jīng)更改,我們需要對規(guī)則進行保存。
[root@niaoyun ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
#保存完畢,重啟iptables服務。
[root@xiaoyun ~]# service iptables restart
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Flushing firewall rules: [ OK ]
iptables: Unloading modules: [ OK ]
iptables: Applying firewall rules: [ OK ]
#同樣,用此方法也可以打開web的默認端口80
宇眾網(wǎng)絡服務器銷售bjsuncity.com