From: Tomas Herceg <tth@rfa.cz>
To: "Jason A. Donenfeld" <Jason@zx2c4.com>
Cc: WireGuard mailing list <wireguard@lists.zx2c4.com>
Subject: Re: listen on specific IP only
Date: Wed, 20 Jun 2018 20:17:21 +0200 [thread overview]
Message-ID: <ab9a32b9-33e4-d264-d0d5-982774520a24@rfa.cz> (raw)
In-Reply-To: <CAHmME9o1F6r6z8GMj3NqAWAM9-qybLfpOW=STbSso7hOdwFBqA@mail.gmail.com>
Thanks
works like a charm =)
interface: wg0-default
public key: (no no no)
private key: (hidden)
listening port: 51820
fwmark: 0xca6c
peer: GUUrqy95QclZQZ9zxMkX+5G6HklnSaqhIAJpf7naSFI=
endpoint: PUBIP1:53
allowed ips: 192.168.11.0/24, 172.16.16.6/32
latest handshake: 12 seconds ago
transfer: 532 B received, 1.12 KiB sent
persistent keepalive: every 25 seconds
peer: 4H52v5z94+LtLaiSw47V4/1zc8TiaQ05+kI63ESY12Q=
endpoint: PUBIP2:53
allowed ips: 0.0.0.0/0, ::/0
latest handshake: 36 seconds ago
transfer: 440.24 KiB received, 109.24 KiB sent
persistent keepalive: every 25 seconds
On 06/20/2018 07:50 PM, Jason A. Donenfeld wrote:
> We don't allow this in WireGuard by design.
>
> However, you can easily work around this with iptables:
>
> $ wg set wg0 listen-port 11153
> $ iptables -t nat -A PREROUTING .... -p udp --dport 53 -j REDIRECT
> --to-port 11153
>
> Fill in the ... with --destination or --in-interface or whatever you want.
>
> Jason
>
prev parent reply other threads:[~2018-06-20 18:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-20 17:18 Tomas Herceg
2018-06-20 17:50 ` Jason A. Donenfeld
2018-06-20 18:17 ` Tomas Herceg [this message]
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=ab9a32b9-33e4-d264-d0d5-982774520a24@rfa.cz \
--to=tth@rfa.cz \
--cc=Jason@zx2c4.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).