home/shipka/PlexWireGuard/wireguard-client:/config Image: lscr.io/linuxserver/wireguard container_name: wireguard cap_add: This file will be what is generated by the VPS you just need to add in the PostUp, PreDown, PostUp and PreDown Create /home/shipka/PlexWireguard/wireguard-client/wg_confs/wg0.conf.Create a directory to hold the goods, in the below I created /home/shipka/PlexWireguard.Bring the container back up with docker cmpose up.Visit /root/wireguard/config and find the.This will forward port traffic from 32400 to that internal peer. Update the 10.13.13.2 in the above to be the IP of your peer_plexServer.PostDown = iptables -t nat -A PREROUTING -p tcp -dport 32400 -j DNAT -to-destination 10.13.13.2 # IP Of peer below PostDown = iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE PostDown = iptables -D FORWARD -o %i -j ACCEPT PostDown = iptables -D FORWARD -i %i -j ACCEPT PostUp = iptables -t nat -A PREROUTING -p tcp -dport 32400 -j DNAT -to-destination 10.13.13.2 # IP Of peer below PostUp = iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE PostUp = iptables -A FORWARD -o %i -j ACCEPT PostUp = iptables -A FORWARD -i %i -j ACCEPT Update the -to-destination X.X.X.X to point to the Ip of the peer below.Update the main config wg0.conf so that under but before you include:.src_valid_mark=1 restart: unless-stopped root/wireguard/config:/config sysctls: PEERS=plexServer # Replace with peer names, this is chosen by you. SERVERURL=111.111.111.111 # Replace with your server's public domain or IP Image: linuxserver/wireguard container_name: wireguard cap_add:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |