Skip to content
mhmd3010Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

MikroTik CHR Installer

StandWithPalestine Platform QEMU MikroTik Bash LICENSE

Run MikroTik Cloud Hosted Router (CHR) on a Debian VPS using QEMU.

Automatically handles:

  • QEMU setup
  • TAP interface
  • IP forwarding & NAT
  • systemd service

Install

chmod +x install.sh
./install.sh

Choose:

  • 1 - Install MikroTik CHR
  • 2 - Uninstall (Keep packages)
  • 3 - Uninstall & Purge (Remove QEMU & packages)

Setup

After running the installer (Option 1), the script prompts you to open the RouterOS console immediately to configure the network.

  1. Login as admin with a blank password.
  2. Paste the initial network commands:
/ip address add address=100.64.0.2/24 interface=ether1
/interface ethernet set ether1 arp=proxy-arp
/ip route add dst-address=0.0.0.0/0 gateway=100.64.0.1
  1. Exit the console by pressing Ctrl + A, release, then press X.

The installer automatically starts the systemd background service upon exit.

Manual Console Access (If needed later)

systemctl stop mikrotik-chr.service
eval $(grep ExecStart /etc/systemd/system/mikrotik-chr.service | cut -d '=' -f 2-)

CHR is now running in the background.

Ports

Port Service
4443 SSTP VPN
7001 Winbox
7002 WebFig

SSTP VPN Configuration (Optional)

Run inside RouterOS terminal:

/ip pool add name=sstp-pool ranges=10.100.0.10-10.100.0.254
/ppp profile add name=sstp-profile local-address=10.100.0.1 remote-address=sstp-pool use-encryption=yes dns-server=8.8.8.8,8.8.4.4
/interface sstp-server server set enabled=yes default-profile=sstp-profile port=443 certificate=none authentication=mschap2
/ppp secret add name=testuser password=testpass profile=sstp-profile service=sstp
/ip firewall nat add chain=srcnat dst-address=10.100.0.0/24 action=masquerade

Support the Developer

If you found this project helpful for your business or personal use, consider supporting the development.

Support

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages