Page 1 of 1

SMTP_ALLOW_UID not honored in ip6tables

Posted: 05 May 2014, 10:37
by trueshanti
Hello,

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                 }
CSF-version is: v6.48 (DirectAdmin)

how to fix this persistently ?

best regards

-c-

Re: SMTP_ALLOW_UID not honored in ip6tables

Posted: 05 May 2014, 11:16
by ForumAdmin
Edit: n/m I see in the code where there can be an issue. We'll look into it for the next release.

Re: SMTP_ALLOW_UID not honored in ip6tables

Posted: 05 May 2014, 18:04
by ForumAdmin
This should now be fixed in v7.01:
http://blog.configserver.com/