Pages

Friday, 25 March 2022

vps2routeros


Install RouterOS without screen and keyboard, only Telnet/SSH is required.

This script will wipe your current OS then install RouterOS on the target computer without requiring physical access. It has been proven to work with a wide range of VPSs.

This project is previously hosted on a Gist, but the script become larger over time and a gist can not fit it anymore, so it is moved here.

WARNING

Your warranty is now void. I am not responsible for bricked devices, dead HDDs and SSDs, unreplied tickets, thermonuclear war, or you getting fired because your device is hacked to mine bitcoin. Please do some research if you have any concerns about this script before using it! YOU are choosing to make these modifications, and if you point the finger at me for messing up your device, I will laugh at you.

  • PLEASE READ THIS DOCUMENTATION THROUGHLY BEFORE RUNNING
  • CAUTION: ALL DATA ON YOUR DEVICE WILL BE LOST INSTANTLY! There is no way to get them back.
  • Please make a backup of your existing network configuration prior to running this in case of any problem
  • If you use IPv6, remember your gateway link-local address too
  • Please SET AN PASSWORD IMMEDIATELY after installation
  • Please UPDATE IMMEDIATELY after installation

Usage

Requirements

The target device:

  • is amd64 (sometimes called x86_64) architecture
  • is a physical device or a full-virtualized VM
  • runs Ubuntu 16.04 or higher (we recommend Ubuntu 16.04; other distros are not tested)

Here is a VPS provider compatibility list. Contribution is welcomed.

Running the script

1. download this script to the target computer:

# use wget
wget https://cursed.im/vps2routeros

# or use curl
curl -L https://cursed.im/vps2routeros -o vps2routeros

2. Use any text editor to open the script, change the default config if needed

3. run it:

chmod +x ./vps2routeros
sudo ./vps2routeros

4. Set a password:

Login with WinBox or HTTP or SSH using username admin and an empty password, then change the password.

Documentation

from https://github.com/Jamesits/vps2routeros
-----

RouterOS style Cisco Clientless SSL VPN / AnyConnect login portal.

RouterOS style Cisco Clientless SSL / AnyConnect login portal.

Screenshot

Installation

Using ASDM

  1. Goto Configuration -> Remote Access VPN -> Clientless SSL VPN Access -> Portal
  2. Under Web Contents, import all files under uploads/ one by one, and choose "No" on "Destination" option under import dialog
  3. Under Customization, import RouterOS.xml.

(If it says "ASDM could not find the default customization profile", import "DfltCustomization.xml" first and name it exactly DfltCustomization.)

Using command line

TODO

FAQ

Browser unable to detect character encoding

webvpn
no character-encoding

Or set Clientless SSL VPN Access -> Advanced -> Encoding -> Global Encoding Type to none in ASDM.


from https://github.com/Jamesits/webvpn-portal-skin-routeros

No comments:

Post a Comment