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

前端之家收集整理的这篇文章主要介绍了Linux中的KLIPS和Netkey IPSEC堆栈之间的区别前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我知道两者都是 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的内核.

原文链接:https://www.f2er.com/linux/401321.html

猜你在找的Linux相关文章