Skip to content

maverick12210/AWSEC2CiscoVPN

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CiscoIPsecVPNSetup

Script to quick set up Cisco IPsec VPN Server on Ubuntu inside Amazon AWS EC2 based on raccoon, iptables and Ubuntu.

Set up VPN, 6 steps:

1 set up Amazon EC2 virtual machine

  • Sign in/up Amazon EC2 service, and choose the region that is nearest from your location. (e.g. if you are in China, maybe Singapore is a good choice.)
  • Launch a instance of Ubuntu Server 14.04 LTS
  • Inbound policy: open UDP port 500 ans UDP port 4500 (important)

2 Get source

$ git clone https://github.com/yanlookwatchsee/CiscoIPsecVPNSetup.git
or use this 
$ git clone https://github.com/maverick12210/AWSEC2CiscoVPN.git

3 Run setup script

$ sudo ./setupVPN.sh

4 Add identity and pre-shared key

$ sudo ./addIdentity

5 Add user and password

$ sudo ./vpnuser add

6 Check Cisco IPsec client on your device, if not, install it. (IOS and OSX have built-in Cisco Ipsec client) And connect to the public IP of the server from your device!

Tips Normally, you need to provide user account (vpnuser name), user password, identity (in IOS, it is called as group name)" and pre-shared key (PSK). Note that if you have to choose authentication method, choose PSK for authentication.


For technical details, pelase refer to the scripts. It is really straightforward.


References

*How to build a remote user access VPN with Racoon

*Simple Configuration Sample of IPsec/Racoon

*Chapter 7. IPSEC: secure IP over the Internet

*racoon(8) - Linux man page

*racoon mode_cfg section

About

Script to setup a VPN Server on Ubuntu on Amazon AWS EC2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages