syslog默认端口_什么是Syslog默认端口和安全端口以及如何配置它?

syslog默认端口

syslog默认端口

syslog is a standardized protocol used to send Logs and events to the Log server. syslog can be used in different platforms like Linux, Windows, Unix, Applications etc. In this tutorial we will look the default syslog port and secure syslog port and some examples about how to change this port number.

syslog是用于将日志和事件发送到日志服务器的标准化协议。 syslog可以在Linux,Windows,Unix,Applications等不同平台上使用。在本教程中,我们将查看默认的syslog端口和安全的syslog端口,以及有关如何更改此端口号的一些示例。

默认端口号UDP 514 (Default Port Number UDP 514)

syslog is a protocol which is defined in RFC 5424 and RFC 3164 . The port number is defined as 514 with UDP protocol for syslog services. There is also a recommendation about source port  to be UDP 514 too.  This port number also registered by IANA to the syslog protocol which means other applications can not use 514 as official default port.

syslog是在RFC 5424和RFC 3164中定义的协议。 用于syslog服务的端口号使用UDP协议定义为514 。 也有关于源端口的建议也是UDP 514 。 该端口号也由IANA注册到syslog协议,这意味着其他应用程序不能使用514作为官方默认端口。

替代和可靠的端口号TCP 514 (Alternative and Reliable Port Number TCP 514)

As stated previously the default port of syslog is UDP 514 as we know UDP is unreliable protocol according to TCP. syslog can be used for important security logs which can not tolerate log loss. We can use TCP which is far more reliable than UDP with the same port number 514.

如前所述,系统日志的默认端口为UDP 514因为根据TCP,我们知道UDP是不可靠的协议。 syslog可用于不能容忍日志丢失的重要安全日志。 我们可以使用TCP ,它比具有相同端口号514的UDP可靠得多。

安全加密的端口号TCP 6514 (Secure Encrypted Port Number TCP 6514)

In some cases strict security standards like PCI-DSS and HIPAA needs the logs to be securely transferred. Also the security policy of the company may requires also this type of the transport security. In this case we can use TCP 6514 port. This is not an official port but its de facto standard of the implementation.

在某些情况下,诸如PCI-DSS和HIPAA之类的严格安全标准需要安全地传输日志。 公司的安全策略也可能需要这种类型的运输安全性。 在这种情况下,我们可以使用TCP 6514端口。 这不是官方端口,而是其实际执行标准。

思科设置​​Syslog服务器端口号 (Cisco Set Syslog Server Port Number)

As an example we can collect syslogs in Cisco devices with the following commands and configuration.

例如,我们可以使用以下命令和配置来收集Cisco设备中的系统日志。

LEARN MORE  Cockpit Easy and Web Based Administration of Linux
了解更多Cockpit Easy和基于WebLinux管理

First we need to enable logging and start syslog service with the following command.

首先,我们需要使用以下命令启用日志记录并启动syslog服务。

sw(config)# logging enable

then we will specify the log server IP address. But we can also specify the protocol and port number explicitly. This is not mandatory and if not specified the default udp/514 will be set.

然后我们将指定日志服务器的IP地址。 但是我们也可以显式指定协议和端口号。 这不是强制性的,如果未指定,将设置默认的udp/514

sw(config)# logging host 192.168.10.10 tcp/514

翻译自: https://www.poftut.com/what-is-syslog-default-port-and-secure-port-and-how-to-configure-it/

syslog默认端口

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值