Skip to content

Commit

Permalink
changed subnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Cielquan committed Aug 4, 2019
1 parent d66c4d3 commit a5bb6e6
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ services:
- "853:853"
networks:
dns_network0:
ipv4_address: 172.16.0.2
ipv4_address: 172.16.1.2
restart: always

# DoH server container
Expand All @@ -32,7 +32,7 @@ services:
- "8053"
networks:
dns_network0:
ipv4_address: 172.16.0.3
ipv4_address: 172.16.1.3
restart: always

# pihole container
Expand All @@ -57,7 +57,7 @@ services:
- "443"
networks:
dns_network0:
ipv4_address: 172.16.0.4
ipv4_address: 172.16.1.4
dns:
- 127.0.0.1
restart: always
Expand All @@ -77,7 +77,7 @@ services:
- "53"
networks:
dns_network0:
ipv4_address: 172.16.0.5
ipv4_address: 172.16.1.5
restart: always


Expand All @@ -89,5 +89,5 @@ networks:
encrypted: "true"
ipam:
config:
- subnet: 172.16.0.0/24
- subnet: 172.16.1.0/24
attachable: false
2 changes: 1 addition & 1 deletion doh-docker/configs/doh-server.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ path = "/dns-query"
# Upstream DNS resolver
# If multiple servers are specified, a random one will be chosen each time.
upstream = [
"172.16.0.4:53",
"172.16.1.4:53",
]

# Upstream timeout
Expand Down
2 changes: 1 addition & 1 deletion nginx-docker/configs/conf.d/stapling.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
ssl_stapling off;
#ssl_stapling_verify on;
#resolver 172.16.0.4:53;
#resolver 172.16.1.4:53;
4 changes: 2 additions & 2 deletions nginx-docker/configs/sites-enabled/upstream.conf
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
upstream dns-backend {
server 172.16.0.3:8053;
server 172.16.1.3:8053;
}


upstream pihole-frontend {
server 172.16.0.4:80;
server 172.16.1.4:80;
}
2 changes: 1 addition & 1 deletion nginx-docker/configs/snippets/ssl-params.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ssl_session_cache shared:SSL:10m;
ssl_session_tickets off; # Requires nginx >= 1.5.9
ssl_stapling on; # Requires nginx >= 1.3.7
ssl_stapling_verify on; # Requires nginx => 1.3.7
resolver 172.16.0.4 valid=300s;
resolver 172.16.1.4 valid=300s;
resolver_timeout 5s;
# Disable strict transport security for now. You can uncomment the following line if you understand the implications.
#add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload"; # scource:https://cipherli.st/
Expand Down
2 changes: 1 addition & 1 deletion nginx-docker/configs/streams/dns-over-tls.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
upstream dns-servers {
server 172.16.0.4:53;
server 172.16.1.4:53;
}


Expand Down
2 changes: 1 addition & 1 deletion pihole-docker/default.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
DNS1=172.16.0.5#53
DNS1=172.16.1.5#53
DNS2=no
2 changes: 1 addition & 1 deletion unbound-docker/configs/unbound.conf.d/custom.conf
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ server:

# Access restrictions for security reasons
access-control: 127.0.0.1/32 allow
access-control: 172.16.0.0/24 allow
access-control: 172.16.1.0/24 allow
remote-control:
control-enable: no

0 comments on commit a5bb6e6

Please sign in to comment.