topology : internet ->modem->mikrotik->switch->lan (pc desktop)
…->mikrotik hotspot (smartphone wifi/hotspot)
i have internet 2 line wan1 and wan2, use mikrotik to separate port game online and port browsing using static routing mark connection and mark routing
network :
ether 1 = wan1 : : pppoe-out1
ether 2 = wan2 : : pppoe-out2
ether 3 = lan : 192.168.10.1/24
ether 4 = bridge-hotspot : 192.168.20.1/24 (result bridging ether 4 and wlan1)
/ip firewall mangle
add action=mark-connection chain=prerouting dst-port=80,8080,8888,443,10000 \new-connection-mark=browsing protocol=tcp src-address=192.168.10.0/24
add action=mark-routing chain=prerouting connection-mark=browsing dst-port=\80,8080,8888,443,10000 new-routing-mark=browsing passthrough=no protocol=\tcp
/ip route
ip route.jpg
problem :
if i use pppoe-out1 or pppoe-out2 “one of both” set as yes to “add default route” in "ppp->interface->dial up, “Hotspot Running Well” browsing,etc, BUT mark connection,mark routing in ip firewall mangle not working/useless
if i set no thick/leave empty “add default route” in both ppoeout 1 dan ppoeout 2, “Lan Running Well” mark connection,mark routing,etc, BUT hotspot connected with no internet/can’t browsing,etc
how to make hotspot use connection from pppoe-out1 or pppoe-out2 with set no thick/leave empty “add default route” in (ppp->interface->dial up) both ppoeout 1 and ppoeout 2 with that mark connection,mark routing to separate port game online and port browsing in ip firewall mangle will running also, i hope you understand what i mean. any suggestion how to resolve this ? thank you for your help.
note: i create hotspot auto use “hotspot setup” so there is ip firewall filter,ip firewall nat for hotspot made by system.
the way that i try :
try 1. /ip firewall mangle
add chain=prerouting in-interface=bridge-hotspot action=mark-routing new-routing-mark=hotspot-browsing
/ip route
add dst-address=0.0.0.0/0 routing-mark=hotspot-browsing gateway=ppoe-out1 distance=1
try 2. /ip firewall mangle
add action=mark-connection chain=prerouting new-connection-mark=hotspot src-address=192.168.20.0/24
add action=mark-routing chain=prerouting connection-mark=hotspot new-routing-mark=hotspot-browsing
/ip route
add dst-address=0.0.0.0/0 routing-mark=hotspot-browsing gateway=pppoe-out1
“not working”