Softwaerewolf
Cadet
- Joined
- Jan 30, 2023
- Messages
- 1
Setting up the wg-easy official app and I checked the default generated configuration which includes the following line:
It targets the interface eth0 - but this can't be assumed to exist. In my case, I have several interfaces but none of them are eth0.
enp6s0 is a 1GbE ethernet interface (used as fallback/service port)
enp7s0f0 is a 10GbE SFP interface
enp7s0f1 is a 10GbE SFP interface
bond1 is a bonded pair of the 2 enp7s0f* interfaces
As far as I can see there isn't any way to tell wg-easy which interface to use?
Code:
PostUp = iptables -t nat -A POSTROUTING -s 192.168.26.0/24 -o eth0 -j MASQUERADE; iptables -A INPUT -p udp -m udp --dport 51820 -j ACCEPT; iptables -A FORWARD -i wg0 -j ACCEPT; iptables -A FORWARD -o wg0 -j ACCEPT;
It targets the interface eth0 - but this can't be assumed to exist. In my case, I have several interfaces but none of them are eth0.
enp6s0 is a 1GbE ethernet interface (used as fallback/service port)
enp7s0f0 is a 10GbE SFP interface
enp7s0f1 is a 10GbE SFP interface
bond1 is a bonded pair of the 2 enp7s0f* interfaces
As far as I can see there isn't any way to tell wg-easy which interface to use?