• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Multi WAN Separating Port Specific Protocols

Scheduled Pinned Locked Moved Routing and Multi WAN
2 Posts 2 Posters 283 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    pixfour
    last edited by Feb 7, 2018, 5:20 AM

    Hello,

    I have two ISP and I would like to separate traffics using specific ports. For example:
    WAN1 = All ports can use this connection
    WAN2 = Only 80 and 443 can use this connection

    Thank You very much.

    1 Reply Last reply Reply Quote 0
    • G
      gazoo
      last edited by Feb 9, 2018, 8:15 PM

      Go to Firewall rules under initiating interface. Then put in add a firewall rule with following:

      Interface: current interface that has, let's call it LAN1
      Protocol: TCP
      Source: any, or you could specify LAN1 addresses, or LAN1 network
      Destination: any IP address, going to HTTP, port 80 to HTTP, port 80

      Here's the trick now, go to Extra Options by clicking it. Some new info will pop down
      Then go to Gateway and choose WAN2 for the pull down.

      This is called policy routing. It's routing by rule, vs. routing by routes. This is not normally newbie recommended because you can really mess things up, but as long as you know what you're getting into, and how to undo it you should be ok.

      You'll have to do this for 443 (SSL). No put those two high up in the list of rules.

      Next, do one more rule near bottom and do the same thing but do any, any, and on extra options choose wan1 as the gateway.

      I hope I explained that right, and please others jump in if I'm telling him something completely wrong.

      I've used this in that past to route to different VPNs from certain devices.

      thanks

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received