加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

Linux中的KLIPS和Netkey IPSEC堆栈之间的区别

发布时间:2020-12-13 18:13:20 所属栏目:Linux 来源:网络整理
导读:我知道两者都是 Linux内核中的IPSEC堆栈,并且KLIPS较旧,Netkey更新,但除此之外,我没有找到其他文档.我想知道他们之间真正的技术差异.有没有人可以告诉我差异或分享一些文件来源? 任何帮助将不胜感激. 解决方法 从由shdobxr链接的 article,关于KLIPS和Netkey
我知道两者都是 Linux内核中的IPSEC堆栈,并且KLIPS较旧,Netkey更新,但除此之外,我没有找到其他文档.我想知道他们之间真正的技术差异.有没有人可以告诉我差异或分享一些文件来源?

任何帮助将不胜感激.

解决方法

从由shdobxr链接的 article,关于KLIPS和Netkey的区别的最相关部分似乎如下:

When you apply firewall (iptables) rules,KLIPS is the easier case,
because with KLIPS,you can identify IPsec traffic,as this traffic
goes through ipsecX interfaces. You apply iptables rules to these
interfaces in the same way you apply rules to other network interfaces
(such as eth0).

When using NETKEY,applying firewall (iptables) rules is much more
complex,as the traffic does not flow through ipsecX interfaces; one
solution can be marking the packets in the Linux kernel with iptables
(with a setmark iptables rule). This mark is a member of the kernel
socket buffer structure (struct sk_buff,from the Linux kernel
networking code); decryption of the packet does not modify that mark.

在2014年写作,所有linux发行版现在都应该支持一个支持KLIPS和Netkey的内核.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读