找回密码
 注册
查看: 4362|回复: 0

firewalld防火墙制定internal从某端口进出

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-7-20 11:07:23 | 显示全部楼层 |阅读模式
[root@ ~]# firewall-cmd --permanent --zone=internal --change-interface=enp0s3; O% y1 y( J: K& r  b; Y' {8 I
The interface is under control of NetworkManager, setting zone to 'internal'.
! g8 {0 S- v2 s, y% ]' usuccess
' A8 B4 E2 K! b7 ]0 E+ \[root@ ~]# firewall-cmd --reload , S5 |0 W1 T& w
success
% \% h4 f- R7 y0 v[root@ ~]# firewall-cmd  --zone=internal --list-all
: [' C+ Q0 g! E: Y3 Hinternal (active)
& l3 z$ |5 q  ~: ^8 E  target: default
0 |6 n3 Q% G- b9 B  icmp-block-inversion: no
" J& U. E8 O$ B) q: V) `& j+ g$ `  interfaces: enp0s3" ]' n) j  k% {! @4 ~  W6 q7 ~
  sources:
4 {+ @$ v% _, m- P. s: a  services: ssh mdns samba-client dhcpv6-client
6 z- ]" J) M" t  ports: 123/udp 4952/udp4 p6 y5 j- M$ {5 |
  protocols:
5 Y9 K# U- c) P0 }( H! W  masquerade: no5 q3 H3 N. S8 w2 T' W
  forward-ports:
4 w1 z: R! ]4 i. h  source-ports:
( A3 \7 j" m# }, q  j  V  icmp-blocks: * J3 o& N$ N% T: R2 `2 d, d) e
  rich rules: % f! K5 k6 E* N5 q8 D3 x

9 w. |  i& I5 q' _
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:11 , Processed in 0.015067 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表