Community discussions

MikroTik App
 
User avatar
Wangz
newbie
Topic Author
Posts: 39
Joined: Wed Apr 15, 2020 4:41 pm

2 Wan for Gaming and Browsing (need help)

Wed Apr 15, 2020 5:09 pm

Hi guys, i just recently bought this mikrotik router hap light and previously i have TP-LINK router which is the TL-r470T+ version. In my previous router, I separated both wan for gaming and browsing. Now because it has a limitation issue, I bought mikrotik to fix related port issue. I've watched couple tutorials on youtube on how to set up the mangle or messing with it. It was quite confusing at first but i think i understand some of it. But anyways i got through it and i don't even know if my setup did work but from my own perspective the games did not lag on my setup when i do the speedtest. I used the mark routing to mark the ports and ip address of the game to route them into the different interface for gaming. Also for the browsing i marked the connection and packets for queue bandwidth and use the mark routing to route the http port to the different interface. Also, i made an setup for fail over through netwatch that pings into 8.8.8.8 and 8.8.4.4 and made some various script in the ip routes that triggers the failover. Can you guys check for me if my setup is right? I also had headache trying to make this thing to work and i'ts been 5 days since i was doing this.

Here are the pictures

https://imgur.com/a/S8Tc70A

Config
/interface ethernet
set [ find default-name=ether1 ] name=ether1-hotspot
set [ find default-name=ether2 ] name="ether2-PLDT browsing"
set [ find default-name=ether3 ] comment="LAN HUB 1GB" name="ether3-LANHUB LOCAL OUT"
set [ find default-name=ether4 ] name="ether4-PLDT gaming"
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa-psk,wpa2-psk eap-methods="" supplicant-identity=MikroTik
/ip dhcp-server
add disabled=no interface=ether1-hotspot lease-time=1h name=dhcp2
/ip firewall layer7-protocol
add comment=download name=high regexp="^.*get.+\\.(exe|rar|iso|zip|7zip|0[0-9][1-9]|flv|mkv|avi|mp4|3gp|rmvb|mp3|img|dat|mov).*\$"
add comment=download name=document regexp="^.*get.+\\.(pdf|doc|docx|xlsx|xls|rtf|ppt|ppt).*\$"
add comment=Facebook name=streaming regexp=videoplayback|watch
add comment=video name="Youtube Layer 7" regexp="^..+\\.(youtube.com|googlevideo.com).*\$"
/ip hotspot profile
set [ find default=yes ] login-by=http-chap split-user-domain=yes
add dns-name=elx.net hotspot-address=10.5.50.1 login-by=http-chap name=hsprof1 split-user-domain=yes
/ip pool
add name=dhcp_pool2 ranges=192.168.1.3-192.168.1.254
add name=dhcp_pool4 ranges=192.168.1.4-192.168.1.254
add name=DHCP ranges=192.168.0.34-192.168.0.60
/ip dhcp-server
add address-pool=DHCP disabled=no interface="ether3-LANHUB LOCAL OUT" name=dhcp1
add address-pool=dhcp_pool2 disabled=no interface="ether2-PLDT browsing" name=dhcp3
add address-pool=dhcp_pool4 disabled=no interface="ether4-PLDT gaming" name=dhcp4
/queue type
set 0 pfifo-limit=20
add kind=pcq name=queue1 pcq-classifier=src-address pcq-limit=70KiB pcq-rate=526k
add kind=pcq name=PCQ-D-2M pcq-burst-time=5s pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-rate=2M pcq-src-address6-mask=64
add kind=pcq name=PCQ-U-300K pcq-burst-time=3s pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=300k pcq-src-address6-mask=64
add kind=pcq name=PCQ-U-1M pcq-classifier=src-address pcq-dst-address6-mask=64 pcq-rate=1M pcq-src-address6-mask=64
add kind=pcq name=PCQ-5M pcq-classifier=dst-address pcq-dst-address6-mask=64 pcq-src-address6-mask=64
/queue interface
set "ether3-LANHUB LOCAL OUT" queue=default-small
/queue simple
add name="All bandwidth" queue=default/default target="ether3-LANHUB LOCAL OUT"
add name="Wang Yeo PC" parent="All bandwidth" queue=default/default target=192.168.0.44/32
add name=Timer parent="All bandwidth" queue=default/default target=192.168.0.33/32
add name=Server parent="All bandwidth" queue=default/default target=192.168.0.45/32
add name="All clients" parent="All bandwidth" queue=default/default target=192.168.0.0/24
/queue tree
add name="All Speed" parent=global queue=default
add name=PLDT1 packet-mark="PLDT BROWSING DOWNLOAD" parent="All Speed"
add name="Browsing Traffic DL" packet-mark="Http Download pk" parent=PLDT1
add name=PLDT1-1 packet-mark="PLDT BROWSING UPLOAD" parent="All Speed" queue=PCQ-U-1M
add name="Browsing Traffic UP " packet-mark="Http Upload pk" parent=PLDT1-1 queue=PCQ-U-1M
add name="Youtubbe Download" packet-mark=Youtube-Dw-Pk parent=PLDT1
add name="Youtube Upload" packet-mark=Youtube-Up-pk parent=PLDT1-1 queue=PCQ-U-300K
add name="Streaming Facebook DL" packet-mark=Streaming-fb-dw-pk parent=PLDT1
add name="Streaming Facebook Upload" packet-mark=Streaming-fb-up-pk parent=PLDT1-1 queue=PCQ-U-300K
/ip firewall connection tracking
set enabled=yes
/ip address
add address=192.168.0.1/24 interface="ether3-LANHUB LOCAL OUT" network=192.168.0.0
add address=10.5.50.1/24 comment="hotspot network" interface=ether1-hotspot network=10.5.50.0
add address=192.168.2.1/24 interface="ether3-LANHUB LOCAL OUT" network=192.168.2.0
/ip dhcp-client
add add-default-route=no dhcp-options=clientid,clientid,hostname disabled=no interface="ether4-PLDT gaming" use-peer-ntp=no
add add-default-route=no dhcp-options=hostname,clientid disabled=no interface="ether2-PLDT browsing" use-peer-ntp=no
/ip dhcp-server lease
add address=192.168.0.44 client-id=1:1c:1b:d:11:eb:ba mac-address=1C:1B:0D:11:EB:BA server=dhcp1
add address=192.168.0.50 client-id=1:84:38:38:42:51:a3 mac-address=84:38:38:42:51:A3 server=dhcp1
add address=192.168.0.51 client-id=1:80:35:c1:66:bd:d0 mac-address=80:35:C1:66:BD:D0 server=dhcp1
add address=192.168.0.53 mac-address=84:C7:EA:EE:18:DE server=dhcp1
add address=192.168.0.54 mac-address=D4:1A:3F:EA:49:BB server=dhcp1
add address=192.168.0.55 client-id=1:70:4d:7b:20:ad:88 mac-address=70:4D:7B:20:AD:88 server=dhcp1
add address=192.168.0.52 client-id=1:d8:30:62:98:75:93 mac-address=D8:30:62:98:75:93 server=dhcp1
/ip dhcp-server network
add address=192.168.0.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.0.1 netmask=24
add address=192.168.1.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.1.1
add address=192.168.2.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.0.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.3.1 name=router.lan
/ip firewall address-list
add address=185.50.104.0/22 comment=rl-br list=some-game
add address=169.57.165.64/26 comment=pugb list=some-game
add address=208.67.48.0/23 comment=tera-na list=some-game
add address=119.81.244.82 list=ML
add address=192.168.0.0/24 list=Mikrotik
add address=151.101.130.219 list=SpeedTest
add address=119.81.72.139 list=ML
add address=119.81.72.145 list=ML
add address=129.227.96.10 list=ML
add address=47.74.171.176 list=ML
add address=172.217.24.74 list=ML
add address=172.217.174.195 list=ML
add address=31.13.77.17 list=ML
add address=169.57.253.232 list=ML
add address=169.46.167.236 list=ML
add address=169.44.24.179 list=ML
add address=169.44.24.169 list=ML
add address=172.217.25.14 list=ML
add address=169.44.104.137 list=ML
add address=169.57.143.242 list=ML
add address=45.43.50.130 list=ML
add address=45.43.50.0/24 list=ML
add address=108.177.97.188 list=ML
add address=107.155.9.70 list=ML
add address=161.117.71.166 list=ML
add address=31.13.77.24 list=ML
add address=216.58.200.3.80 list=ML
add address=216.58.197.106 list=ML
add address=172.217.26.138 list=ML
add address=172.217.24.42 list=ML
add address=64.233.188.188 list=ML
add address=47.74.170.158 list=ML
add address=31.13.77.34 list=ML
add address=172.217.161.163 list=ML
add address=45.43.50.0 list=ML
add address=169.50.189.243 list=ML
add address=107.155.9.75 list=ML
add address=107.155.9.74 list=ML
add address=129.227.103.106 list=ML
add address=129.227.103.86 list=ML
add address=103.10.124.1 list="Dota 2"
add address=103.28.54.16 list="Dota 2"
add address=23.200.232.225 list="ROS PATCHER IP ADDRESS"
add address=42.186.121.66 list="ROS PATCHER IP ADDRESS"
add address=45.40.48.0/24 list=ML
add address=45.40.51.0/24 list=ML
add address=199.190.44.0/24 list=ML
add address=103.193.127.0/24 list=ML
/ip firewall filter
add action=accept chain=input comment="icmp rul" connection-state="" protocol=icmp
add action=accept chain=input comment=established connection-state=established
add action=accept chain=input comment=related connection-state=related
add action=accept chain=input comment=new connection-state=new
/ip firewall mangle
add action=mark-connection chain=forward comment="PLDT BROWSING DOWNLOAD" in-interface="ether2-PLDT browsing" new-connection-mark="PLDT BROWSING DOWNLOAD" passthrough=yes
add action=mark-packet chain=forward connection-mark="PLDT BROWSING DOWNLOAD" new-packet-mark="PLDT BROWSING DOWNLOAD" passthrough=yes
add action=mark-connection chain=prerouting comment="PLDT BROWSING UPLOAD" in-interface="ether3-LANHUB LOCAL OUT" new-connection-mark="PLDT BROWSING UPLOAD" passthrough=yes
add action=mark-packet chain=prerouting connection-mark="PLDT BROWSING UPLOAD" new-packet-mark="PLDT BROWSING UPLOAD" passthrough=yes
add action=mark-connection chain=forward comment="Youtube Download" in-interface="ether2-PLDT browsing" layer7-protocol="Youtube Layer 7" new-connection-mark="Youtube Download" passthrough=yes
add action=mark-packet chain=forward connection-mark="Youtube Download" new-packet-mark=Youtube-Dw-Pk passthrough=no
add action=mark-connection chain=prerouting comment="Youtube Upload" in-interface="ether3-LANHUB LOCAL OUT" layer7-protocol="Youtube Layer 7" new-connection-mark="Youtube Upload" passthrough=yes
add action=mark-packet chain=forward connection-mark="Youtube Upload" new-packet-mark=Youtube-Up-pk passthrough=no
add action=mark-connection chain=forward comment="Streaming Facebook Download" in-interface="ether2-PLDT browsing" layer7-protocol=streaming new-connection-mark="Streaming Download" passthrough=yes
add action=mark-packet chain=forward connection-mark="Streaming Download" new-packet-mark=Streaming-fb-dw-pk passthrough=no
add action=mark-connection chain=prerouting comment="Streaming Facebook Upload" in-interface="ether3-LANHUB LOCAL OUT" layer7-protocol=streaming new-connection-mark="Streaming Facebook Upload" passthrough=yes
add action=mark-packet chain=forward connection-mark="Streaming Facebook Upload" new-packet-mark=Streaming-fb-up-pk passthrough=no
add action=mark-connection chain=prerouting comment="HTTP Upload" connection-mark="PLDT BROWSING UPLOAD" new-connection-mark="Http Upload" passthrough=yes port=80,8080,443,21,990,22,3306,5222,5223,5228 protocol=tcp
add action=mark-connection chain=prerouting comment="HTTP Upload" connection-mark="PLDT BROWSING UPLOAD" new-connection-mark="Http Upload" passthrough=yes port=80,8080,443,21,990,22,3306,5222,5223,5228 protocol=udp
add action=mark-packet chain=forward connection-mark="Http Upload" new-packet-mark="Http Upload pk" passthrough=yes
add action=mark-connection chain=forward comment="Http Download" connection-mark="PLDT BROWSING DOWNLOAD" new-connection-mark="Http Download" passthrough=yes port=80,8080,443,21,990,22,3306,5222,5223,5228 protocol=tcp
add action=mark-connection chain=forward comment="Http Download" connection-mark="PLDT BROWSING DOWNLOAD" new-connection-mark="Http Download" passthrough=yes port=80,8080,443,21,990,22,3306,5222,5223,5228 protocol=udp
add action=mark-packet chain=forward connection-mark="Http Download" new-packet-mark="Http Download pk" passthrough=yes
add action=mark-routing chain=prerouting comment="HTTP CONNECTION TCP " dst-port=80,8080,443,21,990,22,3306,5222,5223,5228 new-routing-mark=http-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="HTTP CONNECTION UDP " dst-port=80,8080,443,21,990,22,3306,5222,5223,5228 new-routing-mark=http-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment=ML dst-address-list=ML new-routing-mark=game-connection passthrough=yes
add action=mark-routing chain=prerouting comment="ML AND ROS" dst-port=5057,5228,6568,9080,9081,30102,5061,9080 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="ML AND ROS" dst-port=5501,5514,24040,24050,24200,7000,8913,7000,5610,4005,5007,5011,24030,34304 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment="Online Game ML" disabled=yes dst-port=9992,30190 new-routing-mark=game-connection passthrough=yes protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=5510 new-routing-mark=game-connection passthrough=yes protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=30101-30110 new-routing-mark=game-connection passthrough=yes protocol=tcp src-port=""
add action=mark-routing chain=prerouting disabled=yes dst-port=30021,30190,30102 new-routing-mark=game-connection passthrough=yes protocol=tcp src-port=""
add action=mark-routing chain=prerouting disabled=yes dst-port=10003,30102,30220 new-routing-mark=game-connection passthrough=yes protocol=tcp src-port=""
add action=mark-routing chain=prerouting disabled=yes dst-port=7000 new-routing-mark=game-connection passthrough=yes protocol=udp src-port=""
add action=mark-routing chain=prerouting disabled=yes dst-port=5504 new-routing-mark=game-connection passthrough=yes protocol=udp src-port=""
add action=mark-routing chain=prerouting disabled=yes dst-port=8913 new-routing-mark=game-connection passthrough=yes protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=5107,5222,5560 new-routing-mark=game-connection passthrough=yes protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=4003,4006,4013 new-routing-mark=game-connection passthrough=yes protocol=udp
add action=mark-packet chain=prerouting disabled=yes new-packet-mark="Games " passthrough=no routing-mark=game-connection
add action=mark-routing chain=prerouting comment="Online Game Portal" disabled=yes dst-port=5340-5352,6000-6152,10001-10011,14009-14030,18901-18909 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=39190,27780,29000,22100,10009,4300,15001,15002,7341,7451 new-routing-mark=game-connection packet-mark=all-outpkt passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=40000,9300,9400,9700,7342,8005-8010,37466,36567,8822 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=47611,16666,20000,5105,29000,18901-18909,9015 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=27005,27015 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=27005-27020,13055,7800-7900,12060-12070 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment="DOTA 2 IP ADDRESS SE ASIA" disabled=yes dst-address-list="Dota 2" new-routing-mark=game-connection passthrough=no
add action=mark-routing chain=prerouting comment="Online Game Dota 2" disabled=yes dst-port=27000-27100 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=4380 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=27000-27100 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="Online Game Crossfire" disabled=yes dst-port=10009,13008,16666,28012 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=12020-12080,13000-13080 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=4380 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=27000-27100 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=24000,2500,26000 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment=SSL-connection disabled=yes dst-port=443,25,109,110,143,220,465,587,993,995 new-routing-mark=SSL-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="SSL-udp connection" disabled=yes dst-port=443,25,109,110,143,220,465,587,993,995 new-routing-mark="SSL-udp connection" passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment=ROS disabled=yes dst-port=5500-5599,24000-24100 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=5353-5355 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=24130 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=9080 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=24000 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=5503,5353,5355 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment=PUBG disabled=yes dst-port=7086-7995,12070-12460,41182-42474 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment="Left for Dead 2" disabled=yes dst-port=4360-4390 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment="Garena Point Blank" disabled=yes dst-port=39190-39200,49001-49190 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting comment="League of Legends" disabled=yes dst-port=5222-5223 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=2080-2099 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=8393-8400 new-routing-mark=game-patch passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=5000-5599 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=8088 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment="RF ONLINE" disabled=yes dst-port=27780 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment="Counter Strike Online" disabled=yes dst-port=36567,8001 new-routing-mark=game-connection passthrough=no protocol=tcp
add action=mark-routing chain=prerouting disabled=yes dst-port=8001 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting comment="Special Force" disabled=yes dst-port=30000-30030 new-routing-mark=game-connection passthrough=no protocol=udp
add action=mark-routing chain=prerouting disabled=yes dst-port=27920-27940 new-routing-mark=game-connection passthrough=no protocol=tcp
/ip firewall nat
add action=masquerade chain=srcnat comment=gaming out-interface="ether4-PLDT gaming"
add action=masquerade chain=srcnat comment=browsing out-interface="ether2-PLDT browsing" src-address-list=""
/ip hotspot user
add name=me profile="3gb plan" server=hotspot1
add limit-bytes-total=17024000000 name=vem server=hotspot1
add limit-bytes-total=1024000000 name=dar server=hotspot1
add limit-bytes-total=1024000000 name=loy server=hotspot1
add limit-bytes-total=1024000000 name=tsek server=hotspot1
add limit-bytes-total=1024000000 name=che server=hotspot1
add limit-bytes-total=6024000000 name=tagz profile="3gb plan" server=hotspot1
add name=sel server=hotspot1
add limit-bytes-total=1024000000 name=jers server=hotspot1
add limit-bytes-total=1024000000 name=may server=hotspot1
add limit-bytes-total=1024000000 name=nel server=hotspot1
add limit-bytes-total=1024000000 name=bar server=hotspot1
add comment=NOV7 name=lyn profile=monthly server=hotspot1
add limit-bytes-total=6024000000 name=user2 profile="3gb plan" server=hotspot1
add limit-bytes-total=524000000 name=cgen server=hotspot1
add limit-bytes-total=524000000 name=nena server=hotspot1
add limit-bytes-total=1024000000 name=ariel server=hotspot1
add name=zy server=hotspot1
add limit-bytes-total=3024000000 name=dem profile="3gb plan" server=hotspot1
add limit-bytes-total=1024000000 name=jen server=hotspot1
add limit-bytes-total=3024000000 name=user1 profile="3gb plan" server=hotspot1
add name=ros server=hotspot1
add limit-bytes-total=1024000000 name=bot server=hotspot1
add limit-bytes-total=1024000000 name=tet server=hotspot1
add limit-bytes-total=1024000000 name="april jay" server=hotspot1
add limit-bytes-total=2024000000 name=lay server=hotspot1
add limit-bytes-total=1024000000 name=tor server=hotspot1
add limit-bytes-total=2024000000 name=mier server=hotspot1
add limit-bytes-total=3024000000 name=tel server=hotspot1
add limit-bytes-total=1024000000 name=net server=hotspot1
add limit-bytes-total=1024000000 name=darv server=hotspot1
add limit-bytes-total=1024000000 name=rnel server=hotspot1
add limit-bytes-total=1024000000 name=bikay server=hotspot1
add limit-bytes-total=1024000000 name=sandra server=hotspot1
add limit-bytes-total=1024000000 name=charls server=hotspot1
add limit-bytes-total=524000000 name=dev server=hotspot1
add limit-bytes-total=1024000000 name=doy server=hotspot1
add limit-bytes-total=1024000000 name=lian server=hotspot1
add limit-bytes-total=1024000000 name=pretzel server=hotspot1
add limit-bytes-total=1024000000 name=yet server=hotspot1
add limit-bytes-total=1024000000 name=james server=hotspot1
add limit-bytes-total=1024000000 name=jp server=hotspot1
add limit-bytes-total=1024000000 name=orly server=hotspot1
add limit-bytes-total=500000000 name=troy server=hotspot1
add limit-bytes-total=1024000000 name=ple server=hotspot1
add limit-bytes-total=524000000 name=stela server=hotspot1
add limit-bytes-total=1024000000 name=bing server=hotspot1
add name=momy server=hotspot1
add name=rol server=hotspot1
add limit-bytes-total=1024000000 name=ires server=hotspot1
add limit-bytes-total=1024000000 name=tingay server=hotspot1
add limit-bytes-total=1024000000 name=hana server=hotspot1
/ip route
add comment=HTTP distance=2 gateway="192.168.1.1%ether2-PLDT browsing" routing-mark=http-connection
add check-gateway=ping comment="ISP1 GAME" distance=1 gateway="192.168.1.1%ether4-PLDT gaming" routing-mark=game-connection
add check-gateway=ping comment="ISP2 GAME FAILOVER" distance=2 gateway="192.168.1.1%ether2-PLDT browsing" routing-mark=game-connection
add distance=3 gateway="192.168.1.1%ether2-PLDT browsing" routing-mark=game-patch
add check-gateway=ping comment=ISP1 distance=1 gateway="192.168.1.1%ether4-PLDT gaming"
add check-gateway=ping comment=ISP2 distance=2 gateway="192.168.1.1%ether2-PLDT browsing"
add check-gateway=ping comment="Netwatch ISP2" distance=1 dst-address=8.8.4.4/32 gateway="192.168.1.1%ether2-PLDT browsing"
add check-gateway=ping comment="Netwatch ISP1" distance=1 dst-address=8.8.8.8/32 gateway="192.168.1.1%ether4-PLDT gaming"
/system identity
set name="Wang Yeo"
/tool netwatch
add down-script=\
    "/ip route disable [/ip route find comment=\"ISP2\"]\r\
    \n\r\
    \n/ip route disable [/ip route find comment=\"ISP1\"]\r\
    \n\r\
    \n/ip route disable [/ip route find comment=\"HTTP\"]\r\
    \n\r\
    \n/ip route disable [/ip route find comment=\"ISP1 GAME\"]\r\
    \n" host=8.8.8.8 interval=1s up-script=\
    "/ip route enable [/ip route find comment=\"ISP2\"]\r\
    \n\r\
    \n/ip route enable [/ip route find comment=\"ISP1\"]\r\
    \n\r\
    \n/ip route enable [/ip route find comment=\"HTTP\"]\r\
    \n\r\
    \n/ip route enable [/ip route find comment=\"ISP1 GAME\"]"
