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

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

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-7-20 11:07:23 | 显示全部楼层 |阅读模式
[root@ ~]# firewall-cmd --permanent --zone=internal --change-interface=enp0s3
! Y, Q* ?$ r8 a( ~/ J( f1 J4 w9 ~The interface is under control of NetworkManager, setting zone to 'internal'.
5 c7 T: c& \% Y2 S% n8 M( N1 rsuccess# s" n, B' E3 ^4 k1 Q( c- `8 t
[root@ ~]# firewall-cmd --reload $ _( u9 n8 |3 N4 \( y  L
success
" ?% P7 J/ A1 ~' Q' x0 G( i[root@ ~]# firewall-cmd  --zone=internal --list-all 6 Y! _9 C$ ?  A+ J  l
internal (active)
7 E! X, l+ N) r: a" l- r# Z  target: default2 M1 e6 Y3 |- y) N* [
  icmp-block-inversion: no
- ]3 n% y5 }1 t  A8 L" i  interfaces: enp0s3* P' [! Y4 X4 a% K5 a4 w% r
  sources:
- X# P, D- Y% `9 x" X6 f/ y  services: ssh mdns samba-client dhcpv6-client# k; {( @- O; e# }6 a
  ports: 123/udp 4952/udp
7 X: h7 ^# `4 U7 z0 g  protocols: 6 i- |9 j. f* N: ]$ U
  masquerade: no  I# ?" _' h+ A4 `9 e& f* L5 @6 G6 W
  forward-ports:   j' |( h8 ?/ |- c
  source-ports:
3 n; ?1 r0 H# v6 j" H  icmp-blocks: . Q$ S$ p" q$ [, z0 s# u
  rich rules:
6 I. }# I, P  K8 b/ ] ) [+ y2 X- x# q( ~
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

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

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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