User Tools

Site Tools


Writing /app/www/public/data/meta/databaseandnetworkmanagement/openvpn3.meta failed
databaseandnetworkmanagement:openvpn3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
databaseandnetworkmanagement:openvpn3 [2021/05/26 17:48] 10.91.120.28databaseandnetworkmanagement:openvpn3 [2021/06/25 10:09] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +=== openvpn3 install ===
  
 +A playbook exists in https://bitbucket.org/errigal/server-configuration/src/master/openvpn3.yml
 +
 +Example use:
 +<code>ansible-playbook openvpn3.yml -i ../env-configuration/telnet/hosts.ini -e action=install</code>
 +
 +====  Openvpn3 routing ====
 +
 +Example IP rules added for telnet, modify and run them before establishing a connection so that your session persists and other internal connections stay intact:
 +
 +== apps1 ==
 +sudo ip rule add table 128 from 10.91.140.138; sudo ip route add table 128 to 10.91.140.0/24 dev ens5; sudo ip route add table 128 default via 10.91.140.1;
 +
 +== lb ==
 +sudo ip rule add table 128 from 10.91.140.212; sudo ip route add table 128 to 10.91.140.0/24 dev ens5; sudo ip route add table 128 default via 10.91.140.1;
 +
 +== apps2 ==
 +sudo  ip rule add table 128 from 10.91.140.205; sudo ip route add table 128 to 10.91.140.0/24 dev ens5; sudo ip route add table 128 default via 10.91.140.1;
 +
 +==== Starting a Session ====
 +<code> openvpn3 session-start --config '{{ scotty_home_dir }}/Documents/PR111 Freedom plaza-v.3.ovpn' </code>
 +
 +==== Stopping a Session ====
 +<code> openvpn3 session-manage --config '{{ scotty_home_dir }}/Documents/PR111 Freedom plaza-v.3.ovpn' --disconnect</code>