There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

Looking to chain multiple VPNs with docker

I have a paid external vpn(Nordvpn using gluetun) and am currently hosting my own wireguard vpn on my server through docker. is there a way to get the traffic from my selfhosted vpn to tunnel through my paid vpn? This is my docker-compose file atm.


<span style="color:#323232;">services:
</span><span style="color:#323232;">  gluetun_test:
</span><span style="color:#323232;">    image: qmcgaw/gluetun
</span><span style="color:#323232;">    container_name: gluetun_test
</span><span style="color:#323232;">    cap_add:
</span><span style="color:#323232;">      - NET_ADMIN
</span><span style="color:#323232;">    ports:
</span><span style="color:#323232;">      - "5010:5000"
</span><span style="color:#323232;">      # Port of the WireGuard VPN server
</span><span style="color:#323232;">      - "36843:36843/udp"
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - VPN_SERVICE_PROVIDER=nordvpn
</span><span style="color:#323232;">      - VPN_TYPE=wireguard
</span><span style="color:#323232;">      - WIREGUARD_PRIVATE_KEY=redacted
</span><span style="color:#323232;">      - SERVER_COUNTRIES=United Kingdom
</span><span style="color:#323232;">
</span><span style="color:#323232;">  wireguard:
</span><span style="color:#323232;">    image: linuxserver/wireguard:latest
</span><span style="color:#323232;">    container_name: wireguard
</span><span style="color:#323232;">    cap_add:
</span><span style="color:#323232;">      - NET_ADMIN
</span><span style="color:#323232;">    environment:
</span><span style="color:#323232;">      - PUID=1000
</span><span style="color:#323232;">      - PGID=1000
</span><span style="color:#323232;">    volumes:
</span><span style="color:#323232;">      - ./wireguard/config:/config
</span><span style="color:#323232;">#    ports:
</span><span style="color:#323232;">      # Port for WireGuard-UI
</span><span style="color:#323232;">#      - "5010:5000"
</span><span style="color:#323232;">      # Port of the WireGuard VPN server
</span><span style="color:#323232;">#      - "36843:36843/udp"
</span><span style="color:#323232;">    network_mode: service:gluetun_test
</span>

wg0.conf


<span style="color:#323232;">[Interface]
</span><span style="color:#323232;">Address = 10.252.1.0/24
</span><span style="color:#323232;">ListenPort = 36843
</span><span style="color:#323232;">PrivateKey = redacted
</span><span style="color:#323232;">MTU = 1450
</span><span style="color:#323232;">PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
</span><span style="color:#323232;">PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o eth0 -j MASQUERADE
</span><span style="color:#323232;">Table =
</span>

Any help would be great! Thanks!

baronvontito ,

having the very same idea and issue u described, any idea on how to solv it? my post here reddit.com/…/need_help_with_idea_wireguard_and_gl…

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines