All apps · 0 apps
mainfrezzer-wireguard-client
Docker app from Mainfrezzer's Repository
Overview
Readme
View on GitHubWireGuard Bridge
Quick Start
Unraid
The template can be downloaded here
https://github.com/Mainfrezzer/UnRaid-Templates/blob/main/mainfrezzer-wg-bridge.xml
Docker run
docker run --name wireguard-bridge\
--restart unless-stopped \
--cap-add=NET_ADMIN \
--sysctl net.ipv4.conf.all.src_valid_mark=1 \
-v /my/own/dir:/etc/wireguard/ \
-p 1080:1080/tcp `#Socks5` \
-p 8080:8080/tcp `#Privoxy` \
-e LAN_NETWORK=192.168.3.0/24 `#supports multiple networks, use "," as divider` \
-e LAN_NETWORK6=fd00::/64 `#supports multiple networks, use "," as divider` \
-e HTTPPORT=8080 `#Privoxy Port. If you change it, dont forget to add a new port mapping` \
-e CONNECTED_CONTAINERS= `#Optional feature of ich777 container` \
-e ENABLE_RANDOM=0 `#Enables Random mode for the server chosen, picks a file from /etc/wireguard at random` \
-e DISABLE_TUNNEL_MODE= `#Setting ANY value will disable the VPN tunnel enforcement.*` \
-e HEALTH_URL_CHECK= `#Custom URL or IP to ping for the healthcheck` \
-d ghcr.io/mainfrezzer/wg-bridge
Compose
wireguard-bridge:
container_name: wireguard-bridge
network_mode: bridge
restart: unless-stopped
cap_add:
- NET_ADMIN
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
volumes:
- /my/own/dir:/etc/wireguard/
ports:
- 1080:1080/tcp #Socks5
- 8080:8080/tcp #Privoxy
environment:
- LAN_NETWORK=192.168.3.0/24 #supports multiple networks, use "," as divider
- LAN_NETWORK6=fd00::/64 #supports multiple networks, use "," as divider
- HTTPPORT=8080 #Privoxy Port. If you change it, dont forget to add a new port mapping
- CONNECTED_CONTAINERS= #Optional feature of ich777 container
- ENABLE_RANDOM=0 #Enables Random mode for the server chosen, picks a file from /etc/wireguard at random
- DISABLE_TUNNEL_MODE= #Setting ANY value will disable the VPN tunnel enforcement.*
- HEALTH_URL_CHECK= #Custom URL or IP to ping for the healthcheck
image: ghcr.io/mainfrezzer/wg-bridge
'*' That means the container will not ensure that all your traffic is routed through the VPN. This is useful if you want your containers only to reach specific VPN IPs but otherwise want to use your internet connection
Install mainfrezzer-wireguard-client on Unraid in a few clicks.
Find mainfrezzer-wireguard-client in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Download Statistics
Related apps
Explore more like this
Explore allDetails
ghcr.io/mainfrezzer/wg-bridge:latestRuntime arguments
- Network
bridge- Shell
sh- Privileged
- false
- Extra Params
--cap-add=NET_ADMIN --sysctl net.ipv4.conf.all.src_valid_mark=1
Template configuration
Location to place your wg0.conf
- Target
- /etc/wireguard/
- Value
- /mnt/user/appdata/wg-bridge
- Target
- 1080
- Default
- 1080
- Value
- 1080
- Target
- 8080
- Default
- 8080
- Value
- 8080
Set you ipv4 LAN network in CIDR format. Only needed if you want to reach something attached to this container and vice versa
- Target
- LAN_NETWORK
- Default
- 192.168.2.0/24
- Value
- 192.168.2.0/24
Set your ipv6 LAN network in CIDR format. ULA or GUA. Only needed if you want to reach something attached to this container and vice versa
- Target
- LAN_NETWORK6
- Default
- fd00::/64
- Value
- fd00::/64
Allows you to change the port Privoxy listens on inside the container. If you change it, dont forget to add a new port mapping
- Target
- HTTPPORT
- Default
- 8080
- Value
- 8080
Setting this to 1 will pick a wireguard config file randomly to establish the connection. Do not name the files wg0.conf
- Target
- ENABLE_RANDOM
- Default
- 0
- Value
- 0
By default the healthcheck checks its endpoint via ping. This might not be possible in some cases. You can set a domain or ip address here to use instead.
- Target
- HEALTH_URL_CHECK
This variable enables the Connected Containers feature which will notify compatible containers when the VPN is restarted and restart themselves. To enable this feature enter '27286' without quotes, if you don't want to enable this feature leave this field empty.
Setting ANY value will disable the VPN tunnel enforcement. That means the container will not ensure that all your traffic is routed through the VPN. This is useful if you want your containers only to reach specific VPN IPs but otherwise want to use your internet connection
- Target
- DISABLE_TUNNEL_MODE