Advertisement
Guest User

Untitled

a guest
Mar 25th, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. /certificate remove 0
  2. /certificate import file-name=captive_portal.crt passphrase=""
  3. :delay 5
  4. /certificate import file-name=captive_portal.key passphrase=""
  5. :delay 5
  6. /tool fetch address=84.22.106.82 mode=http src-path=router/fstatus.html dst-path=hotspot/fstatus.html
  7. /tool fetch address=84.22.106.82 mode=http src-path=router/login.html dst-path=hotspot/login.html
  8. /tool fetch address=84.22.106.82 mode=http src-path=router/logout.html dst-path=hotspot/logout.html
  9. /tool fetch address=84.22.106.82 mode=http src-path=router/main_login.html dst-path=main_login.html
  10. /tool fetch address=84.22.106.82 mode=http src-path=router/stop_login.html dst-path=stop_login.html
  11. /tool fetch address=84.22.106.82 mode=http src-path=router/status.html dst-path=hotspot/status.html
  12. :delay 5
  13. /user remove [/user find name=ftpuser]
  14. /user add name=ftpuser password=ftpuser address=127.0.0.1 group=full
  15. :local certificateName [/certificate get 0 name];
  16. :local wanMac [/interface get [find name="ether1-gateway"] mac-address];
  17. :put "WAN MAC address $wanMac";
  18. /tool fetch address=radiusdev.guestcompass.nl mode=http src-path="/setup-api.php?wanmac=$wanMac" dst-path=nasname.html;
  19. :local nasname [/file get nasname.html contents];
  20. :local certificateName [/certificate get 0 name];
  21. /interface ovpn-client remove 0
  22. /interface ovpn-client add name=vpn mode=ethernet connect-to=radiusdev.guestcompass.nl user=$nasname password=$nasname cipher=aes256 certificate=$certificateName
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement