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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-7-20 11:07:23 | 显示全部楼层 |阅读模式
[root@ ~]# firewall-cmd --permanent --zone=internal --change-interface=enp0s3- d2 h6 y8 b! ^
The interface is under control of NetworkManager, setting zone to 'internal'.& T6 M* G' n5 `8 R* d
success, h8 t) S' v8 r/ D' W
[root@ ~]# firewall-cmd --reload
4 Q6 }4 P9 ~& h" E, G+ p: J; Dsuccess
4 O& m" ~( ?8 Q0 {- k4 }% S' M[root@ ~]# firewall-cmd  --zone=internal --list-all 6 L1 f$ }' x0 _4 N
internal (active)  b0 ~. j& n) ]8 m1 V) Z& q
  target: default6 h. c. a! I9 Q
  icmp-block-inversion: no9 w1 W" \, X$ Y
  interfaces: enp0s3
) [. ?8 N. X2 |1 f  sources: : W$ L  t+ b' Y$ r: i# p: U# A
  services: ssh mdns samba-client dhcpv6-client* I, L/ r! v8 r6 |6 |7 \
  ports: 123/udp 4952/udp
& M0 `& F4 S. O8 \. a  protocols:
& n' Z, B$ W/ r8 F( T  masquerade: no: |3 n) s$ ^# i
  forward-ports:
  n! S. A  U9 @  source-ports:
3 u: ~+ @5 H6 L/ }- M- F' W6 {  icmp-blocks: 1 S  p7 E9 j  m7 i/ O. Z0 y( _
  rich rules: # @( L$ |6 v# f6 @4 @( V: g
9 g  `' F: l! t, _: L, X9 m/ t
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-6-11 23:14 , Processed in 0.016932 second(s), 23 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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