wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
From: "-.-" <alias84@protonmail.com>
To: "wireguard@lists.zx2c4.com" <wireguard@lists.zx2c4.com>
Subject: Wireguard to route server traffic on same machine
Date: Tue, 19 May 2020 17:45:26 +0000	[thread overview]
Message-ID: <Q2IXfYGQfHXsOOP3PhQHnbhg-d6qZS0tVCOMjNsmLL7u3hOiNCQsRs2Tbhve0PhhgNWmKJK6lbSQ6V0Hqn0zMg7DbYLewOtv3cM6Ft4Enlk=@protonmail.com> (raw)

Dear all,

I am trying to configure WG to run in a docker, maybe through portainer to route all the traffic of a nextcloud server on the same machine (raspberry pi 4).

I have managed to have the sever, the containers with WG running (?) on it. Can i ask you support on the .yaml config (server or client) and the config of WG per se?

script.yaml used:

version: "2.1"

services:

wireguard:

image: linuxserver/wireguard

container_name: wireguard

cap_add:

- NET_ADMIN

- SYS_MODULE

environment:

- PUID=1000(pi)

- PGID=1000(pi)

- SERVERURL=   "Address of my server, the same of raspberry"

- SERVERPORT=51820

- PEERS=1

- PEERDNS=[ ]"Address of my server, the same of raspberry"

volumes:

- /path/to/appdata/config:/config

- /lib/modules:/lib/modules

ports:

- 51820:51820/udp

sysctls:

- net.ipv4.conf.all.src_valid_mark=1

restart: unless-stopped

thanks in advance,
sincerily.


                 reply	other threads:[~2020-05-21  1:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='Q2IXfYGQfHXsOOP3PhQHnbhg-d6qZS0tVCOMjNsmLL7u3hOiNCQsRs2Tbhve0PhhgNWmKJK6lbSQ6V0Hqn0zMg7DbYLewOtv3cM6Ft4Enlk=@protonmail.com' \
    --to=alias84@protonmail.com \
    --cc=wireguard@lists.zx2c4.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).