-
Notifications
You must be signed in to change notification settings - Fork 250
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: init requires that interface_inbound and interface_outbound … #801
base: master
Are you sure you want to change the base?
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 <[email protected]>
Signed-off-by: Azureit <[email protected]>
Function 'network_get_physdev' doesn't work with wireguard interfaces, fix this by changing the function to 'network_get_device' Signed-off-by: Azureit <[email protected]>
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 <[email protected]>
Signed-off-by: Azureit <[email protected]>
@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... |
…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 [email protected]