Development discussion of WireGuard
 help / color / mirror / Atom feed
* Force a specific IP for outgoing WG traffic with SNAT?
@ 2023-02-16 19:07 Roman Mamedov
  2023-03-17 19:43 ` Ashish SHUKLA
  0 siblings, 1 reply; 3+ messages in thread
From: Roman Mamedov @ 2023-02-16 19:07 UTC (permalink / raw)
  To: wireguard

Hello,

I'm trying to move all my WG communication with peers to a non-primary IP of my server.

It has IPs added like this:

    inet6 2001:db8::ca6c/128 scope global deprecated 
       valid_lft forever preferred_lft 0sec
    inet6 2001:db8::1/128 scope global nodad 
       valid_lft forever preferred_lft forever

What I tried:

  ip6tables -t nat -I POSTROUTING -d 2000::/3 -p udp --dport 51820 -j SNAT --to-source 2001:db8::ca6c

Also tried to filter by --sport, and also briefly without a port filter at all.

This has zero effect, as shown by tcpdump all the WG traffic still originates from 2001:db8::1

Does anyone have an idea why is that? Thanks

-- 
With respect,
Roman

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-17 19:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-16 19:07 Force a specific IP for outgoing WG traffic with SNAT? Roman Mamedov
2023-03-17 19:43 ` Ashish SHUKLA
2023-03-17 19:54   ` Roman Mamedov

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).