2 WAN + 2 LAN , with PCC+HOTSPOT problem

this is my project assignment:

My Problem:
Client from HOTSPOT1, success in nslookup of travosh.com (login page). But, when i try to search google.com, it doesn’t auto redirect to login page. have to manually type travosh.com or ip-hotspot-server
Client from HOTSPOT 2 doesn’t get dhcp of 190.79.7— , but got a dhcp of 190.79.8.—. Could ping travosh.com but cannot Ping 190.79.7.1. nslookup of travosh.com, server unknown, ip :190.79.8.1…

if my ip config is 190.79.8.1/16 and 190.79.7.1/16… it doesn;t work at all… RTO and general failure… the dhcp doesn’t work.

what is the right config for IP Pool?
make 2 different IP Pool of 190.79.8.— & 190.79.7.— ? if so, what is the right Routing Config?

or any other answer ?

^^Thx in advance…

/interface set ether2 name=WAN1
/interface set ether3 name=WAN2
/interface set ether4 name=HOTSPOT1
/interface set ether5 name=HOTSPOT2
/ip address
add address=190.79.8.1/24 network=190.79.8.0 broadcast=190.79.8.255 interface=HOTSPOT1
add address=190.79.7.1/24 network=190.79.7.0 broadcast=190.79.7.255 interface=HOTSPOT2
add address=200.4.2.11/24 network=200.4.2.0 broadcast=200.4.2.255 interface=WAN1
add address=192.168.169.2/24 network=192.168.169.0 broadcast=192.168.169.255 interface=WAN2

/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=190.79.8.1,8.8.8.8,8.8.4.4

/ip firewall mangle
add chain=input in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn
add chain=input in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn
/ip firewall mangle
add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1
add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_WAN2
/ip firewall mangle
add chain=prerouting dst-address=200.4.2.0/24 action=accept in-interface=HOTSPOT1
add chain=prerouting dst-address=192.168.169.0/24 action=accept in-interface=HOTSPOT1
add chain=prerouting dst-address=200.4.2.0/24 action=accept in-interface=HOTSPOT2
add chain=prerouting dst-address=192.168.169.0/24 action=accept in-interface=HOTSPOT2
/ip firewall mangle
add chain=prerouting dst-address-type=!local hotspot=auth in-interface=HOTSPOT1 per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
add chain=prerouting dst-address-type=!local hotspot=auth in-interface=HOTSPOT1 per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
add chain=prerouting dst-address-type=!local hotspot=auth in-interface=HOTSPOT2 per-connection-classifier=both-addresses-and-ports:2/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
add chain=prerouting dst-address-type=!local hotspot=auth in-interface=HOTSPOT2 per-connection-classifier=both-addresses-and-ports:2/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes
/ip firewall mangle
add chain=prerouting connection-mark=WAN1_conn in-interface=HOTSPOT1 action=mark-routing new-routing-mark=to_WAN1
add chain=prerouting connection-mark=WAN2_conn in-interface=HOTSPOT1 action=mark-routing new-routing-mark=to_WAN2
add chain=prerouting connection-mark=WAN1_conn in-interface=HOTSPOT2 action=mark-routing new-routing-mark=to_WAN1
add chain=prerouting connection-mark=WAN2_conn in-interface=HOTSPOT2 action=mark-routing new-routing-mark=to_WAN2
/ip route
add dst-address=0.0.0.0/0 gateway=200.4.2.11 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.169.2 routing-mark=to_WAN2 check-gateway=ping
/ip route
add dst-address=0.0.0.0/0 gateway=200.4.2.11 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.169.2 distance=2 check-gateway=ping
/ip firewall nat
add chain=srcnat out-interface=WAN1 action=masquerade
add chain=srcnat out-interface=WAN2 action=masquerade

/ip address
add address=190.79.8.1/24 disabled=no interface=HOTSPOT1 network=190.79.8.0
add address=190.79.7.1/24 disabled=no interface=HOTSPOT2 network=190.79.7.0

/ip pool
add name=hs-pool-1 ranges=190.79.7.10-190.79.8.200
/ip dhcp-server
add address-pool=hs-pool-1 authoritative=after-2sec-delay bootp-support=static disabled=no interface=HOTSPOT1 lease-time=1h name=dhcp1
add address-pool=hs-pool-2 authoritative=after-2sec-delay bootp-support=static disabled=no interface=HOTSPOT2 lease-time=1h name=dhcp2
/ip dhcp-server config set store-leases-disk=5m
/ip dhcp-server network
add address=190.79.8.0/24 comment=”hotspot network” gateway=190.79.8.1
add address=190.79.7.0/24 comment=”hotspot network” gateway=190.79.7.1

