Community discussions

MikroTik App
 
erkel
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 58
Joined: Sun May 27, 2007 12:04 pm

RouterOS as a basic webserver

Fri Feb 07, 2020 1:58 am

Any ideas on how to host a simple html page on routeros.
Need it for government compliance, but do not want to have to pay for a seperate linux vm.
 
td32
Member Candidate
Member Candidate
Posts: 112
Joined: Fri Nov 18, 2016 5:55 am

Re: RouterOS as a basic webserver

Fri Feb 07, 2020 8:11 am

all i can think is replacing the hotspot login page or kind of that
 
gotsprings
Forum Guru
Forum Guru
Posts: 2307
Joined: Mon May 14, 2012 9:30 pm

Re: RouterOS as a basic webserver

Sat Feb 08, 2020 5:39 am

Get a raspberry pi and put it on the network.
 
User avatar
rooted
Member Candidate
Member Candidate
Posts: 129
Joined: Tue Feb 04, 2020 5:58 pm

Re: RouterOS as a basic webserver

Sat Feb 08, 2020 8:13 am

all i can think is replacing the hotspot login page or kind of that
Can you do that?
 
r00t
Long time Member
Long time Member
Posts: 674
Joined: Tue Nov 28, 2017 2:14 am

Re: RouterOS as a basic webserver

Sat Feb 08, 2020 4:14 pm

yes, you can use hotspot server for that, to serve static webpage.
You only have to enable it on selected interface where it should listen to requests and then modify/add required html pages.
It's all described in the wiki...
 
erkel
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 58
Joined: Sun May 27, 2007 12:04 pm

Re: RouterOS as a basic webserver

Mon Feb 17, 2020 3:18 am

I know the hotspot function can do it,
But I cannot see on the wiki how to set it up as a simple webserver. I want to put it on the public facing internet interface, It is the only non vpn interface on the router.

It is a VM in a datacenter with a single ethernet interface., I cannot simply enable the hotspot interface on the public interface as it will take the mikrotik offline?
 
r00t
Long time Member
Long time Member
Posts: 674
Joined: Tue Nov 28, 2017 2:14 am

Re: RouterOS as a basic webserver

Mon Feb 17, 2020 5:58 pm

There is no webserver in ROS, only hotspot. That's it. Either figure out how to (ab)use it for your purpose or find some completely different solution outside of ROS.
 
Sob
Forum Guru
Forum Guru
Posts: 9188
Joined: Mon Apr 20, 2009 9:11 pm

Re: RouterOS as a basic webserver

Mon Feb 17, 2020 8:04 pm

I'd use slightly different description, there's webserver in RouterOS and it could easily handle hosting few user files, but currently no such use is supported, except for hotspot. But the whole webserver is already there, and it would require only few tiny changes to allow this, so it wouldn't be bad thing, because sometimes it could be useful for something.

Until that happens, I'd try to configure hotspot on some unused interface (empty bridge for example) and redirect traffic to its webserver from elsewhere. I didn't try it, but it could work.

Who is online

Users browsing this forum: kbabioch and 32 guests