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

How to make a Ip address use a different gateway? Help

Scheduled Pinned Locked Moved General pfSense Questions
23 Posts 5 Posters 2.3k 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.
  • J
    James_Darkness
    last edited by James_Darkness Apr 24, 2022, 9:13 AM Apr 24, 2022, 9:10 AM

    Is there a firewall rule or something that I can do to make a certain IP address use a certain Gateway. For example I have one Gateway that is AT&T and another Gateway that is starlink. I have things on my network like phones, a SonicWall firewall for my work computers, and a lancache server to cache updates to games and windows updates and so on. So I would like all of those ip addresses to use my very high bandwidth starlink internet that is somewhat not reliable and gets high pings and what not. But everything else like game consoles and my gaming PC I would like to use my AT&T gateway with its low ping but crazy small bandwidth. Right now I have it configured it to switch between the two wans for all devices when one gets to high of a ping

    1 Reply Last reply Reply Quote 0
    • B
      Bob.Dig LAYER 8
      last edited by Bob.Dig Apr 24, 2022, 10:42 AM Apr 24, 2022, 10:39 AM

      Look here:
      https://docs.netgate.com/pfsense/en/latest/multiwan/policy-route.html#configuring-firewall-rules-for-policy-routing

      J 1 Reply Last reply Apr 24, 2022, 10:40 PM Reply Quote 2
      • J
        James_Darkness @Bob.Dig
        last edited by Apr 24, 2022, 10:40 PM

        @bob-dig thanks. i saw that and had a rule to add the Gateway Group to switch between the two. so now i added a rule above that for Source to be a Aliases and the Gateway to be my starlink isp. my only question is when starlink is offline for some reason will it go to the next rule and switch to my AT&T isp?

        V 1 Reply Last reply Apr 24, 2022, 10:57 PM Reply Quote 0
        • V
          viragomann @James_Darkness
          last edited by Apr 24, 2022, 10:57 PM

          @james_darkness
          Add a check at System > Advanced > Miscellaneous > Skip rules when gateway is down (Do not create rules when gateway is down) to ensure that the rule is not omitted.

          J 1 Reply Last reply Apr 24, 2022, 11:47 PM Reply Quote 1
          • J
            James_Darkness @viragomann
            last edited by James_Darkness Apr 24, 2022, 11:50 PM Apr 24, 2022, 11:47 PM

            @viragomann thanks! i followed space innovator's YouTube video and I guess it was already set up like that when I setup my pfsense box before getting two wans. but thanks again I hate networking i don't understand it. it's plug and pray for me.

            I saw a lot of video's on how to setup two wans on pfsense and they all seem to be able to use the bandwidth of both wans at the same time but i can only ever use one is there something I'm missing

            S 1 Reply Last reply Apr 25, 2022, 3:20 AM Reply Quote 0
            • S
              SteveITS Galactic Empire @James_Darkness
              last edited by Apr 25, 2022, 3:20 AM

              @james_darkness A given connection can’t split between two ISPs. That would be an SD-WAN service. One can load balance so some connections go out each WAN. Or policy routing that assigns connection by type of traffic.

              Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
              When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
              Upvote πŸ‘ helpful posts!

              J 1 Reply Last reply Apr 26, 2022, 6:47 PM Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Apr 25, 2022, 2:54 PM

                Yes, you can use a load-balanced gateway group in the policy routing rules and connections will use both WANs. Something like speedtest.net will show the combined bandwidth of both WANs because it tests using multiple simultaneous connections. A single file download will not.

                Steve

                J 1 Reply Last reply Jun 1, 2022, 5:55 AM Reply Quote 0
                • J
                  James_Darkness @SteveITS
                  last edited by Apr 26, 2022, 6:47 PM

                  @steveits OK, so could I make a rule that can somehow say if download of the AT&T connection goes above 20mbs use starlink instead

                  S 1 Reply Last reply Apr 26, 2022, 7:41 PM Reply Quote 0
                  • S
                    SteveITS Galactic Empire @James_Darkness
                    last edited by Apr 26, 2022, 7:41 PM

                    @james_darkness No but you can do other things. Have a read through this page:

                    https://docs.netgate.com/pfsense/en/latest/multiwan/strategies.html

                    Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
                    When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
                    Upvote πŸ‘ helpful posts!

                    J 1 Reply Last reply May 31, 2022, 8:56 AM Reply Quote 0
                    • J
                      James_Darkness @SteveITS
                      last edited by May 31, 2022, 8:56 AM

                      @steveits said in How to make a Ip address use a different gateway? Help:

                      https://docs.netgate.com/pfsense/en/latest/multiwan/strategies.html

                      thanks, it talks abut "Advanced Gateway Settings" but how to i get to Advanced Gateway Settings I went to https://docs.netgate.com/pfsense/en/latest/routing/gateway-configure.html and didn't see anything

                      V 1 Reply Last reply May 31, 2022, 10:20 AM Reply Quote 0
                      • V
                        viragomann @James_Darkness
                        last edited by viragomann May 31, 2022, 10:20 AM May 31, 2022, 10:20 AM

                        @james_darkness said in How to make a Ip address use a different gateway? Help:

                        thanks, it talks abut "Advanced Gateway Settings" but how to i get to Advanced Gateway Settings

                        Go to System > Routing > Gateways and edit your gateways. At the bottom there is a button to display the advanced options:
                        9cd3aab4-d97a-481d-90b5-ce38742c2aaf-grafik.png

                        Then you can see the weight setting on the very first position:
                        af645006-8add-469e-a8f8-21bf38c0bd90-grafik.png

                        J 1 Reply Last reply May 31, 2022, 11:24 PM Reply Quote 1
                        • J
                          James_Darkness @viragomann
                          last edited by May 31, 2022, 11:24 PM

                          @viragomann thank you.

                          is there anyway to send traffic through a ip so i can set that ip to use my starlink gateway for that kind of data for example i have a lancache server so all my game/ windows update downloads go thought that dns 1st 192.168.1.202 which set in pfsense but anything else uses my at&t connection for the low ping. i want to make twitch, YouTube, Netflix and other things like that to also only use my starlink connection

                          1 Reply Last reply Reply Quote 0
                          • S
                            stephenw10 Netgate Administrator
                            last edited by May 31, 2022, 11:31 PM

                            You can policy route anything you can make a firewall rule for. pf is a layer 3 firewall so that means you can match by source or destination IP or groups of IP addresses. Plus some layer 4 stuff, tcp/udp port numbers. But you can't add a rule that says 'send Netflix traffic via WAN1'. You have to match Netflix traffic and that can be difficult.
                            What you can do it use pfBlocker to create (and update) aliases from AS numbers which will catch most traffic for something like Netflix but it's not perfect.

                            Steve

                            J 2 Replies Last reply Jun 1, 2022, 4:03 AM Reply Quote 1
                            • J
                              James_Darkness @stephenw10
                              last edited by Jun 1, 2022, 4:03 AM

                              This post is deleted!
                              1 Reply Last reply Reply Quote 0
                              • J
                                James_Darkness @stephenw10
                                last edited by Jun 1, 2022, 5:43 AM

                                @stephenw10 thank you, I'll take a look

                                1 Reply Last reply Reply Quote 0
                                • J
                                  James_Darkness @stephenw10
                                  last edited by James_Darkness Jun 1, 2022, 5:58 AM Jun 1, 2022, 5:55 AM

                                  @stephenw10 i got speed test/ steam to use both gateways but only once last month and i didn't change anything.

                                  Also when one connection goes out it never likes to switch back to how I had it and does something different every time. for example I had to unplug my starlink wan for a bit so all my phones and work switch to at&t wan like I have it set up, perfectπŸ‘ but now no matter what i do like unplugging at&t or both and changing tiers its stuck only using my slow at&t wan and wont switch back!!!Screenshot 2022-06-01 005651.png

                                  1 Reply Last reply Reply Quote 0
                                  • S
                                    stephenw10 Netgate Administrator
                                    last edited by Jun 1, 2022, 12:48 PM

                                    What rules do you have? What do the gateway groups show in that state?

                                    The traffic on Starlink there is only peaking at 300bps so probably just some old states with no replies. Check the state table.

                                    Steve

                                    J 1 Reply Last reply Jun 1, 2022, 7:34 PM Reply Quote 0
                                    • J
                                      James_Darkness @stephenw10
                                      last edited by James_Darkness Jun 1, 2022, 8:25 PM Jun 1, 2022, 7:34 PM

                                      @stephenw10 Screenshot 2022-06-01 142240.png

                                      Screenshot 2022-06-01 142608.png Screenshot 2022-06-01 142641.png

                                      I didn't see anything in the state table but I don't really know what I'm looking at/ for

                                      also starlink is usually tier 2 but I tried to make it switch back over so I changed it to tier 1. also i have it set to Reject leases from 192.168.100.1 on starlink since i heard that was a issue

                                      lastly i keep getting this error message and usually its a sign i have no connection to anything wan or lan from my netgear switches but sometimes rarely tho everything is working fine even with this message
                                      20220525_141257.jpg
                                      p.s. should i start a new post

                                      update: I factory rest my starlink again and its working again. but idk for how long since its a every couple of days kinda thing where it just stops

                                      S 1 Reply Last reply Jun 1, 2022, 11:56 PM Reply Quote 0
                                      • S
                                        stephenw10 Netgate Administrator @James_Darkness
                                        last edited by Jun 1, 2022, 11:56 PM

                                        Hmm, well the first thing I see is that there is data shown on the default LAN rule and that should only be possible if you have 'omit rule when gateway is down' set and all the gateways from the group are down. Hard to see how that could ever be unless the ruleset was changed since the counters we last reset.

                                        New states should reflect the current lowest tier gateway so check for that.
                                        Existing states may remain though so check for states on a gateway that's down.

                                        Steve

                                        J 1 Reply Last reply Jun 2, 2022, 3:08 AM Reply Quote 0
                                        • J
                                          James_Darkness @stephenw10
                                          last edited by Jun 2, 2022, 3:08 AM

                                          @stephenw10 all of the states were wanatt and as you can see in my frist picture

                                          @james_darkness said in How to make a Ip address use a different gateway? Help:

                                          @stephenw10 thank you, I'll take a look

                                          the wanstarlink doesnt have a ip but sometimes i can get it to http://dishy.starlink.com/ or 192.168.100.2 which is how to manage starlink which isn't much when my starlink wan goes down

                                          p.s starlink reports everything working fine and i can use the wifi it gives off but the ethernet connected to my pfsense just stops. sometimes i think its at&t but its hard for me to tell and never had any of these issues till i got two wans. i wish i could have to TeamViewer into my pc or something

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