/ip hotspot profile
set default dns-name=”" hotspot-address=0.0.0.0 html-directory=hotspot http-cookie-lifetime=3d http-proxy=0.0.0.0:0 login-by=http-chap name=default rate-limit=”" smtp-server=0.0.0.0 split-user-domain=no use-radius=no
add dns-name=travosh.com hotspot-address=190.79.8.1 html-directory=hotspot http-cookie-lifetime=1d http-proxy=0.0.0.0:0 login-by=http-chap name=hsprof1 rate-limit=”" smtp-server=0.0.0.0 split-user-domain=no use-radius=no
/ip hotspot
add address-pool=hs-pool-1 addresses-per-mac=1 disabled=no idle-timeout=15m interface=HOTSPOT1 keepalive-timeout=none name=HOTSPOT profile=hsprof1
/ip hotspot user profile
set default idle-timeout=15m keepalive-timeout=2m name=default shared-users=1 status-autorefresh=1m transparent-proxy=no
add address-pool=hs-pool-1 advertise=no idle-timeout=none keepalive-timeout=2m name=”512k Limit” open-status-page=always rate-limit=512k/512k shared-users=1 status-autorefresh=1m transparent-proxy=yes
add address-pool=hs-pool-1 advertise=no idle-timeout=none keepalive-timeout=2m name=”256k Limit” open-status-page=always rate-limit=256k/256k shared-users=1 status-autorefresh=1m transparent-proxy=yes
/ip hotspot service-port set ftp disabled=yes ports=21
/ip hotspot walled-garden ip add action=accept disabled=no dst-address=190.79.8.1
/ip hotspot set numbers=HOTSPOT address-pool=none
/ip firewall nat add action=masquerade chain=srcnat disabled=no
/ip hotspot user
add disabled=no name=admin password=777777 profile=default
add disabled=no name=test-512k password=1234 profile=”512k Limit” server=HOTSPOT
add disabled=no name=test-256k password=1234 profile=”256k Limit” server=HOTSPOT

This is old but i am going to help you in case someone comes across this.

/ip firewall mangle
add chain=input connection-mark=no-mark connection-state=new in-interface=WAN1 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes
add chain=input connection-mark=no-mark connection-state=new in-interface=WAN2 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes

/ip firewall mangle
add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1
add chain=output connection-mark=WAN2_conn action=mark-routing new-routing-mark=to_WAN2

/ip firewall mangle
add chain=prerouting dst-address=200.4.2.0/24 action=accept in-interface=HOTSPOT1
add chain=prerouting dst-address=192.168.169.0/24 action=accept in-interface=HOTSPOT1
add chain=prerouting dst-address=200.4.2.0/24 action=accept in-interface=HOTSPOT2
add chain=prerouting dst-address=192.168.169.0/24 action=accept in-interface=HOTSPOT2

/ip firewall mangle

add action=mark-connection chain=prerouting dst-address-type=!local in-interface=HOTSPOT1 new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=190.79.8.0/24
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=HOTSPOT1 new-connection-mark=WAN2_conn passthrough=yes per-connection-classifier=both-addresses:2/1 src-address=190.79.8.0/24
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=HOTSPOT2 new-connection-mark=WAN1_conn passthrough=yes per-connection-classifier=both-addresses:2/0 src-address=190.79.7.0/24
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=HOTSPOT2 new-connection-mark=WAN2_conn passthrough=yes per-connection-classifier=both-addresses:2/1 src-address=190.79.7.0/24

/ip firewall mangle
add chain=prerouting connection-mark=WAN1_conn in-interface=HOTSPOT1 action=mark-routing new-routing-mark=to_WAN1
add chain=prerouting connection-mark=WAN2_conn in-interface=HOTSPOT1 action=mark-routing new-routing-mark=to_WAN2

add chain=prerouting connection-mark=WAN1_conn in-interface=HOTSPOT2 action=mark-routing new-routing-mark=to_WAN1
add chain=prerouting connection-mark=WAN2_conn in-interface=HOTSPOT2 action=mark-routing new-routing-mark=to_WAN2

/ip route
add dst-address=0.0.0.0/0 gateway=200.4.2.11 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.169.2 routing-mark=to_WAN2 check-gateway=ping

/ip firewall nat
add chain=srcnat out-interface=WAN1 action=masquerade
add chain=srcnat out-interface=WAN2 action=masquerade