mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-07 15:43:54 +02:00
initial commit
This commit is contained in:
parent
068566ecd0
commit
e8993b06dd
4 changed files with 25 additions and 0 deletions
3
ansible.cfg
Normal file
3
ansible.cfg
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[defaults]
|
||||||
|
inventory = inventory
|
||||||
|
remote_user = root
|
2
inventory
Normal file
2
inventory
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[vpn]
|
||||||
|
104.236.56.30
|
14
roles/common/tasks/main.yml
Normal file
14
roles/common/tasks/main.yml
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
- name: Install StrongSwan
|
||||||
|
apt: name=strongswan state=latest update_cache=yes
|
||||||
|
|
||||||
|
- name: Modify sysctl values to route traffic appropriately
|
||||||
|
sysctl:
|
||||||
|
- name=net.ipv4.ip_forwarding value=1
|
||||||
|
- name=net.ipv4.conf.all.accept_redirects value=0
|
||||||
|
- name=net.ipv4.conf.all.send_redirects value=0
|
||||||
|
|
||||||
|
- name: Configure IPTables to route traffic appropriately
|
||||||
|
iptables:
|
||||||
|
- table=nat chain=POSTROUTING src=10.0.0.0/24 dst=10.0.0.0/24 jump=MASQUERADE
|
||||||
|
|
6
vpn.yml
Normal file
6
vpn.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- name: Install StrongSwan and its dependencies
|
||||||
|
hosts: vpn
|
||||||
|
roles:
|
||||||
|
- common
|
Loading…
Add table
Reference in a new issue