Secure proton mail bridge networks
This commit is contained in:
parent
dce0519884
commit
dc56a2336b
3 changed files with 10 additions and 1 deletions
|
@ -20,6 +20,7 @@ services:
|
||||||
container_name: nextcloud
|
container_name: nextcloud
|
||||||
networks:
|
networks:
|
||||||
- proxy
|
- proxy
|
||||||
|
- protonmail
|
||||||
- internal
|
- internal
|
||||||
depends_on:
|
depends_on:
|
||||||
- db
|
- db
|
||||||
|
@ -65,3 +66,5 @@ networks:
|
||||||
internal:
|
internal:
|
||||||
proxy:
|
proxy:
|
||||||
external: true
|
external: true
|
||||||
|
protonmail:
|
||||||
|
external: true
|
||||||
|
|
1
firewall
1
firewall
|
@ -82,5 +82,6 @@ iptables -A FORWARD -p tcp --tcp-flags SYN,ACK,FIN,RST RST -m limit --limit 1/s
|
||||||
|
|
||||||
# Allow all from private network and docker network
|
# Allow all from private network and docker network
|
||||||
iptables -A INPUT -j ACCEPT -d 172.17.0.0/16
|
iptables -A INPUT -j ACCEPT -d 172.17.0.0/16
|
||||||
|
iptables -A OUTPUT -j ACCEPT -d 172.17.0.0/16
|
||||||
iptables -A INPUT -j ACCEPT -d 192.168.1.0/24
|
iptables -A INPUT -j ACCEPT -d 192.168.1.0/24
|
||||||
iptables -A OUTPUT -j ACCEPT -d 192.168.1.0/24
|
iptables -A OUTPUT -j ACCEPT -d 192.168.1.0/24
|
||||||
|
|
|
@ -5,9 +5,14 @@ services:
|
||||||
image: shenxn/protonmail-bridge
|
image: shenxn/protonmail-bridge
|
||||||
restart: always
|
restart: always
|
||||||
container_name: protonmail-bridge
|
container_name: protonmail-bridge
|
||||||
network_mode: host
|
networks:
|
||||||
|
- protonmail
|
||||||
volumes:
|
volumes:
|
||||||
- protonmail:/root
|
- protonmail:/root
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
protonmail:
|
protonmail:
|
||||||
|
|
||||||
|
networks:
|
||||||
|
protonmail:
|
||||||
|
external: true
|
||||||
|
|
Loading…
Reference in a new issue