Home > other >  EC2 Linux as a gateway
EC2 Linux as a gateway

Time:09-28

We have a lot of on the aws instance, and then there are some machines on the IBM softlayer, now want to connect them into a local area network (LAN), is a preliminary plan to use openVPN, let they are linked together, but have a few problems, ask everybody to help, thank you,

EC2 instance
Private IP 172.31.24.38
Public IP: 52.34.2.3 by NAT map to private IP, so see only eth0 on host a privateIP

Softlayer
Eth0: private IP 10.62.248.237
Eth1: public IP: 173.2.33.4

Then according to the article configuration openvpnhttp://aws.amazon.com/articles/0639686206802544

The result is
Softlayer ping EC2 private IP, no problem, but the EC2 ping softlayer private IP has a problem, I found, in EC2 up do traceroute routing does not go out virtual channel tun0, but the default route to the Internet to look for, (I'm on the console of EC2 has added a static route to the soft layer go private IP EC2 instance)

Did Daniel encountered similar problems, or have a better suggestion? Thank you

CodePudding user response:

You can see if EC2 conf file on this machine the problem of subnet mask

Or put the conf file also post

CodePudding user response:

It is recommended to use IPsec VPN connection, i.e., from softlayer direct connection to AWS IPsec VPN,
  •  Tags:  
  • AWS
  • Related