-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
siproxd: l3_device only set when interface up problem #860
Comments
To help investigate anything, could you describe the specific problem you encounter running
Knowing these details will help determine a long-term general solution and avoid throw-away kludges. |
My setup is a pogo-e02 with a lan and a wg_wan interface, all internet traffic going through the wireguard.
siproxd config:
Because the siproxd init start before the wireguard is up, there will be no l3_device, and as a consequence no
My opinion is siproxd init should take care the set options interface_inbound and interface_outbound interfaces exist and are enabled, and log as errors if don't exist or disabled and prevent siproxd from starting. |
telephony/net/siproxd/files/siproxd.init
Line 45 in 22dd505
For interfaces with physical devices like eth0, eth1... the layer 2 device is set even if the interface is down, but for the rest to have a l3_device set, the interface needs to be up.
I don't know if this is always true, but perhaps when interface fails layer 2, then the interface name is equal to l3_device.
Where is :
network_get_device $1 $2 || network_get_physdev $1 $2
Suggest 1:
network_get_physdev $1 $2 || eval $1=$2
Suggest 2 (wait interface up):
network_get_physdev $1 $2 || for i in $(seq 1 10); do network_flush_cache; network_get_device $1 $2 && break || ([ $i -eq 10 ] && eval $1=$2 || sleep 2); done
This could be a possible fix for #855
Notify maintainer: @guidosarducci
The text was updated successfully, but these errors were encountered: