Score:0

Wireguard not forwarding wg0 traffic when host connected on wireless and wired interface

us flag

I'm currently running Wireguard on Ubuntu 20.04 (host) and have my wg0 interface forwarding traffic to my wireless interface wlp0s20f3 just fine.

However I noticed that when the Ethernet cable is plugged in to my host machine (wired interface eno1), the forwarding of traffic stops but pinging from client to wg0 still works.

Is this an expected occurrence or perhaps a misconfiguration on my part? I was expecting the forwarding of packets to remain unaffected, regardless of the LAN (eno1) connection.

# host config
[Interface]
Address = 10.0.0.1/24
SaveConfig = true
PostUp = iptables -A FORWARD -i wg0 -j ACCEPT; iptables -t nat -A POSTROUTING -o wlp0s20f3 -j MASQUERADE
PostDown = iptables -D FORWARD -i wg0 -j ACCEPT; iptables -t nat -D POSTROUTING -o wlp0s20f3 -j MASQUERADE
ListenPort = ...
PrivateKey = ...

[Peer]
PublicKey = ...
AllowedIPs = 10.0.0.2/32
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.