linux查看nat日志,一种基于Linux的Nat日志记录方法与装置 Nat logging method and apparatus based on Linux...

摘要:

本发明涉及日志系统技术领域,尤其涉及一种基于Linux的Nat日志记录方法与装置,所述方法包括:A.数据报文到达网卡,并进入内核防火墙;B.数据报文到达第一检测点,判断是否需要做DNat记录,是则对所述数据报文做DNat记录,并通过传输接口记录后执行步骤C,否则直接执行步骤C;C.数据报文进入第二检测点,判断是否需要做SNat记录,是则对所述数据报文做SNat记录,并通过传输接口记录后执行步骤D,否则直接执行步骤D;D.内核防火墙将数据报文通过Netlink发送到用户层. The present invention relates to the field log system, particularly to a Linux-Nat based logging method and apparatus, the method comprising: A data packet reaches the card and enter the kernel firewall; B data packets reach the first checkpoint. to determine whether you need to do DNat record, it is then for the data packets do DNat records and perform steps C through the transmission interface records, or directly to step C;. C data packets into the second detection point, to justify do SNat record, it is then for the data packets do SNat records and perform steps D through the transmission interface records, or directly to step D;. D kernel firewall data packets sent to the user level by Netlink. 本发明减少了数据的拷贝,以及系统调用的次数,提高了日志系统性能,使系统更加快速,准确,足够处理大流量的Nat环境需求. The present invention reduces the copy of the data, and the number of system calls, log improve system performance, making the system more quickly and accurately enough to handle large flow Nat environmental needs.

展开

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值