From: "Jérémy Prego" <jeremy@pregonetwork.net>
To: wireguard@lists.zx2c4.com
Subject: wireguard and iptables redirect not work
Date: Mon, 24 Aug 2020 03:43:46 +0200 [thread overview]
Message-ID: <e88701ec-4616-6294-6852-b9591e25f10c@pregonetwork.net> (raw)
hello all,
I am experiencing behavior that I do not want when I use wireguard as a
vpn client with the output at 0.0.0.0
I can no longer use iptables rules like thi:
iptables -t nat -A OUTPUT -p tcp -d 1.2.3.4 -j REDIRECT --to-ports 10001
I have a daemon which listens in localhost on port 10001 and when I
activate wireguard, it receives nothing when I do a curl on ip 1.2.3.4
I specify that I use wg-quick with a relatively simple configuration
~# cat /etc/wireguard/vpn0.conf
[Interface]
Address = 192.168.80.7/24
DNS = 192.168.80.1
PrivateKey = XXXXXXXXXXX
[Peer]
PublicKey = XXXXXXX
AllowedIPs = 0.0.0.0/0
Endpoint = xxxxxxx:51820
if you have a solution so that I can do my iptables redirect with
wireguard enabled, I'm interested :)
thanks,
Jerem
reply other threads:[~2020-08-27 8:28 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=e88701ec-4616-6294-6852-b9591e25f10c@pregonetwork.net \
--to=jeremy@pregonetwork.net \
--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).