root@BL-APP-1:/etc/rsyslog.d# ls
20-ufw.conf 50-default.conf bash.conf iptables.conf log_server.conf
root@BL-APP-1:/etc/rsyslog.d# cat iptables.conf
:msg,contains,"IPTABLES" /var/log/iptables.log

 

 


-A INPUT -p icmp -m icmp --icmp-type 8 -j ACCEPT
-A INPUT -p udp -j LOG --log-prefix "IPTABLES UDP-IN: "
-A INPUT -p tcp -j LOG --log-prefix "IPTABLES TCP-IN: "
-A INPUT -j LOG --log-prefix "IPTABLES PROTOCOL-X-IN: "

相关文章:

  • 2021-11-30
  • 2021-11-25
  • 2021-10-21
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-08-20
  • 2021-06-01
猜你喜欢
  • 2022-12-23
  • 2022-01-09
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
相关资源
相似解决方案