Bo's Oracle Station

查看: 2882|回复: 1

课程第24次:2020-03-25星期三

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2020-3-25 20:34:48 | 显示全部楼层 |阅读模式
1. 两个interface之间的路由(ROUTING)
/etc/sysctl.conf

  1. net.ipv4.ip_forward=1
复制代码

2. 富规则



  1. firewall-cmd   --permanent --remove-rich-rule='rule family="ipv4" source address="192.168.1.1/24" port port="5500" protocol="tcp" drop'
复制代码
  1. [root@server4 ~]# firewall-cmd  --list-all
  2. public (active)
  3.   target: default
  4.   icmp-block-inversion: no
  5.   interfaces: ens33 ens38 ens39 team0
  6.   sources:
  7.   services: cockpit dhcpv6-client dns mountd nfs rpc-bind smtp ssh
  8.   ports: 1521/tcp 5500/tcp
  9.   protocols:
  10.   masquerade: no
  11.   forward-ports:
  12.   source-ports:
  13.   icmp-blocks:
  14.   rich rules:
  15.         rule family="ipv4" source address="192.168.0.54" accept
  16.         rule family="ipv4" source address="192.168.0.154" accept
  17.         rule family="ipv4" source address="192.168.0.204" accept
  18.         rule family="ipv4" source address="192.168.0.104" accept
  19.         rule family="ipv4" source address="192.168.0.105" accept
  20.         rule family="ipv4" source address="192.168.0.184" accept
  21.         rule family="ipv4" source address="192.168.0.185" accept
  22.         rule family="ipv4" source address="172.31.118.104" accept
  23.         rule family="ipv4" source address="172.31.118.105" accept
  24.         rule family="ipv4" source address="127.0.0.1" accept
  25.         rule family="ipv4" source address="169.254.0.0/16" accept
  26.         rule family="ipv4" source address="192.168.1.1/24" port port="5500" protocol="tcp" log prefix="ORACLE RAC 12c EM" limit value="2/h" drop
  27.         rule family="ipv4" source address="192.168.1.1/24" service name="ssh" audit limit value="1/m" drop
复制代码
Mar 25 23:00:00 server4 systemd[1]: Starting system activity accounting tool...
Mar 25 23:00:02 server4 systemd[1]: Started system activity accounting tool.
Mar 25 23:00:03 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=24096 DF PROTO=TCP SPT=57452 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0
Mar 25 23:00:03 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=20958 DF PROTO=TCP SPT=57454 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0
Mar 25 23:00:11 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=20959 DF PROTO=TCP SPT=57454 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0
Mar 25 23:00:11 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=24097 DF PROTO=TCP SPT=57452 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0






Mar 25 23:00:28 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=24098 DF PROTO=TCP SPT=57452 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0
Mar 25 23:00:28 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=20960 DF PROTO=TCP SPT=57454 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0






Mar 25 23:01:00 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=20961 DF PROTO=TCP SPT=57454 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0
Mar 25 23:01:00 server4 kernel: ORACLE RAC 12c EMIN=ens33 OUT= MAC=00:0c:29:e5:9e:b7:00:0c:29:81:5b:56:08:00 SRC=192.168.1.133 DST=192.168.0.104 LEN=60 TOS=0x00 PREC=0x00 TTL=63 ID=24099 DF PROTO=TCP SPT=57452 DPT=5500 WINDOW=29200 RES=0x00 SYN URGP=0





MY133T-2020-03-25-23-02-18.png


CLASSROOM-2020-03-25-23-02-08.png

回复

使用道具 举报

7

主题

29

帖子

117

积分

注册会员

Rank: 2

积分
117
发表于 2020-3-25 21:26:37 | 显示全部楼层
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-12-4 01:35 , Processed in 0.045947 second(s), 27 queries .

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