axsh / netjoin

A CLI to allows you to specify and build a VPN network layout. Using the CLI you can servers and clients to a database file which will later be used to set up the VPN network.
2 stars 0 forks source link

Scenario #1 : Installed Linux + OpenVPN (+ EasyRSA) - Dynamic IP #2

Open Mopster opened 9 years ago

Mopster commented 9 years ago

Linux CentOS6.6 server with pre-installed and configured OpenVPN + EasyRSA (see https://www.digitalocean.com/community/tutorials/how-to-setup-and-configure-an-openvpn-server-on-centos-6)

Add your server using ducttape servers linux add command, don't forget to set installed and configured to true

ducttape server linux add linux-server-1 --ip-address 192.168.122.100 --username root --password root --configured true --installed true
linux-server-1:
  :type: :linux
  :data:
    :configured: true
    :file_ca_crt: 
    :file_conf: 
    :file_crt: 
    :file_key: 
    :file_pem: 
    :installed: true
    :ip_address: 192.168.122.100
    :key_pem: 
    :mode: dynamic
    :network_ip:    
    :network_prefix:
    :password: root
    :username: root

Add client

Add your client using ducttape clients linux add command, don't forget to add --generate-key true

ducttape clients linux add linux-client-1 --ip-address 192.168.122.165 --server linux-server-1 --username root --password root --generate-key true
linux-client-1:
  :type: :linux
  :server: linux-server-1
  :status: :new
  :error: 
  :data:
    :generate_key: true
    :ip_address: 192.168.122.165
    :key_pem: 
    :password: root
    :username: root
    :vpn_ip_address: 

Attach client

Attach your client to the server using the command

ducttape clients attach
Attaching "linux-client-1"
  Checking OpenVPN installation
    Not installed, trying to install!
    Installed
  Generating VPN Certificate
    Success
  Check VPN Certificate
    Certificate file found
  Installing VPN Certificate
    Success
  Starting OpenVPN
    Success
  Attached!
Mopster commented 9 years ago

TODO