coovachilli start gives error of unrecognized option on FreeBSD v13.1

I see that 'coovachilli' is readily available in net-mgmt/coovachilli
I installed it and copied /usr/local/etc/chilli/defaults file to main.conf file and updated few parameter values.

While starting the service it gives me below error
Code:
sudo service coovachilli start
Starting coovachilli.
chilli: unrecognized option `--HS_WANIF=em0'
/usr/local/etc/rc.d/coovachilli: WARNING: failed to start coovachilli
I have below values defined in the main.conf file and don't see any issue with the option names or even any permission issues with the file
Code:
HS_WANIF=em0               # WAN Interface toward the Internet
HS_LANIF=em1               # Subscriber Interface for client devices
HS_NETWORK=10.1.0.0        # HotSpot Network (must include HS_UAMLISTEN)
HS_NETMASK=255.255.255.0   # HotSpot Network Netmask
HS_UAMLISTEN=10.1.0.1      # HotSpot IP Address (on subscriber network)
HS_UAMPORT=3990            # HotSpot UAM Port (on subscriber network)
HS_UAMUIPORT=4990          # HotSpot UAM "UI" Port (on subscriber network, for embedded portal)

Has anyone faced this issue earlier and fixed it? Please share the solution for the error mentioned above.
 
I installed it and copied /usr/local/etc/chilli/defaults file to main.conf file and updated few parameter values.
Perhaps you should read the pkg-message and follow those instructions:
Code:
root@fbsd-test:~ # pkg info -D coovachilli
coovachilli-1.0.12_1:
On install:
Add coovachilli_enable="YES" to /etc/rc.conf

 You'll need to tweak your kernel settings
 add the following to /boot/loader.conf
 kern.ipc.msgseg=16000
 kern.ipc.msgmnb=16000

 Sample config files located in %%EXAMPLESDIR%%
 copy the sample main.conf file to your
 chilli directory & create an empty
 hs.conf & local.conf to get going.

%%EXAMPLESDIR%% doesn't seem to get correctly translated, that should show /usr/local/share/examples/coovachilli/.

Oh, and FreeBSD 13.1 is end-of-life and not supported anymore. I would wait a little though, 13.3 will be released soon. If you upgrade to 13.2 now you're going to need to upgrade to 13.3 soon after. Probably easier to skip 13.2.

 
Thank you for the valuable inputs and moving topic to most relevant category.
Previously I had done the chilli setup on Ubuntu where I used the defaults file so I didn't realize that I should check more regarding the examples dir value. You correctly mentioned the location which I quickly did and could get the service to work in few minutes.

I found one more issue that in Ubuntu the shell scripts were readily provided to take care of the iptables update when service was started or stopped.
However, in FreeBSD just the sample pf.conf is provided but no shell scripts are there to modify the rules at runtime using the up.sh and down.sh script. I understand that the logic can be coded but if you can share any ready references for this scirpt then it will be helpful.
 
Back
Top