https://bugs.koozali.org/show_bug.cgi?id=11771

--- Comment #5 from Brian Read <[email protected]> ---
[root@mailserver ~]# cat
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/badrcptto/20DenyMailTo:
 
cat:
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/badrcptto/20DenyMailTo::
No such file or directory
[root@mailserver ~]# cat
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/badrcptto/20DenyMailTo
[email protected] No thank you
[root@mailserver ~]# cat
/etc/e-smith/templates-custom/etc/rc.d/init.d/masq/40DenyRiffRaff
{
   use esmith::ConfigDB;
   my $db = esmith::ConfigDB->open_ro || die 'Could not open configuration
database';
   # Completely block any riff raff
   if ( ( my $status = $db->get_prop( 'ipblock', 'status' ) ) eq 'enabled' ) {
       my $DenyHosts = $db->get_prop( 'ipblock', 'DenyHosts' ) || '';
       my $logging   = $db->get_prop( 'ipblock', 'logging' )   || 'disabled';
       foreach my $host ( split( ',', $DenyHosts ) ) {
           $OUT .= "\n";
           $OUT .= "    # Simple IP block for riff raff\n\n";
           if ( $logging eq 'enabled' ) {
               $OUT .= "    /sbin/iptables -A INPUT -s $host -j denylog\n";
           }
           else {
               $OUT .= "    /sbin/iptables -A INPUT -s $host -j DROP\n";
           }
           $OUT .= "\n";
       }
   }
}
#/sbin/iptables -A INPUT -s 94.232.41.0/24 -j DROP
#/sbin/iptables -A INPUT -s 201.16.179.121 -j DROP
#/sbin/iptables -A INPUT -s 111.61.98.37 -j DROP
#added 20/11/21 by whr but has no effect
#/sbin/iptables -A INPUT -s 212.70.149.71 -j DROP

[root@mailserver ~]#

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/

Reply via email to