Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /certificate remove 0
- /certificate import file-name=captive_portal.crt passphrase=""
- :delay 5
- /certificate import file-name=captive_portal.key passphrase=""
- :delay 5
- /tool fetch address=84.22.106.82 mode=http src-path=router/fstatus.html dst-path=hotspot/fstatus.html
- /tool fetch address=84.22.106.82 mode=http src-path=router/login.html dst-path=hotspot/login.html
- /tool fetch address=84.22.106.82 mode=http src-path=router/logout.html dst-path=hotspot/logout.html
- /tool fetch address=84.22.106.82 mode=http src-path=router/main_login.html dst-path=main_login.html
- /tool fetch address=84.22.106.82 mode=http src-path=router/stop_login.html dst-path=stop_login.html
- /tool fetch address=84.22.106.82 mode=http src-path=router/status.html dst-path=hotspot/status.html
- :delay 5
- /user remove [/user find name=ftpuser]
- /user add name=ftpuser password=ftpuser address=127.0.0.1 group=full
- :local certificateName [/certificate get 0 name];
- :local wanMac [/interface get [find name="ether1-gateway"] mac-address];
- :put "WAN MAC address $wanMac";
- /tool fetch address=radiusdev.guestcompass.nl mode=http src-path="/setup-api.php?wanmac=$wanMac" dst-path=nasname.html;
- :local nasname [/file get nasname.html contents];
- :local certificateName [/certificate get 0 name];
- /interface ovpn-client remove 0
- /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