Protect Modem And Webfig Pages Using Internal Proxy - MikroTik Script RouterOS

This trick is to display the spice of the message page for those who want to try nosy to enter the modem or webfig Mikrotik page so that it is exciting and different, here we only use the error page on the proxy internal proxy. The condition is to make sure the web proxy is not used and the WWW 80 IP service should change to another port Ok, just go straight to the tutorial: IP MODEM = 192.168.1.1 (just adjust the ip towards the modem) IP WINBOX = 192.168.88.1 (just adjust ip towards mikrotik) PUBLIC IP = 36.80.82.61 (public ip can be automated later, this is only an example) 1. Paste this in new terminal /ip firewall nat add action=redirect chain=dstnat dst-address="36.80.82.61" disabled=no dst-port=80 protocol=tcp to-ports=3128 comment="Modem Protect" add action=redirect chain=dstnat dst-address="192.168.1.1" disabled=no dst-port=80 protocol=tcp to-ports=3128 add action=redirect chain=dstnat dst-address="192.168.88.1" disabled=no dst-port=80 protocol=tcp to-ports=3128 /ip proxy set enabled=yes port=3128 2. Then paste the new terminal function to get a public IP /system scheduler add name=GET-IP-PUBLIC on-event="/tool fetch url=\"http://myip.dnsomatic.com/mypub\ licip.txt\" mode=http\r\ \n:local mypublicip [file get mypublicip.txt contents ]\r\ \n/ip firewall nat set [find comment=\"Modem Protect\"] dst-address=\$mypu\ blicip" policy=\ ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \ start-time=startup 3. To activate the html error page we just need to press the Reset HTML button 4. Don't forget to block all access to the proxy, we can make an IP exception that has been specified. in this example I use global 5.Edit the webproxy / error.html page here basic html skills are needed, please change it yourself :D 6. If you don't want to be bothered, download error.html first then just edit and copy the code below to the error.html page <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> <title>protect and secure</title> <style id='page-skin-1' type='text/css'> body { background-color: black; color: green; } h1, h2, h3, h4, Ah5, h6{font-weight:700; font-family: 'open sans', helvetica, arial, sans-serif;font-size: 300%; color:#green} </style> </head> <body bgcolor="#111111"> <table border="0" height="100%" width="100%"> <tr valign="middle"> <td align="center"> <table border="0"> <tr> <td colspan="3"> <center><h1>[ protect and secure ]</h1></center> </td> </tr> <tr> <td width="20%"> </td> <td> <font face="tahoma,verdana,comic sans ms"> <br> demi keamanan halaman ini diproteksi dan dijaga ketat oleh administrator jaringan</font> </td> <td width="20%"> </td> </tr> <tr> <td width="20%"> </td> <td> <font face="tahoma,verdana,comic sans ms"> <br> silahkan hubungi admin jaringan anda <a href="https://www.facebook.com/buananet.pangkalanbun">buananet</a> atau <a href="https://www.facebook.com/buananetmikrotik/">jasa setting mikrotik</a></font> </td> <td width="20%"> </td> </tr> </table> </td> </tr> <tr valign="bottom"> <td> <hr size="1"> <table width="100%" border="0"> <tr> <td width="40%"> <font face="tahoma,verdana,comic sans ms"> contact: 08132829XXX<br />e-mail: XXXX@gmail.com </font> </td> <td width="10%" align="center"> © copyright by buananet secure </td> </table> </td> </tr> </table> </body> </html> I am not responsible if there are mistakes, so please be creative yourself.
Hits

<- Back To Home