Tuesday, January 5, 2021

AWS - Install and Configure OpenVPN

 Install and configure AWS Open VPN

1. Go to AWS dashboard
2. Go to Marketplace and launch OpenVPN Access Server

Verify that it comes under free tier.

3. Login to your OpenVPN as openvpnas using putty/ssh/MobaX
c:> cd c:/awskeys
$ ssh -i "mykey.pem" openvpnas@55.25.22.120
- Type 'yes' for agreement
- Press enter enter - Default


Please specify the network interface and IP address to be
used by the Admin Web UI:
(1) all interfaces: 0.0.0.0
(2) eth0: 192.168.10.120
Please enter the option number from the list above (1-2).
> Press Enter for default [2]:


Please specify the port number for the Admin Web UI.
> Press ENTER for default [943]:

Please specify the TCP port number for the OpenVPN Daemon
> Press ENTER for default [443]:

Should client traffic be routed by default through the VPN?
> Press ENTER for default [no]:

Should client DNS traffic be routed by default through the VPN?
> Press ENTER for default [no]:

Use local authentication via internal DB?
> Press ENTER for default [yes]:

Private subnets detected: ['192.168.0.0/16']

Should private subnets be accessible to clients by default?
> Press ENTER for EC2 default [yes]:

To initially login to the Admin Web UI, you must use a
username and password that successfully authenticates you
with the host UNIX system (you can later modify the settings
so that RADIUS or LDAP is used for authentication instead).

You can login to the Admin Web UI as "openvpn" or specify
a different user account to use for this purpose.

Do you wish to login to the Admin UI as "openvpn"?
> Press ENTER for default [yes]:

> Please specify your OpenVPN-AS license key (or leave blank to specify later):

You can now continue configuring OpenVPN Access Server by
directing your Web browser to this URL:

https://55.25.22.120:943/admin
Login as "openvpn" with the same password used to authenticate
to this UNIX host.

During normal operation, OpenVPN AS can be accessed via these URLs:
Admin  UI: https://55.25.22.120:943/admin
Client UI: https://55.25.22.120:943/


openvpnas@openvpnas2:~$ sudo su -
root@openvpnas2:/home/openvpnas# passwd  openvpn

No comments:

Post a Comment

Git branch show detached HEAD

  Git branch show detached HEAD 1. List your branch $ git branch * (HEAD detached at f219e03)   00 2. Run re-set hard $ git reset --hard 3. ...