在服务器和客户端配置中,我都设置了:
cipher none
auth none
遵循此建议,我还使用UDP端口1195。
启动服务器和客户端时,出现以下警告:
Tue Dec 4 12:58:25 2018 ******* WARNING *******: '--cipher none' was specified. This means NO encryption will be performed and tunnelled data WILL be transmitted in clear text over the network! PLEASE DO RECONSIDER THIS SETTING!
Tue Dec 4 12:58:25 2018 ******* WARNING *******: '--auth none' was specified. This means no authentication will be performed on received packets, meaning you CANNOT trust that the data received by the remote side have NOT been manipulated. PLEASE DO RECONSIDER THIS SETTING!
...这很好,但openvpn仍在使用加密。我知道这一点,因为:
1)当客户端连接时,我在服务器端收到以下消息:
Tue Dec 4 12:59:59 2018 client_abc/10.20.73.2:36752 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
Tue Dec 4 12:59:59 2018 client_abc/10.20.73.2:36752 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key
2)我两面都承受了巨大的CPU负载
3)我在Wireshark中看到数据已加密
禁用加密还需要什么?
1
您能否分享使用情况?当您尝试禁用任何身份验证和加密时,openvpn的使用可能会令人怀疑...可能有更好的方法来封装流量(例如ipip,gre ...)
—
Kamil J
我只是做实验,试图找出加密对CPU负载有什么影响
—
user2449761