siproxd: init requires that interface_inbound and interface_outbound …#801
siproxd: init requires that interface_inbound and interface_outbound …#801Azureit wants to merge 5 commits intoopenwrt:masterfrom
Conversation
…be set siproxd will not work without if_inbound and if_outbound defined in the config file. Tell meaningful error about interface_inbound and interface_outbound Signed-off-by: Azureit <1774476+Azureit@users.noreply.github.com>
Signed-off-by: Azureit <1774476+Azureit@users.noreply.github.com>
Function 'network_get_physdev' doesn't work with wireguard interfaces, fix this by changing the function to 'network_get_device' Signed-off-by: Azureit <1774476+Azureit@users.noreply.github.com>
|
Hallo @Azureit Thanks for bringing this up. I'll look into it in a little while more thoroughly. What caught my attention so far: a) the "exit 1" in "die()". It's a function so it should return but not exit. It would exit the whole init process and that would mean procd can't keep track. See also [1]. I'd also like to ask @guidosarducci to take a look at this as he kindly provided the procd support some time ago. [1] #790 Kind regards, |
|
I added the changes to my siproxd init script and ran it with default config. It ran the ubus calls and each time waited around 30 seconds. I suppose that is unexpected. Please review this again. Kind regards, |
I adapted that ubus command from here, but I try to run that command via ssh and it timeout 30 seconds too. |
Signed-off-by: Azureit <1774476+Azureit@users.noreply.github.com>
Signed-off-by: Azureit <1774476+Azureit@users.noreply.github.com>
|
@micmac1 |
|
@micmac1 what is the proper way to tell procd there was a problem at siproxd init and abort the siproxd init. |
|
@micmac1 @Azureit I missed this the first time around so just having a look but having some trouble following along... How to reproduce the issue you see? I see #800 which suggests some kind of race problem, but it lacks a log file showing any details of the network startup and siproxd initialization. I also don't see the relevant siproxd or network config details. Could you explain #801 (comment) a bit more clearly? I tried reproducing with a simple setup but I don't see the siproxd error from #800 . Using current OpenWrt 23.05.2, I created a So no error like |
|
Hmm, I did notice a strange behaviour with So This commit address the problem I saw, but not sure if it applies to your issue. Worth a try though... |
|
@Azureit please fix your SOB lines and subject lines on each commit |
…be set
siproxd will not work without if_inbound and if_outbound defined in the config file. Tell meaningful error about interface_inbound and interface_outbound
Maintainer: @micmac1
Signed-off-by: Azureit azurite@mailfence.com