pppoe_main.cfg

Skip to end of metadata
Go to start of metadata
configure

!!! Включаем pppoe сервер и привязывае к логическому интерфейсу контекста
@@@ for bind in abon_binds
port {{bind.port}}
@@@ if bind.vlan
 encapsulation dot1q
 no dot1q pvc {{bind.vlan}}
 dot1q pvc {{bind.vlan}} encapsulation pppoe
@@@ else
 encapsulation pppoe
@@@ endif
  bind authentication chap pap context {{ctx_name}} maximum 8000
@@@ endfor

!!! если есть еще интерфейсы их тоже привязываем
@@@ if context_int
@@@ for int in context_int
!
@@@ if int.port
port {{int.port}}
@@@ endif
@@@ if int.link_group
link-group {{int.link_group}}
@@@ endif
@@@ if int.vlan
encapsulation dot1q
no dot1q pvc {{int.vlan}}
dot1q pvc {{int.vlan}}
@@@ endif
no bind interface
bind interface if_{{ctx_name}}_{{int.if_ip}}_system {{ctx_name}}
@@@ endfor
@@@ endif


!!! разрешаем любое имя сервиса pppoe
pppoe service-name accept-all

!!! указываем ограничения для запросов авторизации на 1 мак, для защиты от ддос кривых домашних роутеров
pppoe circuit padr per-mac count 15 allow-time 60 drop-time 127
pppoe circuit padi per-mac count 15 allow-time 60 drop-time 127

end
exit
Введите метки, чтобы добавить к этой странице:
Please wait 
Ищите метку? просто начните печатать.