add down-script="/ip route disable [/ip route find comment=\"ISP1\"]\r\
    \n\r\
    \n" host=8.8.4.4 interval=1s up-script="/ip route enable [/ip route find comment=\"ISP1\"]\r\
    \n"
    
Last edited by Wangz on Fri Apr 17, 2020 11:24 pm, edited 6 times in total.
 
User avatar
gazingbazooka
Frequent Visitor
Frequent Visitor
Posts: 93
Joined: Mon Feb 10, 2020 7:10 pm
Location: Toronto, Canada

Re: 2 Wan for Gaming and Browsing (need help)

Wed Apr 15, 2020 7:10 pm

I'm in no position to be helping but I fully expect the gurus will ask for an export of the config rather than pictures
/export hide-sensitive
 
User avatar
Wangz
newbie
Topic Author
Posts: 39
Joined: Wed Apr 15, 2020 4:41 pm

Re: 2 Wan for Gaming and Browsing (need help)

Wed Apr 15, 2020 7:23 pm

I'm in no position to be helping but I fully expect the gurus will ask for an export of the config rather than pictures
/export hide-sensitive
Oh sorry i forgot. I've edited my post.
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19363
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: 2 Wan for Gaming and Browsing (need help)

Thu Apr 16, 2020 12:39 am

Also you can use the code tags to shorten the post (to the right of Bold an Italic etc.. its the black square with white square brackets.
 
User avatar
Fopwoc
just joined
Posts: 16
Joined: Mon Nov 18, 2019 3:23 pm
Location: Kiev

Re: 2 Wan for Gaming and Browsing (need help)

Sat Jun 18, 2022 11:45 pm

Hi, could you give me advice for your current gaming config?

Who is online

Users browsing this forum: nepotu and 67 guests