initial commit

This commit is contained in:
pyrschtjag committed 2026-10-02 21:34:01 +04:00
commit 13eace9ce9
219 files changed
+6918

No files matched your search

@@ -0,0 +1,24 @@
client
dev tap0
dev-type tap
proto tcp
remote 127.0.0.1 1195
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA256
cipher AES-256-GCM
tun-mtu 1500
mssfix 1300
verb 3
<ca>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tap0/ca.crt') }}
</ca>
<cert>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tap0/issued/ltrefilov.crt') }}
</cert>
<key>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tap0/private/ltrefilov.key') }}
</key>
@@ -0,0 +1,24 @@
client
dev tun0
proto tcp
remote 127.0.0.1 1194
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA256
cipher AES-256-GCM
verb 3
script-security 2
up /etc/openvpn/tun0-up.sh
down /etc/openvpn/tun0-down.sh
<ca>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tun0/ca.crt') }}
</ca>
<cert>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tun0/issued/mur89.crt') }}
</cert>
<key>
{{ lookup('file', hostvars["localhost"]["easyrsa_dir"] + '/pki/tun0/private/mur89.key') }}
</key>
@@ -0,0 +1,3 @@
#!/bin/sh
ip route del default dev tun0 table 201 2>/dev/null || true
ip rule del fwmark 0x2 table 201 2>/dev/null || true
@@ -0,0 +1,3 @@
#!/bin/sh
ip rule add fwmark 0x2 table 201 2>/dev/null || true
ip route add default dev tun0 table 201 2>/dev/null || true