Hello forum!
I’m helping a friend setup a node at his place. He’s in uni, and cannot open ports, which is why he already has a VPN subscription with AirVPN.
So far so good.
I’ve created, authenticated and validated a node for him at home, and am trying to adapt my docker-compose.yaml
file to fit the VPN. Here’s where I run into issues.
- The Storagenode part of my dockerfile works fine on my home network (of course, with the
address
andports
section changed) - The
gluetun
part of my setup works standalone. I verify that the port is open usingport-checker
tool (see bottom of dockerfile) - When running the node together with the VPN solution, I keep getting either timeouts or denies, which I don’t understand.
docker-compose.yaml ↓
version: '3.3'
services:
gluetun:
image: 'qmcgaw/gluetun:latest'
container_name: 'gluetun'
stdin_open: true
tty: true
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=custom
- OPENVPN_CUSTOM_CONFIG=/gluetun/custom.conf
- FIREWALL_VPN_INPUT_PORTS=17479
ports:
- '17479:28967/tcp'
- '17479:28967/udp'
volumes:
- './vpn/custom.conf:/gluetun/custom.conf:ro'
- './gluetun:/gluetun'
restart: unless-stopped
devices:
- /dev/net/tun
storagenode:
image: 'storjlabs/storagenode:latest'
restart: unless-stopped
environment:
- WALLET=0xWalletAddress
- EMAIL=abc@mail.com
- 'ADDRESS=185.156.xxx.xxx:17479'
- 'STORAGE=500GB'
volumes:
- './IdentityBackup:/app/identity'
- './Data:/app/config'
container_name: storagenode
network_mode: 'service:gluetun'
Verify port is open:
sudo docker exec -it gluetun /bin/sh
wget -qO port-checker https://github.com/qdm12/port-checker/releases/download/v0.3.0/port-hecker_0.3.0_linux_amd64
chmod +x port-checker
./port-checker -port 17479
# and then visit the IP from docker-compose file on requested pord