CSF fails to set rules accordingly to settings made in csf.conf.
IPV6 = "1"
SMTP_ALLOWUSER = "someuser"
TCP6_OUT = "0:65535"
resulting in:
IPv4:
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 OWNER UID match 539
IPv6:
_no-such-rule_
__
after changing "csf(.)pl" and avoiding the if-loop the result was ok again:
Code: Select all
691 if ($uid) {
692 &syscommand(__LINE__,"$config{IPTABLES} $verbose -I OUTPUT -p tcp --dport $port -m owner --uid-owner $uid -j $accept",1);
693 &syscommand(__LINE__,"$config{IP6TABLES} $verbose -I OUTPUT -p tcp --dport $port -m owner --uid-owner $uid -j $accept",1);
694 # if ($config{IPV6} and $config{TCP6_OUT} =~ /\b25\b/) {
695 # &syscommand(__LINE__,"$config{IP6TABLES} $verbose -I OUTPUT -p tcp --dport $port -m owner --uid-owner $uid -j $accept",1);
696 #}
697 }
how to fix this persistently ?
best regards
-c-