Christmas Holiday

We will be closing our Store, Sales and Helpdesk from 17:30 Wednesday, 23rd December 2020 to 09:00 Monday, 4th January 2021. No orders, support requests or sales emails will be processed between those dates.

If you purchase a license or Service Package before the closing date and require installation, please be sure to leave at least 24 hours before then for the work to be done. Otherwise, any work will be scheduled for after this period.

Ubuntu 20 has changed location of iptables binaries

Post Reply
datalude
Junior Member
Posts: 7
Joined: 09 Apr 2019, 03:13

Ubuntu 20 has changed location of iptables binaries

Post by datalude »

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.

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.
In the end I just put in symlinks and that seems to be OK now.

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
Post Reply