New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
possible easy way to run specific docker container network traffic via OpenVPN/WireGuard? #222
Comments
Hello, there is no easy way to do it currently but I would suggest you have a look at gluetun then you can edit your compose file with |
thank u for quick reply, and thank for suggestion of gluetun it look like exactly what I need. so i would make docker container for gluetun and configure vpn, then open transmission/docker-compose.yml and add network_mode code u referenced since i only want for transmission and not whole of tipi? |
hello again i originally tried adding i tried the code u suggested of do u have any idea what might be wrong? |
Do you have some kind of error to share? Is it when you start the app from the dashboard? If you use the network_mode it's normal to be out of the |
I just tried to set it up and it worked well for me: Gluetun config:
and in transmission I remove the network part and added |
@meienberger i tried again just now and gluetun works fine but when i edit transmission docker compose to have gluetun docker-compose: version: "3.7"
services:
gluetun:
container_name: gluetun
image: qmcgaw/gluetun
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=mullvad
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=priv_key
- WIREGUARD_ADDRESSES=priv_address
- SERVER_CITIES=Amsterdam transmission docker-compose version: "3.7"
services:
transmission:
image: lscr.io/linuxserver/transmission:latest
container_name: transmission
# dns:
# - ${DNS_IP}
environment:
- PUID=1000
- PGID=1000
- TZ=${TZ}
- USER=${TRANSMISSION_USERNAME}
- PASS=${TRANSMISSION_PASSWORD}
- TRANSMISSION_WEB_HOME=/transmission-web-control/
# - WHITELIST=iplist #optional
# - PEERPORT=peerport #optional
# - HOST_WHITELIST=dnsnane list #optional
volumes:
- ${APP_DATA_DIR}/data/config:/config
- ${ROOT_FOLDER_HOST}/media/torrents:/downloads
#ports:
# - ${APP_PORT}:9091
# - 51413:51413
# - 51413:51413/udp
restart: unless-stopped
network_mode: container:gluetun
# networks:
# - tipi_main_network |
hello again |
You may have messed up some stuff. be sure to run the stop script correctly |
The network issue was related to something else in the apps repo. Please update with |
I'm closing this issue for now as it is not directly related to Tipi. I would suggest to open an issue at gluetun if you have further questions |
I have installed transmission app from store and want to make all traffic for that container only via a vpn config I have. Is there easy way to do this via app? or do i need edit docker files? i saw wireguard app but think that is for self host vpn and not what i want.
many thanks
The text was updated successfully, but these errors were encountered: