I have a MikroTik router that I configured by myself, but I am facing an issue. When a client connects to the network I configured through the access point, a problem occurs: after being connected for about 2–3 minutes, the client gets disconnected, and the SSID disappears from the client device and does not appear again. The SSID only comes back after I unplug and reconnect the LAN cable between the access point and the MikroTik router.
I am still a beginner and I don’t know where my mistake is. Could you please help me? Below is my MikroTik configuration.
==================================================
MikroTik Configuration Export
RouterOS : 7.20.6
Device : RB450Gx4
Purpose : Dual ISP Load Balancing (PCC)
==================================================
--------------------
Interface & Bridge
--------------------
/interface bridge
add name=Bridge-Lan
/interface bridge port
add bridge=Bridge-Lan interface=ether3
add bridge=Bridge-Lan interface=ether4
add bridge=Bridge-Lan interface=ether5
--------------------
IP Addressing
--------------------
/ip address
add address=192.168.0.1/24 interface=Bridge-Lan network=192.168.0.0
--------------------
DHCP Server
--------------------
/ip pool
add name=dhcp_pool1 ranges=192.168.0.2-192.168.0.254
/ip dhcp-server
add name=dhcp1 interface=Bridge-Lan address-pool=dhcp_pool1 lease-time=1h
/ip dhcp-server network
add address=192.168.0.0/24
gateway=192.168.0.1
dns-server=8.8.8.8,1.1.1.1,1.0.0.1,8.8.4.4
--------------------
DNS
--------------------
/ip dns
set allow-remote-requests=yes
servers=8.8.8.8,1.1.1.1,1.0.0.1,8.8.4.4
--------------------
WAN DHCP Client
--------------------
/ip dhcp-client
add interface=ether1 disabled=yes default-route-tables=main
add interface=ether2 default-route-tables=main
--------------------
Routing Tables
--------------------
/routing table
add name=to_ISP1 fib
add name=to-ISP2 fib
--------------------
Firewall Filter
--------------------
/ip firewall filter
add chain=forward action=fasttrack-connection
connection-state=established,related hw-offload=yes
add chain=forward action=accept
connection-state=established,related
add chain=forward action=drop
connection-state=invalid
add chain=forward action=drop
connection-state=new connection-nat-state=dstnat
in-interface=ether2
--------------------
Firewall Mangle (PCC)
--------------------
/ip firewall mangle
Bypass local & internal traffic
add chain=prerouting action=accept dst-address=10.11.24.0/21
add chain=prerouting action=accept dst-address=192.168.1.0/24
add chain=prerouting action=accept dst-address=192.168.0.0/24
Mark connection from WAN
add chain=prerouting in-interface=ether1
action=mark-connection new-connection-mark=ISP1
add chain=prerouting in-interface=ether2
action=mark-connection new-connection-mark=ISP2
PCC Load Balancing from LAN
add chain=prerouting in-interface=Bridge-Lan
action=mark-connection new-connection-mark=ISP2
per-connection-classifier=both-addresses:4/0
add chain=prerouting in-interface=Bridge-Lan
action=mark-connection new-connection-mark=ISP1
per-connection-classifier=both-addresses:4/1
add chain=prerouting in-interface=Bridge-Lan
action=mark-connection new-connection-mark=ISP2
per-connection-classifier=both-addresses:4/2
add chain=prerouting in-interface=Bridge-Lan
action=mark-connection new-connection-mark=ISP2
per-connection-classifier=both-addresses:4/3
Mark routing
add chain=prerouting in-interface=Bridge-Lan
connection-mark=ISP1 action=mark-routing
new-routing-mark=to_ISP1
add chain=prerouting in-interface=Bridge-Lan
connection-mark=ISP2 action=mark-routing
new-routing-mark=to-ISP2
add chain=output connection-mark=ISP1
action=mark-routing new-routing-mark=to_ISP1
add chain=output connection-mark=ISP2
action=mark-routing new-routing-mark=to-ISP2
--------------------
NAT
--------------------
/ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade
add chain=srcnat out-interface=ether2 action=masquerade
--------------------
Routes
--------------------
/ip route
Main routes per routing table
add dst-address=0.0.0.0/0 gateway=10.11.24.1
routing-table=to_ISP1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1
routing-table=to-ISP2 check-gateway=ping
Failover routes
add dst-address=0.0.0.0/0 gateway=192.168.1.1
routing-table=to_ISP1 distance=2
add dst-address=0.0.0.0/0 gateway=10.11.24.1
routing-table=to-ISP2 distance=2
--------------------
Queue
--------------------
/queue simple
add name="Balmon AP 1" target=Bridge-Lan
limit-at=25M/25M max-limit=50M/50M
queue=pcq-upload-default/pcq-download-default
--------------------
System
--------------------
/system clock
set time-zone-name=Asia/Makassar
/system identity
set name="Load Balance 2 ISP"
/system routerboard settings
set enter-setup-on=delete-key