Jump to content

Recommended Posts

Posted

Всем доброго времени суток!

 

Не удается на Juniper MX80 порезать доступ на telnet.

У меня это первый Juniper. Такой, вроде, пустяковый вопрос поставил меня в тупик. Гуглил, но нужное не нашел.

Делаю так:

groups {
   my-trusted-hosts {
       firewall {
           family inet {
               filter telnet-acl {
                   term term-access {
                       from {
                           address {
                               10.10.10.0/24;
                           }
                       }
                       then accept;
                   }
                   term term-deny {
                       from {
                           address {
                               0.0.0.0/0;
                           }
                       }
                       then {
                           reject;
                       }
                   }
               }
           }
       }
   }
}
system {
   services {
       telnet {
           apply-groups my-trusted-hosts;
       }
   }
}

Не помогает, по телнету зайти можно отовсюду.

Прошу совета у форумчан.

Posted (edited)

Парни, спасибо!

Тут прям Juniper-братство)

Сделал так:

system {
   services {
       telnet;
   }
}
interfaces {
   lo0 {
       unit 0 {
           family inet {
               filter {
                   input telnet-acl;
               }
               address 10.10.10.1/32;
           }
       }
   }
}
firewall {
   filter telnet-acl {
       term term-access {
           from {
               source-address {
                   11.11.11.0/24;
                   12.12.12.0/24;
               }
               protocol tcp;
               destination-port [ telnet ssh ];
           }
           then accept;                
       }
       term term-deny {
           from {
               protocol tcp;
               destination-port [ telnet ssh ];
           }
           then {
               log;
               reject;
           }
       }
       term term-default {
           then accept;
       }
   }
}

По сути, взял из соседней темы

 

А как отменить commit confirmed 1? Просто commit?

Edited by qelso
Posted

srx: если на выделенный vlan для управления поменять vlan-id - пропадает доступ до устройства до перетыкания кабеля(даже при commit confirmed и возврате старого id - теряешь доступ). На ex3200 - не пропадает.

проверял на srx210H2/srx240H/ex3200 с последними прошивками. Тот редкий случай, когда commit confirmed не спасает

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.