SMTP_ALLOW_UID not honored in ip6tables

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
trueshanti
Junior Member
Posts: 6
Joined: 05 May 2014, 10:01

SMTP_ALLOW_UID not honored in ip6tables

Post 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-
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: SMTP_ALLOW_UID not honored in ip6tables

Post 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.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: SMTP_ALLOW_UID not honored in ip6tables

Post by ForumAdmin »

This should now be fixed in v7.01:
http://blog.configserver.com/
Post Reply