routing icon indicating copy to clipboard operation
routing copied to clipboard

olsrd dependency on firewall3

Open champtar opened this issue 3 years ago • 3 comments

Hi @zioproto

olsrd has an implicit dependency on firewall3 for the smartgw feature. firewall4 is based on nftables and thus part of olsrd will not work with it. If possible use procd firewall objects (exemples https://github.com/search?p=2&q=org%3Aopenwrt+json_add_array+firewall&type=Code) else consider adding:

  • an explicit dependency on firewall3 until this is fixed
  • some checks if ip/ip6tables exists or not

champtar avatar Apr 02 '21 22:04 champtar

@fhuberts if I remember correctly you are familiar with the smartgw feature, correct ? Could you help here ? thanks

zioproto avatar Apr 05 '21 06:04 zioproto

It's been many years since I worked on olsrd. But IIRC then the firewall dependend stuff is all in scripts, and those can be converted to nftables. Might not be a trivial job but it can be done. Not by me though ;-)

fhuberts avatar Apr 05 '21 13:04 fhuberts

If possible use procd firewall objects (exemples https://github.com/search?p=2&q=org%3Aopenwrt+json_add_array+firewall&type=Code) else consider adding:

Could you do this? I think you just have to change that: https://github.com/openwrt-routing/packages/blob/b769f1d7985a812e0b13c7d2598dc89f84e6a26e/olsrd/files/olsrd.sh#L745-L812

PolynomialDivision avatar Jun 09 '21 18:06 PolynomialDivision