Updating DarkNet VPN setup
This commit is contained in:
6
roles/ShadowArch/files/netctl-tun
Normal file
6
roles/ShadowArch/files/netctl-tun
Normal file
@@ -0,0 +1,6 @@
|
||||
Description='tuntap connection'
|
||||
Interface=tun0
|
||||
Connection=tuntap
|
||||
Mode='tap'
|
||||
User='nobody'
|
||||
Group='nobody'
|
@@ -21,6 +21,20 @@
|
||||
src: netctl-tap.j2
|
||||
dest: "/etc/netctl/{{ ipinterface }}"
|
||||
|
||||
- name: Bridge ArchLinux network config
|
||||
become: yes
|
||||
when: tap and not static
|
||||
template:
|
||||
src: netctl-bond.j2
|
||||
dest: "/etc/netctl/br0"
|
||||
|
||||
- name: Tunnel ArchLinux network config
|
||||
become: yes
|
||||
when: tap and not static
|
||||
copy:
|
||||
src: netctl-tun
|
||||
dest: "/etc/netctl/tun0"
|
||||
|
||||
- name: Dynamic ArchLinux network config
|
||||
become: yes
|
||||
when: not static and not tap
|
||||
|
@@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
- name: Set Bash MOTD
|
||||
- name: Set Bash MOTD
|
||||
become: yes
|
||||
copy:
|
||||
src: "motd/{{ inventory_hostname }}"
|
||||
|
5
roles/ShadowArch/templates/netctl-bond.j2
Normal file
5
roles/ShadowArch/templates/netctl-bond.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
Description="Bridge connection"
|
||||
Interface=br0
|
||||
Connection=bridge
|
||||
BindsToInterfaces=({{ ipinterface }} tun0)
|
||||
IP=dhcp
|
Reference in New Issue
Block a user