Community discussions

MikroTik App
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Remove Mikrotik word from ERROR: Gateway Timeout

Tue Nov 10, 2009 9:22 pm

I have Mikrotik routerOS 4.2. I have blocked access to the router page 192.168.1.1. and I get the following error message:

ERROR: Gateway Timeout

While trying to retrieve the URL http://192.168.1.1/:

* Connection timed out

Your cache administrator is webmaster.
Generated Fri, 02 Jan 1970 00:29:31 GMT by 192.168.3.1 (Mikrotik HttpProxy)


How can I remove Mikrotik word from this?
Last edited by namo on Wed Nov 11, 2009 9:19 am, edited 1 time in total.
 
SurferTim
Forum Guru
Forum Guru
Posts: 4636
Joined: Mon Jan 07, 2008 10:31 pm
Location: Miramar Beach, Florida

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Tue Nov 10, 2009 9:31 pm

I think you can change that in
/ip proxy
set cache-administrator=NewName
 
thermant
Frequent Visitor
Frequent Visitor
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Tue Nov 10, 2009 10:16 pm

wouldn't that just change the name "webmaster" to "NewName"? :)

Can you really change the word "Mikrotik"? I don't think you can...

Well, you can if there's a way to change the built-in error page to your own error page, with pictures and all. Is it possible? :)
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Wed Nov 11, 2009 8:36 am

I think you can change that in
/ip proxy
set cache-administrator=NewName
yes this has change webmaster to the NewName
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Wed Nov 11, 2009 9:02 am

Generated Fri, 02 Jan 1970 00:29:31 GMT by 192.168.3.1 (Mikrotik HttpProxy)
You can remove this whole line by editing and removing "$(signature)" from webproxy/error.html under files section.
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Wed Nov 11, 2009 9:10 am

Generated Fri, 02 Jan 1970 00:29:31 GMT by 192.168.3.1 (Mikrotik HttpProxy)
You can remove this whole line by editing and removing "$(signature)" from webproxy/error.html under files section.
I don't have webproxy folder in Mikrotik

I have error.html in hotspot folder bat it does has Mikrotik or $(signature)
Last edited by namo on Wed Nov 11, 2009 9:13 am, edited 1 time in total.
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Wed Nov 11, 2009 9:12 am

Try to run
/ip proxy reset-html
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Wed Nov 11, 2009 9:20 am

Try to run
/ip proxy reset-html
I do not want to reset anything I just want to remove the word "Mikrotik"
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Wed Nov 11, 2009 9:26 am

I do not want to reset anything I just want to remove the word "Mikrotik"
In case you do not have webproxy/error.html file under /file
/ip proxy reset-html
will make one. Then you can dowload this error.html file with FTP, edit, and upload back where it was.
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Wed Nov 11, 2009 9:41 am

I do not want to reset anything I just want to remove the word "Mikrotik"
In case you do not have webproxy/error.html file under /file
/ip proxy reset-html
will make one. Then you can dowload this error.html file with FTP, edit, and upload back where it was.
It worked ; thank you
 
amsteen
Member Candidate
Member Candidate
Posts: 180
Joined: Sat Apr 04, 2009 11:09 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Wed Nov 11, 2009 10:44 am

IS this work with MK V3.22
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Wed Nov 11, 2009 11:13 am

IS this work with MK V3.22
No, this feature was added in v3.28
 
speedzonenetwork
Member Candidate
Member Candidate
Posts: 110
Joined: Mon Aug 03, 2009 8:14 pm

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Wed Nov 11, 2009 12:39 pm

How can we upgrade our system from 3.22 to 3.28?
 
speedzonenetwork
Member Candidate
Member Candidate
Posts: 110
Joined: Mon Aug 03, 2009 8:14 pm

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Wed Nov 11, 2009 8:29 pm

Still waiting for experts suggestion.
 
odie
Member Candidate
Member Candidate
Posts: 216
Joined: Wed Mar 23, 2005 8:31 am
Location: Austria
Contact:

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Wed Nov 11, 2009 8:50 pm

you could spend your time waiting for experts suggestion on reading the wiki or a manual.....
 
thermant
Frequent Visitor
Frequent Visitor
Posts: 93
Joined: Sat Apr 21, 2007 6:17 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Wed Nov 11, 2009 8:57 pm

Ouch, that's harsh... :lol:

But seriously though, you REALLY don't know how to upgrade your routerOS? Wow...

Ehm... Try reading the mikrotik wiki, or maybe the download page? There should be something there...
 
speedzonenetwork
Member Candidate
Member Candidate
Posts: 110
Joined: Mon Aug 03, 2009 8:14 pm

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Thu Nov 12, 2009 10:55 pm

