
如何从我的 ubuntu 笔记本电脑设置到 Amazon EC2 实例的 IPSec 连接?我尝试使用弹性 IP 和 VPC 以及以下 openswan 配置进行设置,但它不起作用。
conn 主机到主机
left=%defaultroute leftsubnet=EC2PRIVATEIP/32 # Local netmask leftid=ELASTICIP leftrsasigkey= connaddrfamily=ipv4 right=1laptopip # Remote IP address rightid=laptopip rightrsasigkey= ike=aes128 # IKE algorithms (AES cipher) esp=aes128 # ESP algorithns (AES cipher) auto=add pfs=yes forceencaps=yes type=tunnel