Community discussions

MikroTik App
 
mcrolanson
just joined
Topic Author
Posts: 2
Joined: Thu Jul 05, 2018 10:49 am

Multiple Wan and how specific port 443 to a specif wan.

Thu Jul 05, 2018 11:01 am

PORT 1 = 192.168.2.1 WAN
PORT 2 = 192.168.3.1 WAN
PORT 3 = 192.168.4.1 WAN
PORT 4 = 192.168.1.1 LAN

I want a specific port 443 to go through PORT 3 = 192.168.4.1 WAN.
Port 80, 8080 to PORT 2 = 192.168.3.1 WAN
All ports not listed above to PORT 1 = 192.168.2.1 WAN

This is not a Load Balancing set up.
 
mcrolanson
just joined
Topic Author
Posts: 2
Joined: Thu Jul 05, 2018 10:49 am

Re: Multiple Wan and how specific port 443 to a specif wan.

Sun Jul 08, 2018 2:41 am

somebody help.
 
Sob
Forum Guru
Forum Guru
Posts: 9121
Joined: Mon Apr 20, 2009 9:11 pm

Re: Multiple Wan and how specific port 443 to a specif wan.

Sun Jul 08, 2018 3:00 am

As a quick start, you can look at PCC example, ignore the load balancing part (rules with per-connection-classifier) and replace them with your own:
/ip firewall mangle
add chain=prerouting in-interface=LAN connection-mark=no-mark protocol=tcp dst-port=443
    action=mark-connection new-connection-mark=ISP3_conn
add chain=prerouting in-interface=LAN connection-mark=no-mark protocol=tcp dst-port=80,8080
    action=mark-connection new-connection-mark=ISP2_conn
add chain=prerouting in-interface=LAN connection-mark=no-mark
    action=mark-connection new-connection-mark=ISP1_conn
You can skip the last one if WAN1 is default route.

Who is online

Users browsing this forum: BradK, philipwillemse, yonutm and 66 guests