i tried wiki but couldnt find the related topic.
if u know how can i upgrade my Os 3.2 to 4.2 so please write me.

Thanks
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Fri Nov 13, 2009 2:09 am

Google "wiki mikrotik upgrade".
http://wiki.mikrotik.com/wiki/Upgrading_RouterOS
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Sun Nov 15, 2009 6:48 pm

You can remove this whole line by editing and removing "$(signature)" from webproxy/error.html under files section.
what else variables are available in error.html, except of 'url', 'status', 'error' and 'admin'? can I match against local port of proxy? I need to have different messages for 'deny' proxy rules - how can I distinguish among them?
 
kirshteins
MikroTik Support
MikroTik Support
Posts: 592
Joined: Tue Dec 02, 2008 10:55 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Tue Nov 17, 2009 1:05 pm

Currently 'url', 'status', 'error', 'admin' and 'signature' are the only variables. I think that 'signature' could be more divided into smaller parts like 'time' and 'program'. Do you think there should be any other variables? To give different messages to proxy deny rules you can try to play around:

$(if error=='Access Denied')
'access denied text'
$(elseif)
'default text'
$(endif)
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Tue Nov 17, 2009 1:41 pm

unfortunately, if you set 'action=deny', then 'error' is always 'Access Denied' =(

so I see two possible ways: either to add other variables like 'local-port' (at least), or add a possibility to set custom error message in 'deny' rules. or both :)

thanks
 
reinerotto
Long time Member
Long time Member
Posts: 523
Joined: Thu Dec 04, 2008 2:35 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Sat Dec 05, 2009 2:37 pm

IS this work with MK V3.22
No, this feature was added in v3.28
Hi,

I have 4.1 up and running, with hotspot and web-proxy, too.
But I also do NOT have the folder webproxy, only hotspot.
Never seen folder webproxy, though.
I did a clean install. So it looks like a bug in the system installation. I did it from ISO, x586 PC version.

Should I file official bug report, or will you take care of it ? (Which will be much faster, I guess ...)
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Remove Mikrotik work from ERROR: Gateway Timeout

Sat Dec 05, 2009 5:56 pm

the answer was given:

In case you do not have webproxy/error.html file under /file
/ip proxy reset-html
will make one. Then you can dowload this error.html file with FTP, edit, and upload back where it was.
 
reinerotto
Long time Member
Long time Member
Posts: 523
Joined: Thu Dec 04, 2008 2:35 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Sat Dec 05, 2009 10:45 pm

@namo: According to your logic, MT can also omit to create/fill up the complete /hotspot folder during the installation.
And in case, some users complain, that their hotspots do not work, then everybody has to browse this forum to find the solution:

/IP hotspot reset-html


You were joking, weren't you ?
 
namo
Long time Member
Long time Member
Topic Author
Posts: 530
Joined: Sat Oct 03, 2009 4:44 pm

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Sat Dec 05, 2009 11:25 pm

when I put the command
/ip proxy reset-html
in the Terminal

the webproxy folder appear with file error.html which you can edit
 
User avatar
butche
Trainer
Trainer
Posts: 430
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Sun Dec 06, 2009 4:30 am

@namo: According to your logic, MT can also omit to create/fill up the complete /hotspot folder during the installation.
And in case, some users complain, that their hotspots do not work, then everybody has to browse this forum to find the solution:

/IP hotspot reset-html


You were joking, weren't you ?
Mikrotik is not meant to be an "out of the box solution" for everyone. If you are not prepared to experiment, read documentation or ask questions, it is likely not a solution for you. Is that logic much better? Sorry if it offends, but that's how I feel about it. I train people to use Mikrotik software and I spend time reading documentation. That's how I learn, too. Not sure why you'd expect to be any different.
 
reinerotto
Long time Member
Long time Member
Posts: 523
Joined: Thu Dec 04, 2008 2:35 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Sun Dec 06, 2009 12:38 pm

@namo: According to your logic, MT can also omit to create/fill up the complete /hotspot folder during the installation.
And in case, some users complain, that their hotspots do not work, then everybody has to browse this forum to find the solution:

/IP hotspot reset-html


You were joking, weren't you ?
Mikrotik is not meant to be an "out of the box solution" for everyone. If you are not prepared to experiment, read documentation or ask questions, it is likely not a solution for you. Is that logic much better? Sorry if it offends, but that's how I feel about it. I train people to use Mikrotik software and I spend time reading documentation. That's how I learn, too. Not sure why you'd expect to be any different.

