Ubuntu 20 has changed location of iptables binaries
Posted: 04 Aug 2020, 03:48
Just installed on a new Ubuntu 20 desktop. It turns out that Ubuntu has the iptables binaries in /usr/sbin/ now instead of /sbin/ .
On installing csf with the install.sh script, it failed to pick this up and the iptables locations in the csf.conf file were left as /sbin/
When these were changed manually the perl test script still fails to locate iptables.
In the end I just put in symlinks and that seems to be OK now.
On installing csf with the install.sh script, it failed to pick this up and the iptables locations in the csf.conf file were left as /sbin/
When these were changed manually the perl test script still fails to locate iptables.
Code: Select all
sudo perl /usr/local/csf/bin/csftest.pl
Testing ip_tables/iptable_filter...open3: exec of /sbin/iptables -I OUTPUT -p tcp --dport 9999 -j ACCEPT failed: No such file or directory at /usr/local/csf/bin/csftest.pl line 144.
Code: Select all
sudo ls -hal /sbin/ip*table*
lrwxrwxrwx 1 root root 19 Nov 5 2019 /sbin/ip6tables -> /usr/sbin/ip6tables
lrwxrwxrwx 1 root root 27 Nov 5 2019 /sbin/ip6tables-restore -> /usr/sbin/ip6tables-restore
lrwxrwxrwx 1 root root 24 Nov 5 2019 /sbin/ip6tables-save -> /usr/sbin/ip6tables-save
lrwxrwxrwx 1 root root 18 Nov 5 2019 /sbin/iptables -> /usr/sbin/iptables
lrwxrwxrwx 1 root root 26 Nov 5 2019 /sbin/iptables-restore -> /usr/sbin/iptables-restore
lrwxrwxrwx 1 root root 23 Nov 5 2019 /sbin/iptables-save -> /usr/sbin/iptables-save