Page 1 of 1

PPPOE Server and HOTSPOT Server in one Interface Mikrotik Router

Posted: Mon Aug 26, 2019 10:18 am
by tiftok
English video
https://www.youtube.com/watch?v=zQpUKmOXY1E
arabic video
https://www.youtube.com/watch?v=QtsAeKia1Kc&t

pppoe remote ip pool 192.168.202.2-192.168.202.254
pppoe local ip pool 192.168.203.2-192.168.203.254
------------------------------------------
:global tiftokmac;
:global tiftokf 1;
:foreach i in=[/ ppp active find] do={
  

  :set tiftokmac [ /ppp active get $i  caller-id];
  :foreach ii in=[/ ip hotspot ip-binding find where mac-address=$tiftokmac  ] do={
   
    :global tiftokf 0;

 
}
 if ($tiftokf=1) do={ 
  /ip hotspot ip-binding add mac-address=$tiftokmac ;
  
 }
 :global tiftokf 1;
  
  }