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

Multiple static IP on different gateway

Scheduled Pinned Locked Moved General pfSense Questions
29 Posts 7 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.
  • F
    firewalled_lotusdew @stephenw10
    last edited by Nov 4, 2022, 7:28 PM

    @stephenw10 I see. Well thats the way my ISP has given me the static IPs. I can try and reason with them that I need them on the same gateway - but its always hard to get to a technical person who understand it well.

    I was afraid that I wont be able to route back the traffic to appropriate gateway - from what I understand that seems to your concern as well.

    This is what I have from ISP. Do you suggest I go back to ISP and get them on the same gateway ? If thats not possible - do you foresee any other solution ?

    1 Reply Last reply Reply Quote 0
    • S
      stephenw10 Netgate Administrator
      last edited by Nov 4, 2022, 7:40 PM

      Can you show us what info they actually gave you?

      What is the actual WAN connection type here?

      F 1 Reply Last reply Nov 5, 2022, 5:25 AM Reply Quote 0
      • F
        firewalled_lotusdew @stephenw10
        last edited by firewalled_lotusdew Nov 5, 2022, 5:28 AM Nov 5, 2022, 5:25 AM

        @stephenw10 Yes

        They gave me an initial public static IP
        123.176.59.217 with gateway 123.176.59.1
        Then they gave me additional two of the following IPs
        123.176.60.77 with Gateway 123.176.60.1
        123.176.62.177 and gateway 123.176.62.1

        The connection from the DSL modem is set in bridge mode and the pfSense Appliance has the static IPs configured.

        All these IPs might have an upstream gateway. I am not an networking expert per say (just basic knowledge) - so if I set the gateway as upstream gateway by running a trace route - does that work ? As they are all in subnet 123.176.0.0 ?

        B 1 Reply Last reply Nov 5, 2022, 5:46 AM Reply Quote 0
        • B
          bingo600 @firewalled_lotusdew
          last edited by bingo600 Nov 5, 2022, 5:53 AM Nov 5, 2022, 5:46 AM

          @firewalled_lotusdew
          What subnet mask(s) did they give you, for those 3 ip's ?

          Hmmmm .... Something is "fishy" w. those ip's

          whois 123.176.59.217
          % [whois.apnic.net]
          % Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html
          
          % Information related to '123.176.56.0 - 123.176.59.255'
          
          % Abuse contact for '123.176.56.0 - 123.176.59.255' is 'datacomteam@mirtelecom-bd.com'
          
          inetnum:        123.176.56.0 - 123.176.59.255
          netname:        MIRTELECOM
          descr:          Mir Telecom
          descr:          Level-7, Red Crescent Borak Tower
          descr:          71-72, Old Elephant Road, Eskaton Garden
          country:        BD
          
          whois 123.176.60.77
          % [whois.apnic.net]
          % Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html
          
          % Information related to '123.176.60.0 - 123.176.63.255'
          
          % Abuse contact for '123.176.60.0 - 123.176.63.255' is 'ipas@cnnic.cn'
          
          inetnum:        123.176.60.0 - 123.176.63.255
          netname:        CSLC-NET
          descr:          China Sports Lottery Technology Development Co., Ltd
          descr:          Yijing Building, No.23 Dong San Huan Nan Lu,Chaoyang District
          descr:          Beijing,China,100021
          country:        CN
          
          whois 123.176.62.177
          % [whois.apnic.net]
          % Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html
          
          % Information related to '123.176.60.0 - 123.176.63.255'
          
          % Abuse contact for '123.176.60.0 - 123.176.63.255' is 'ipas@cnnic.cn'
          
          inetnum:        123.176.60.0 - 123.176.63.255
          netname:        CSLC-NET
          descr:          China Sports Lottery Technology Development Co., Ltd
          descr:          Yijing Building, No.23 Dong San Huan Nan Lu,Chaoyang District
          descr:          Beijing,China,100021
          country:        CN
          

          They are assigned to different "entities"

          /Bingo

          If you find my answer useful - Please give the post a 👍 - "thumbs up"

          pfSense+ 23.05.1 (ZFS)

          QOTOM-Q355G4 Quad Lan.
          CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
          LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

          1 Reply Last reply Reply Quote 0
          • F
            firewalled_lotusdew
            last edited by Nov 5, 2022, 8:26 AM

            Ah - I didnt give the exact IP - switched out a few numbers - funny that it goes to China. But I thought it would still give enough information in terms of specifics.

            As of now I am trying to understand how I can route WAN interface to different IPs with their own individual gateway.

            V B 2 Replies Last reply Nov 5, 2022, 8:30 AM Reply Quote 1
            • V
              viragomann @firewalled_lotusdew
              last edited by Nov 5, 2022, 8:30 AM

              @firewalled_lotusdew
              Did you simptry out yet is the other two gateways are really needed?

              1 Reply Last reply Reply Quote 0
              • B
                bingo600 @firewalled_lotusdew
                last edited by Nov 5, 2022, 10:05 AM

                @firewalled_lotusdew
                Please supply the subnet mask(s) you got for the ip's

                If you find my answer useful - Please give the post a 👍 - "thumbs up"

                pfSense+ 23.05.1 (ZFS)

                QOTOM-Q355G4 Quad Lan.
                CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                F 1 Reply Last reply Nov 5, 2022, 10:24 AM Reply Quote 0
                • F
                  firewalled_lotusdew @bingo600
                  last edited by Nov 5, 2022, 10:24 AM

                  @bingo600 The mask is 255.255.252.0

                  You mean expect 123.176.60.77 to be routed via 123.176.59.1 ?

                  B V 2 Replies Last reply Nov 5, 2022, 10:53 AM Reply Quote 1
                  • B
                    bingo600 @firewalled_lotusdew
                    last edited by bingo600 Nov 5, 2022, 10:56 AM Nov 5, 2022, 10:53 AM

                    @firewalled_lotusdew

                    The 255.255.252.0 mask "covers 1024 ip addesses" aka. 4 Class-C networks.

                    Could you please supply the first REAL 3 octets of your ip addresses ? - A.B.C.?? , the ?? part is irellevant , if you dont want to supply.

                    Well actually it's just the C part that's interesting , if you got a 255.255.252.0 mask (a /22).

                    Chances are that you can use a 255.255.252.0 mask on your WAN , and "cover all" ip's asigned with the same def-gw.

                    /Bingo

                    If you find my answer useful - Please give the post a 👍 - "thumbs up"

                    pfSense+ 23.05.1 (ZFS)

                    QOTOM-Q355G4 Quad Lan.
                    CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                    LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                    P B 2 Replies Last reply Nov 5, 2022, 11:03 AM Reply Quote 0
                    • P
                      Patch @bingo600
                      last edited by Patch Nov 5, 2022, 11:06 AM Nov 5, 2022, 11:03 AM

                      From a network configuration advice surely only the lest significant digit are relevant. The ones which a consistent between all of his IP address do not need to be publicly disclosed.

                      That and the network mask which may cover all public IP given.

                      Although I guess 123.176. is rubbish and perhaps the remainder is more accurate.

                      D 1 Reply Last reply Nov 5, 2022, 2:12 PM Reply Quote 0
                      • B
                        bingo600 @bingo600
                        last edited by bingo600 Nov 5, 2022, 12:02 PM Nov 5, 2022, 12:01 PM

                        @Patch
                        You mean like i wrote here 😊

                        @bingo600 said in Multiple static IP on different gateway:

                        Well actually it's just the C part that's interesting , if you got a 255.255.252.0 mask (a

                        If you find my answer useful - Please give the post a 👍 - "thumbs up"

                        pfSense+ 23.05.1 (ZFS)

                        QOTOM-Q355G4 Quad Lan.
                        CPU  : Core i5 5250U, Ram : 8GB Kingston DDR3LV 1600
                        LAN  : 4 x Intel 211, Disk  : 240G SAMSUNG MZ7L3240HCHQ SSD

                        1 Reply Last reply Reply Quote 0
                        • V
                          viragomann @firewalled_lotusdew
                          last edited by Nov 5, 2022, 12:26 PM

                          @firewalled_lotusdew said in Multiple static IP on different gateway:

                          You mean expect 123.176.60.77 to be routed via 123.176.59.1 ?

                          pfSense routes any packets destined to an IP out of its own subnets to the default gateway.
                          The point is if the gateway accepts a source IP outside of its subnet. Only the ISP will know the answer, but you can easily check it out.
                          For forwarding packets for such IPs, you can ask your ISP to route them to your primary IP, if he doesn't that anyway.

                          In the past, I had three different public subnets, all with their own network addresses, gateways and broadcast IPs on a single WAN interface. I configured only gateway of the first one on pfSense and all worked well out of the box.

                          1 Reply Last reply Reply Quote 0
                          • D
                            Derelict LAYER 8 Netgate @Patch
                            last edited by Derelict Nov 5, 2022, 2:26 PM Nov 5, 2022, 2:12 PM

                            @patch said in Multiple static IP on different gateway:

                            From a network configuration advice surely only the lest significant digit are relevant. The ones which a consistent between all of his IP address do not need to be publicly disclosed.

                            That and the network mask which may cover all public IP given.

                            Although I guess 123.176. is rubbish and perhaps the remainder is more accurate.

                            With a /22 netmask the last 10 bits are significant, not the last octet.

                            They should provide XX.YY.Real-address.real-address

                            XX.YY should be used to indicate they are identical for both the addresses and the provided gateways.

                            And, of course, the provided subnet masks.

                            Chattanooga, Tennessee, USA
                            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                            Do Not Chat For Help! NO_WAN_EGRESS(TM)

                            1 Reply Last reply Reply Quote 0
                            • S
                              stephenw10 Netgate Administrator
                              last edited by Nov 5, 2022, 3:38 PM

                              Mmm, depending on which bits were swapped those subnets may or may not be inside the same /22. Currently they are shown as not being which would mean they could not share the same gateway.

                              F 1 Reply Last reply Nov 5, 2022, 3:50 PM Reply Quote 0
                              • F
                                firewalled_lotusdew @stephenw10
                                last edited by Nov 5, 2022, 3:50 PM

                                @stephenw10 Yes I realize that these IPs dont fall within the same subnet I think based on the calculations below. So I am assuming they cannot be routed
                                fc692e3a-ee86-461f-9771-f27a1ef6cae6-image.png

                                As you can see the range is from 123.176.56.X to 123.176.59.254.

                                So the static IPs 123.176.60.X and 123.176.62.X wont be routable via the gateway 123.176.59.1 I believe. Please let me know if i am understanding correctly ?

                                1 Reply Last reply Reply Quote 2
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Nov 5, 2022, 3:57 PM

                                  Yes, they cannot use the same gateway.

                                  Hoe is the DSL modem configured here? Is it really a modem only? I assume you are not using PPPoE here?
                                  Is the 'modem' itself acting as the gateway?

                                  F 1 Reply Last reply Nov 5, 2022, 4:03 PM Reply Quote 0
                                  • F
                                    firewalled_lotusdew @stephenw10
                                    last edited by Nov 5, 2022, 4:03 PM

                                    @stephenw10 @stephenw10 The DSL modem has a fiber connection and it has 4 lan ports. One of the LAN port is configured into bridge mode which lands on the static IP confgured on pfSense WAN.

                                    It might be possible to portmap the remaining 3 LAN into bridge mode as well and land them on seperate static IPs on any interface but that topology will mean I need multiple instances of pfSense I guess. I am trying to avoid that.

                                    I dont know if a better idea would be to front the pfSense with a reverse proxy with different static IPs ... I am quite out of depth here.

                                    S 1 Reply Last reply Nov 5, 2022, 4:07 PM Reply Quote 2
                                    • S
                                      stephenw10 Netgate Administrator @firewalled_lotusdew
                                      last edited by Nov 5, 2022, 4:07 PM

                                      @firewalled_lotusdew said in Multiple static IP on different gateway:

                                      The DSL modem has a fiber connection

                                      Like FTTC? If it's actually fiber to the modem that's not DSL.
                                      Do you have access to the modem? Can you see what IP(s) it is using? It may not be if it really is bridging.

                                      Steve

                                      F 1 Reply Last reply Nov 5, 2022, 4:44 PM Reply Quote 0
                                      • F
                                        firewalled_lotusdew @stephenw10
                                        last edited by Nov 5, 2022, 4:44 PM

                                        @stephenw10 @stephenw10 @stephenw10 Yes FTTC - I have admin access to the modem. Its not using IP as its bridging.

                                        PS: I am getting blocked from posting replies as its too frequent. Request to adjust my privileges if possible.

                                        1 Reply Last reply Reply Quote 2
                                        • S
                                          stephenw10 Netgate Administrator
                                          last edited by Nov 5, 2022, 5:10 PM

                                          You have 5 rep now you should be able to post more frequently.

                                          Can you see how the bridging is configured?

                                          F 1 Reply Last reply Nov 5, 2022, 5:33 PM Reply Quote 0
                                          13 out of 29
                                          • First post
                                            13/29
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received