mirror of
https://github.com/itdoginfo/ansible-openwrt-hirkn.git
synced 2025-12-17 04:24:31 +05:00
add playbook and templates
This commit is contained in:
3
templates/openwrt-30-rknroute.j2
Normal file
3
templates/openwrt-30-rknroute.j2
Normal file
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
ip route add table vpn default dev wg0
|
||||
5
templates/openwrt-dnscrypt-proxy.j2
Normal file
5
templates/openwrt-dnscrypt-proxy.j2
Normal file
@@ -0,0 +1,5 @@
|
||||
config dnscrypt-proxy ns1
|
||||
option address '127.0.0.1'
|
||||
option port '5353'
|
||||
option resolver 'yandex'
|
||||
|
||||
13
templates/openwrt-hirkn.j2
Normal file
13
templates/openwrt-hirkn.j2
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
dir=/tmp/lst
|
||||
|
||||
mkdir -p $dir
|
||||
|
||||
echo "Run download lists"
|
||||
curl -z $dir/subnet.lst https://antifilter.download/list/subnet.lst --output $dir/subnet.lst
|
||||
|
||||
curl -z $dir/ipresolve.lst https://antifilter.download/list/ipsum.lst --output $dir/ipsum.lst
|
||||
|
||||
echo "Firewall restart"
|
||||
/etc/init.d/firewall restart
|
||||
Reference in New Issue
Block a user