Obviously, we have a different understanding of "Quality of Software".
RoS is a software product, with documented functionaliyt. At least, supposed to be. Not a "secret" to be explored. Not a "secret" to be known only by "adepts".
So:
Regarding " not prepared read documentation "...: Sorry, where is the docs about the existance or purpose of /webproxy directory ?
In case of proper documentation, the original question of this thread (and a few others) would not have been asked.
Or, in case during SW-installation, this directory would have been created, the original poster of the problem and myself would have seen it and modified error.html ourselves.
So I call it a "Bug" of the installation routine.

Of course, I understand your standpoint. To keep the secrets, to protect your job. Sorry, offending you.

As a "programming-dinosaur", I know this discussion already for a long period of time.
Similar is the discussion about "User errors". One of my customers told me: "There is no such thing like a user error". And he was right. BTW, this customer is from a large international airline ....
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Sun Dec 06, 2009 6:17 pm

You don't want to create the file structure when a version of RouterOS that supports the editable error.html gets installed, because the RouterOS installer simply unpacks packages into the file system, overwriting existing files. If you were to blindly write the directory and the file, you might be overwriting a user's previous customization.
Also, rather arguably the file structure shouldn't exist if the user doesn't use the web proxy feature.

Thus the file structure is created when the web proxy is enabled. If I remember correctly from playing with the feature this works as expected if you Netinstall (wiping out the config), or turn off the web proxy, delete the file structure, and turn it back on. The only case in which the file structure doesn't exist is when you were running web proxy in earlier than the version in which the editable error.html got introduced and upgraded to a later version. The install process can't create the file structure, and there's no triggered event when turning on the proxy feature because it's already on.

File a bug report if you'd like but I'm not sure they can work around it.

As far as there being no such thing as user errors - that's certainly true for 'public applications', i.e. things that everyone regardless of training must be able to use. RouterOS isn't such an application, it's special use. So I vehemently disagree. But that's more of a philosophical discussion and besides the point.
 
User avatar
butche
Trainer
Trainer
Posts: 430
Joined: Fri May 28, 2004 6:14 pm
Location: Missouri, USA
Contact:

Re: Remove Mikrotik word from ERROR: Gateway Timeout

Sun Dec 06, 2009 9:36 pm

Obviously, we have a different understanding of "Quality of Software".
RoS is a software product, with documented functionaliyt. At least, supposed to be. Not a "secret" to be explored. Not a "secret" to be known only by "adepts".
You are missing my point. I was responding to the following statement you made:
And in case, some users complain, that their hotspots do not work, then everybody has to browse this forum to find the solution:
My point is/was that there is NO software that is as complex as Mikrotik that, even with documentation, does not require anyone using it to it's potential to occasionally visit the forums/documentation/other support channels. Anyone who suggests or expects otherwise has unrealistic expectations.
Regarding " not prepared read documentation "...: Sorry, where is the docs about the existance or purpose of /webproxy directory ?
It's here in this forum. It is, in fact, right here in this thread.
In case of proper documentation, the original question of this thread (and a few others) would not have been asked.
Do you use Windows, Mac and/or a Linux OS? Do you ever have to search for answers to questions on those operating systems? Ever used ANY software that did not require you to search for some documentation? Mikrotik has done a very nice job of getting the documentation online (2.9.x series was EXCELLENT, 3.x documentation was lacking until recently). It is not 100% of all functionality, but MOST of it is there. Now, MY question for you...Before you joined this converstation here in the forum, did you look in the wiki for an answer?
Or, in case during SW-installation, this directory would have been created, the original poster of the problem and myself would have seen it and modified error.html ourselves.
So I call it a "Bug" of the installation routine.
First, I don't use web proxy. I do not want my file system cluttered with such a file. So I would call the creation of the webproxy directory a bug if it was there. It works both ways...

Of course, I understand your standpoint. To keep the secrets, to protect your job. Sorry, offending you.
LOL. I'm not offended at all. First, If you think I am out to "keep secrets", you should visit my blog and view other posts I've made here on the forum. Also, visit my mailing lists and see my posts there. NONE of those things will indicate that my intent is to keep secrets. Personally, I get tired of simple questions (such as this thread) and would rather move on to more complex networking applications.

Similar is the discussion about "User errors". One of my customers told me: "There is no such thing like a user error". And he was right. BTW, this customer is from a large international airline ....
No, he was NOT right. I've been supporting end users for too long to believe that statement. I have seen some really stupid user errors. Everything from leaving gear unplugged (and expecting it to work) to the inablility to read what is right on the screen.

Who is online

Users browsing this forum: No registered users and 21 guests