Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 23620

General • Re: Question about how wireguard and routing

$
0
0
I dont fully understand your question here.
Maybe I am mistaken but I'd assume the traffic wouldn't flow unless you NAT'd it again when it is leaving the WAN but it seems that it does that automatically without needing a NAT rule set up?
When you establish the Wireguard tunnel the router uses its IP on the ether1 interface to communicate with the Wireguard Peer.
Since its a encrypted TUNNEL everything inside the tunnel is invisible to every hop in between.

And since the traffic is originating from the router, which presumably has an IP on the ether1 interface, there's no need to NAT.
You have 1 IP-Address on ether1. You need just 1 Address (for the router).
Everything else communicates through the wireguard tunnel, which counts as another interface.

Statistics: Posted by itimo01 — Fri Mar 21, 2025 1:15 am



Viewing all articles
Browse latest Browse all 23620