2

Something like this should do the trick iptables -I PREROUTING -i eth0 -d <yourIP/32> -p udp -m multiport --dports 53,80,4444 -j REDIRECT --to-ports 15351


1

Instead of specifying AllowedIPs = 0.0.0.0/0 specify an ip address. Ran into this question wondering the same thing. The use case detailed here pointed me in the right direction: https://emanuelduss.ch/2018/09/wireguard-vpn-road-warrior-setup/


1

As a workaround, you could manually add the following to your /etc/apt/sources.list: deb http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main deb-src http://ppa.launchpad.net/wireguard/wireguard/ubuntu bionic main And then sudo apt-get update. You could see these steps in the WireGuard Launchpad page - reveal by expanding "Technical details ...


1

Each side of the tunnel has own generated key and derived public key (defined as "peer" on other side of connection). To act as you are writing you would share the private key between the "clients" which is the worst case you can do (technically you can but I hope nobody would even think about that). Let think about "client vs. server" roles. server own ...


Only top voted, non community-wiki answers of a minimum length are eligible