Removed data not related to WireGuard

This commit is contained in:
2026-10-25 21:09:20 +03:00
parent af81a7b73b
commit 4b23dccbe2
10 changed files with 9 additions and 184 deletions
@@ -1,22 +0,0 @@
$TTL 3600
@ IN SOA wireguard.serti.fun. admin.serti.fun. (
1 ; serial
3600 ; refresh
1800 ; retry
604800 ; expire
3600 ; minimum
)
; Name servers
@ IN NS wireguard.serti.fun.
; A records
wireguard IN A {{ wireguard_address }}
@ IN A {{ wireguard_remote_address }}
{% set apache2 = wireguard_clients | selectattr('name', 'equalto', 'apache2') | first %}
{% for sub in subdomains %}
{{ sub }} IN A {{ apache2.address }}
{% endfor %}
* IN A {{ wireguard_remote_address }}
@@ -1,8 +0,0 @@
deb http://mirror.yandex.ru/debian/ trixie main non-free-firmware
#deb-src http://mirror.yandex.ru/debian/ trixie main non-free-firmware
deb http://mirror.yandex.ru/debian-security trixie-security main non-free-firmware
#deb-src http://mirror.yandex.ru/debian-security trixie-security main non-free-firmware
deb http://mirror.yandex.ru/debian/ trixie-updates main non-free-firmware
#deb-src http://mirror.yandex.ru/debian/ trixie-updates main non-free-firmware
@@ -1,10 +0,0 @@
zone "serti.fun" {
type primary;
file "/etc/bind/db.serti.fun";
allow-transfer { none; };
allow-update { none; };
allow-query {
127.0.0.1;
{{ wireguard_network }};
};
};
@@ -1,47 +0,0 @@
#!/usr/sbin/nft -f
flush ruleset
table inet filter {
set home_net {
type ipv4_addr
flags interval
comment "Home subnet"
elements = {100.222.5.0/24}
}
set iot_net {
type ipv4_addr
flags interval
comment "iOT subnet"
elements = {100.222.6.0/24}
}
set vpn_net {
type ipv4_addr
flags interval
comment "iOT subnet"
elements = {100.222.11.0/24}
}
chain input {
type filter hook input priority filter; policy drop;
iif lo accept comment "Accept any localhost trafic"
ct state invalid drop comment "Drop invalid connection"
fib daddr . iif type != {local, broadcast, multicast} drop
ct state { established, related } accept
#meta l4proto { icmp, ipv6-icmp } accept comment "Accept ICMP"
tcp dport 22 accept comment "Allow ssh connection from home subnet"
ip saddr @vpn_net tcp dport 53 accept comment "Allow ssh connection from home subnet"
ip saddr @vpn_net udp dport 53 accept comment "Allow ssh connection from home subnet"
udp dport {{ wireguard_port }} accept comment "Wireguard port"
}
chain forward {
type filter hook forward priority filter;
}
chain output {
type filter hook output priority filter;
}
}