Question

Installing Mikrotik RouterOS

  • Posted on June 18, 2015
  • VPN
  • ZedexAsked by Zedex

Hello! I would like to set up VPN server for my company using Mikrotik RouterOS. Is it possible to install it from iso? RouterOS lacks some virtIO drivers and thus can only be installed on Xen VPS.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Take a fresh Ubuntu 16.04 droplet and run this command:

wget http://download2.mikrotik.com/routeros/6.36.4/chr-6.36.4.img.zip -O chr.img.zip  && \
gunzip -c chr.img.zip > chr.img  && \
mount -o loop,offset=33554944 chr.img /mnt && \
ADDRESS=`ip addr show eth0 | grep global | cut -d' ' -f 6 | head -n 1` && \
GATEWAY=`ip route list | grep default | cut -d' ' -f 3` && \
echo "/ip address add address=$ADDRESS interface=[/interface ethernet find where name=ether1]
/ip route add gateway=$GATEWAY
 " > /mnt/rw/autorun.scr && \
umount /mnt && \
echo u > /proc/sysrq-trigger && \
dd if=chr.img bs=1024 of=/dev/vda && \
reboot

After half a minute you will be able to login into your new cloud router. Do not forget to setup a password! That image will also keep IP and gateway after configuration reset.

Hello, there is a way to add floating ip?

https://www.digitalocean.com/docs/networking/floating-ips/

Regards

Give some time for qemu-nbd to be ready mount: special device /dev/nbd0p2 does not exist resize2fs 1.42.13 (17-May-2015) open: No such file or directory while opening /dev/nbd0p2

always stuck in there