Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »


Фильтрация SMTP  трафика, запрещение 25 порта всем и разрешение только выбраным абонентам


Настройка MX


gang@mx204-aiob.g50.ki# show dynamic-profiles svc-smtp        
variables {
    smtp-filter {
        default-value svc-smtp-allow;
        uid-reference;
    }
    svc-smtp-allow uid;
}
interfaces {
    demux0 {
        unit "$junos-interface-unit" {
            no-traps;
            family inet {
                filter {
                    input "$smtp-filter" precedence 50;
                }
            }
        }
    }
}
firewall {
    family inet {
        filter "$svc-smtp-allow" {
            interface-specific;
            term service {
                from {
                    service-filter-hit;
                }
                then accept;
            }
            term smtp-allow {
                from {
                    protocol tcp;
                    destination-port 25;
                }
                then {
                    policer pol-25M;
                    service-accounting;
                    service-filter-hit;
                    accept;
                }
            }
            term Other {
                then accept;
            }
        }
    }
}


В основных сервисах нужно прописать  по service-filter-hit


ABillS - В портале администратора

В сервисе интернет указывается название фильтра

  • No labels