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 #3 : Linux without OpenVPN server installed #4

Open Mopster opened 9 years ago

Mopster commented 9 years ago

Linux CentOS6.6 server

Add your server using ducttape servers linux add command

ducttape servers linux add linux-server1 --ip-address 192.168.122.100 --username root --password root --network 10.8.0.0/24 --file-ca-crt keys/ca.crt --file-conf keys/server.conf --file-crt keys/server.crt --file-key keys/server.key --file-pem keys/server.pem
linux-server1:
  :type: :linux
  :data:
    :configured: 
    :file_ca_crt: keys/ca.crt
    :file_conf: keys/server.conf
    :file_crt: keys/server.crt
    :file_key: keys/server.key
    :file_pem: keys/server.pem
    :installed: 
    :ip_address: 192.168.122.100
    :key_pem: 
    :mode: dynamic
    :network: 10.8.0.0/24
    :password: root
    :username: root

The --network option is informational and is not being used.

Install server

Install and configure the server with OpenVPN

ducttape servers linux install linux-server1
OpenVPN installed!
OpenVPN configured!
Restarting OpenVPN

Add client

Add your client using ducttape clients linux add command, don't forget to add your openvpn client (*.ovpn) key file

bin/ducttape clients linux add linux-client1 --server linux-server1 --ip-address 192.168.122.165 --username root --password root 
linux-client1:
  :type: :linux
  :server: linux-server1
  :status: :new
  :error: 
  :data:
    :generate_key: false
    :ip_address: 192.168.122.165
    :key_pem: 
    :password: root
    :username: root
    :vpn_ip_address: 
    :file_key: keys/linux-client-1.ovpn

Attach client

Attach your client to the server using the command

ducttape clients attach
Attaching "linux-client1"
  Checking OpenVPN installation
    Installed
  Check VPN Certificate
    Certificate file found
  Installing VPN Certificate
    Success
  Starting OpenVPN
    Success
  Attached!
Mopster commented 9 years ago

TODO