FromRome
Nov 09, 2019Nimbostratus
Smtp irules access list
Hi all.
I created a simple irules for prevent unauthorized client ip to send mail to balancer:
when CLIENT_ACCEPTED {
set accepted_snat "x.x.x.x"
if { [ class exists SmtpPool ] }
{
if { [class match [IP::client_addr] equals $::SmtpPool] }
{
snat $accepted_snat
} else {
snat automap
}
} else {
snat automap
}
}
I created smtppool with autorized ip and assign this rule a specific virtual server. This virtual server wirk fine without rule. If i select rule in virtual server not work. If i try test to telnet i view only black screen when i connect and close the session.
Thanks