我目前正试图将流量从一个 Linux 机器(用于测试目的的本地 VM)路由到我的 Linux (Debian) 服务器,以使用 NAT。我被告知使用 IPSec 将我的数据发送到上述服务器,并决定使用 Openswan 来促进这种情况。我已经成功安装了所需的软件包,但作为一个业余爱好者,我很难理解必须在ipsec.conf. 这是 Debian wiki 上的一个例子的摘录(包括我的评论文本):
left=10.15.109.36 #Is this the public (internet) IP?
leftsubnet=192.168.50.0/24 #How do I find this one and whats the "/24"?
leftsourceip=192.168.50.X #What is it and can it be deduced from the above?
leftnexthop=10.15.109.5 #I think this should be my gateway, right?
leftid=@vpngw1 #I assume this is something I can define myself?
我意识到这可能是一个相当笼统的问题,但我可以向您保证,我对这个主题进行了大量挖掘,但找不到全面的解释。