Skip to content

Let's quickly deploy a popular vpn service using ansible and authenticate with ldap, on CentOS or Ubuntu servers.๐Ÿ˜Ž

License

Notifications You must be signed in to change notification settings

aliasmee/ansible-role-strongswan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Ansible Role: strongSwan

Let's quickly deploy a popular vpn service using ansible and authenticate with ldap, on CentOS or Ubuntu servers.๐Ÿ˜Ž

Requirements

  • Root privileges;
  • If you want to enable ldap authentication, have radius and ldap services ready
    • aliasmee.freeradius
    • aliasmee.ldap [WIP]

Role Variables

The following variables are currently supported,The default value is in defaults/main.yml.

variables_name Description Default
strongswan_version strongSwan Version 5.7.2
vpn_liftid vpn server address and remote ID ipify_public_ip
dn_prefix ca cert info prefix C=cn, O=example
ca_dn_info ca cert info "{{dn_prefix}}, CN=VPN CA"
server_dn_info server cert info "{{dn_prefix}}"
client_dn_info client dn info "{{dn_prefix}}, CN=VPN Client"
ca_lifetime ca cert validity period (Unit: Day) 3650
server_lifetime server cert validity period (Unit: Day) 1200
client_dhcp_ip client connect vpn after allocated virtual ip 10.28.0.0/24
client_dhcp_dns client connect vpn agter allocated dns server 8.8.8.8
client_tunnel_range Only these flows accors this tunnel-> tunnel-slpiting 0.0.0.0/0
enabled_radius If you want to use ldap authentication, please set to True!!! no
radius_port radius server port 1812
radius_secret radius server connect secret testing123
radius_ip radius server address 127.0.0.1
view_certificate whether to view ca certificate content False

Dependencies

If you want to use ldap authentication, Please refer to the following instructions to access ldap.

About

Let's quickly deploy a popular vpn service using ansible and authenticate with ldap, on CentOS or Ubuntu servers.๐Ÿ˜Ž

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages