Community discussions

MikroTik App

Search found 13 matches

by delhite2
Tue Feb 06, 2024 10:39 am
Forum: General
Topic: Firewall to block access to vlan from Hotspot
Replies: 0
Views: 389

Firewall to block access to vlan from Hotspot

I am attaching my network diagram. There are 2 vlans on 2 ssid running on an AP. One ssid with vlan 100 for hotspot and one ssid with vlan 200 for CCTV which does not need internet access. Obviously Hotspot needs WAN access on ether 1. current config of ports are: ether 1 = Wan ether 2,3,4 are trunk...
by delhite2
Thu Jan 25, 2024 1:05 pm
Forum: Useful user articles
Topic: Using RouterOS to VLAN your network
Replies: 301
Views: 485544

Re: Using RouterOS to VLAN your network

alright i after a lot of struggle have been able to setup a VLAN. single-bridge vlan1 vlan20 | | ether1 WAN PORT OF MIKROTIK | | ether2 -----(T)------(T) | | ether3 -----(T)------(T) | | ether4 -----(T)------(T) | | ether5 -----(0)------(A) (A) - the port is an Access port for that VLAN: (T) - the p...
by delhite2
Fri Apr 30, 2021 11:06 pm
Forum: General
Topic: Display Maintenance Message To Users
Replies: 11
Views: 6479

Re: Display Maintenance Message To Users

you bump a thread from 2014 for another site than have a copy-paste of aleady existent post from 12 Mar 2018 on mikrotik forum??? https://forum.mikrotik.com/viewtopic.php?p=822430#p647548 and is not well copy-pasted because missing some pieces... original author: Muqatil (Renato Bernardi) you get r...
by delhite2
Fri Apr 30, 2021 9:23 pm
Forum: General
Topic: Display Maintenance Message To Users
Replies: 11
Views: 6479

Re: Display Maintenance Message To Users

there you go. somebody improved on the script for showing a maintenance page posted here https://forum.mikrotik.com/viewtopic.php?p=822430 and posted at this site https://buy.guru it works perfectly and works flawlessly, attaching the direct link to script here. but as written do remember to create ...
by delhite2
Wed Oct 14, 2020 9:26 am
Forum: General
Topic: Offline Hotspot.
Replies: 3
Views: 2063

Re: Offline Hotspot.

viewtopic.php?p=822430#p822430
Works for offline hotspot!

Sent from my LYA-L29 using Tapatalk

by delhite2
Wed Oct 14, 2020 9:24 am
Forum: General
Topic: Hotspot Authentication Even Without Internet
Replies: 12
Views: 8679

Re: Hotspot Authentication Even Without Internet

viewtopic.php?p=822430#p822430
Better solution.

Sent from my LYA-L29 using Tapatalk

by delhite2
Wed Oct 14, 2020 8:42 am
Forum: General
Topic: Hotspot login/redirect page without internet
Replies: 31
Views: 34054

Re: Hotspot login/redirect page without internet

So I managed to get it working. You need to do few additional things though, to get it to redirect properly and to fool the clients. This is my down script {\ /ip dns static remove [/ip dns static find where name~"your hotspot fqdn"];\ /ip dns cache flush ;\ /ip dns static disable [/ip dns...
by delhite2
Mon May 13, 2019 8:59 pm
Forum: Scripting
Topic: Script needed
Replies: 8
Views: 3824

Re: Script needed

Have you seen many attempts to spoof the mac address? As long as you get in a log, you can send it to external syslog server and graph it. See my signature for example on monitoring MT using Splunk. Not really, but I am logging all connections for legal purposes. But now have separated the log file...
by delhite2
Mon May 13, 2019 11:56 am
Forum: Scripting
Topic: Script needed
Replies: 8
Views: 3824

Re: Script needed, mac spoof protection.

:local mac $leaseActMAC :local host $"lease-hostname" :global leaseBound :if ($leaseBound = 1) do={ :local maccheck [/ip firewall mangle print count-only where comment~"$mac"] :local hostcheck [/ip firewall mangle print count-only where comment="$host - $mac "] :if ($ma...
by delhite2
Sun May 12, 2019 8:05 pm
Forum: Scripting
Topic: Script needed
Replies: 8
Views: 3824

Re: Script needed

:local mac $leaseActMAC :local host $"lease-hostname" :if ([/ip firewall mangle print count-only where comment~"$mac"]=0) do={ :log info "$mac doesnt exists, allowed" } else ={ :local male (/ip firewall mangle get value-name=comment (find where comment~"$mac")...
by delhite2
Sat May 11, 2019 2:24 pm
Forum: Scripting
Topic: Script needed
Replies: 8
Views: 3824

Re: Script needed

< { :local mac $leaseActMAC :local host $"lease-hostname" :local male [/ip firewall mangle get value-name=comment [find comment~"$mac"]] :local comp "$host - $mac " :log info "$male" :log info "$comp"; :local leng [:len [find $male "\$@"]] ...
by delhite2
Fri May 10, 2019 4:57 pm
Forum: Scripting
Topic: Script needed
Replies: 8
Views: 3824

Script needed

I am looking for a dhcp lease script, have tried my all for many days. I want the script to match the combo of "host name - Mac" to previously saved "host name - Mac" in firewall mangle comments ( which is used to log traffic of users in hotspot). If it matches dhcp lease should ...