Compare commits
4 commits
a8b30402e3
...
483e94b8ae
| Author | SHA1 | Date | |
|---|---|---|---|
| 483e94b8ae | |||
| cce4b5d327 | |||
| cf72ca62ff | |||
| 15d282cfce |
5 changed files with 12 additions and 9 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
[defaults]
|
[defaults]
|
||||||
ask_vault_pass = True
|
ask_vault_pass = True
|
||||||
|
inventory = inventory.yml
|
||||||
|
|
||||||
[privilege_escalation]
|
[privilege_escalation]
|
||||||
become_ask_pass = True
|
become_ask_pass = True
|
||||||
|
|
|
||||||
4
inventory.yml
Normal file
4
inventory.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
bookworm:
|
||||||
|
hosts:
|
||||||
|
fudiggity:
|
||||||
|
ansible_connection: local
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
- name: Provision debian server
|
- name: Provision debian server
|
||||||
hosts: localhost
|
hosts: bookworm
|
||||||
pre_tasks:
|
pre_tasks:
|
||||||
- name: Install shared packages
|
- name: Install shared packages
|
||||||
become: true
|
become: true
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,10 @@
|
||||||
#DNSOverTLS=no
|
#DNSOverTLS=no
|
||||||
#MulticastDNS=yes
|
#MulticastDNS=yes
|
||||||
#LLMNR=yes
|
#LLMNR=yes
|
||||||
#Cache=yes
|
Cache=yes
|
||||||
#CacheFromLocalhost=no
|
CacheFromLocalhost=yes
|
||||||
#DNSStubListener=yes
|
DNSStubListener=yes
|
||||||
DNSStubListenerExtra={{ vpn_listen_address }}
|
DNSStubListenerExtra={{ vpn_listen_address }}
|
||||||
DNSStubListenerExtra={{ vpn_media_listen_address }}
|
DNSStubListenerExtra={{ vpn_media_listen_address }}
|
||||||
#ReadEtcHosts=yes
|
ReadEtcHosts=yes
|
||||||
#ResolveUnicastSingleLabel=no
|
#ResolveUnicastSingleLabel=no
|
||||||
|
|
|
||||||
|
|
@ -52,11 +52,9 @@ table ip filter {
|
||||||
chain vpn_chain {
|
chain vpn_chain {
|
||||||
meta l4proto { tcp, udp } th dport 53 ip saddr . ip daddr @vpn_set accept comment "DNS"
|
meta l4proto { tcp, udp } th dport 53 ip saddr . ip daddr @vpn_set accept comment "DNS"
|
||||||
|
|
||||||
tcp dport { {{ http_port }}, {{ https_port }} } ip saddr . ip daddr @vpn_set accept comment "HTTP/HTTPS" # TODO: remove?
|
|
||||||
|
|
||||||
tcp dport 80 ip saddr {{ vpn_subnet }} ip daddr {{ transmission_nginx_ip }} accept comment "Transmission Web"
|
tcp dport 80 ip saddr {{ vpn_subnet }} ip daddr {{ transmission_nginx_ip }} accept comment "Transmission Web"
|
||||||
|
|
||||||
tcp dport { 80, 443 } ip saddr {{ vpn_subnet }} ip daddr {{ syncthing_nginx_ip }} accept comment "Syncthing Web"
|
tcp dport 80 ip saddr {{ vpn_subnet }} ip daddr {{ syncthing_nginx_ip }} accept comment "Syncthing Web"
|
||||||
tcp dport {{ syncthing_protocol_port }} ip saddr {{ vpn_subnet }} ip daddr {{ syncthing_app_ip }} accept comment "Syncthing protocol"
|
tcp dport {{ syncthing_protocol_port }} ip saddr {{ vpn_subnet }} ip daddr {{ syncthing_app_ip }} accept comment "Syncthing protocol"
|
||||||
|
|
||||||
tcp dport 80 ip saddr {{ vpn_subnet }} ip daddr {{ radicale_nginx_ip }} accept comment "Radicale"
|
tcp dport 80 ip saddr {{ vpn_subnet }} ip daddr {{ radicale_nginx_ip }} accept comment "Radicale"
|
||||||
|
|
@ -75,7 +73,7 @@ table ip filter {
|
||||||
chain media_vpn_chain {
|
chain media_vpn_chain {
|
||||||
meta l4proto { tcp, udp } th dport 53 ip saddr . ip daddr @vpn_media_set accept comment "DNS"
|
meta l4proto { tcp, udp } th dport 53 ip saddr . ip daddr @vpn_media_set accept comment "DNS"
|
||||||
|
|
||||||
tcp dport { 80, 443 } ip saddr {{ vpn_media_subnet }} ip daddr {{ jellyfin_nginx_ip }} accept comment "Jellyfin"
|
tcp dport 80 ip saddr {{ vpn_media_subnet }} ip daddr {{ jellyfin_nginx_ip }} accept comment "Jellyfin"
|
||||||
}
|
}
|
||||||
|
|
||||||
# docker's user configurable forward hook chain
|
# docker's user configurable forward hook chain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue