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

    Does anyone have a link to a good site for Multi WAN

    Scheduled Pinned Locked Moved Routing and Multi WAN
    45 Posts 3 Posters 6.9k 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.
    • L
      Luc1231122
      last edited by Luc1231122

      I want multiple LANs that all have their own public IP.
      I received several public IPS from my ISP.
      The public IPs come from the same default gateway.

      Sorry for my bad English, I am not a native English speaker.

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        You have few options
        You either nat and do 1:1 with rfc1918 to the machines behind matching up with your public IP(s)

        You bridge the connection

        Or the correct/best solution is to get your public space actually routed to you so you can put this public network behind pfsense.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        L 1 Reply Last reply Reply Quote 1
        • L
          Luc1231122
          last edited by

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • L
            Luc1231122 @johnpoz
            last edited by

            @johnpoz What exactly do you mean by routing your public addresses to you?

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              Lets say you have 1.2.3.0/29 from your isp..

              They would route this to your public IP via normally a different transit, say for example your IP was 4.5.6.7..

              So when someone wants to get to 1.2.3.2 for example the traffic gets sent to pfsense public IP 4.5.6.7

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              L 1 Reply Last reply Reply Quote 1
              • L
                Luc1231122 @johnpoz
                last edited by Luc1231122

                @johnpoz Can you give an example which IP's
                I would set on my firewall interfaces?

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz

                  If you do not understand how to route a network... Then just do the VIP and 1:1 nat thing..

                  What exactly are you trying to accomplish... Why not just do simple port forwards..

                  Continue with my example where 1.2.3.0/29 was routed to you..

                  So on your lan or optX or vlan in pfsense on your lan side you would say make pfsense

                  1.2.3.1/29

                  While then your clients in this network could use
                  1.2.3.2-6 with .7 being your broadcast address.

                  OR you could use .6 for pfsense and your clients in your network could use .1-.5

                  Does your ISP even provide you with the option of routing the /X to you?? How many IPs do you have from your ISP?

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                  L 1 Reply Last reply Reply Quote 1
                  • L
                    Luc1231122 @johnpoz
                    last edited by

                    @johnpoz can you link me a video of setting up static routing multiple WAN's for pfsense can only find VIPS with 1:1 NAT

                    jahonixJ 1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by johnpoz

                      multiple wans via what interfaces and dhcp address on these?

                      You can not do static IPs on interface in the same netblock..

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

                      1 Reply Last reply Reply Quote 1
                      • jahonixJ
                        jahonix @Luc1231122
                        last edited by jahonix

                        @lucndevr said in Does anyone have a link to a good site for Multi WAN:

                        can you link me ...

                        Static Routes
                        Routing Public IP Addresses

                        1 Reply Last reply Reply Quote 1
                        • L
                          Luc1231122
                          last edited by Luc1231122

                          The firewall must serve multiple customers
                          The firewall must give each customers their own external IP
                          The firewall must prevent each of the customers from seeing each others’ networks
                          The firewall must allow us to configure network services for each customer (DHCP, DNS, etc)

                          Can I accomplish this with pfsense?

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by johnpoz

                            Yes to all your questions..

                            The simple solution would be if you had a routed public network.. And then sub net that down for each tenants to their own vlan... This will cost you some loss of address space as you break up the larger network into smaller vlans.. But makes it really simple to manage.

                            If you say have a /24 routed to you, you can break that up into 64 /30's or 32 /29's to give the tenants the number of IPs they require.. And how many tenants you have?

                            Other method would be to just use a private vlan.. This is a vlan that where all clients are in the same L2/L3 space but you control at the switch infrastructure which Ports can talk to which others or none at all.

                            Control of dhcp and or dns can be handled via reservations for the tenants devices via reservations where you could hand out dns XYZ to mac address ABC, while other info is given to mac address DFG, etc.

                            Or you just use different local vlans for each tenant say 192.168.1/24 for A, 192.168.2/24 for B tenant.. And then just use 1:1 natting for their stuff from your public IP space with VIPs, etc. etc..

                            There are many ways to skins this specific cat - just need to know the breed and the full details and the skill set of the persons going to run this whole thing along with the other equipment going to be used to know the best way..

                            Are the tenants going to have their own firewall/router connected to you? Or are their devices going to be connected to pfsense without any firewall/router between?

                            An intelligent man is sometimes forced to be drunk to spend time with his fools
                            If you get confused: Listen to the Music Play
                            Please don't Chat/PM me for help, unless mod related
                            SG-4860 24.11 | Lab VMs 2.8, 24.11

                            1 Reply Last reply Reply Quote 1
                            • L
                              Luc1231122
                              last edited by Luc1231122

                              @johnpoz
                              Still not sure if the public addresses are routed to me or not. I want 4 separate networks and on different port on my server/pfsense firewall so when a costumer comes in I can just plugin a utp cable to a switch and than they have there own separate lan and public network.

                              sorry for calling them tenants their customers.

                              BTW sorry for my English im a Dutch trainee, thanks for helping though.

                              1 Reply Last reply Reply Quote 0
                              • L
                                Luc1231122
                                last edited by

                                I already have suricata running on it could that be a problem its not blocking hosts. only some packets

                                1 Reply Last reply Reply Quote 0
                                • johnpozJ
                                  johnpoz LAYER 8 Global Moderator
                                  last edited by

                                  Why would you be running IPS out of the gate is beyond me...

                                  If you don't even know if your IP space is routed to you are directly attached even - why are you even involved in such a project?

                                  Is the public IPv4 space assigned to you and you have 1 of these IPs on pfsense wan itself? Then its most likely NOT routed... If you have a different IPv4 network on your wan then this IPv4 space you have with the IPs you want to give to your clients/customers/tenants then its routed..

                                  Yes you can create 4 different networks/vlans be they directly connected to a physical port on pfsense or a vlan that is tagged, etc.

                                  The EASY!!! Solution is to your problem is if the IP space is routed to you! How many IPs do you have? What is the mask /??

                                  @lucndevr said in Does anyone have a link to a good site for Multi WAN:

                                  in I can just plugin a utp cable to a switch and than they have there own separate lan and public network.

                                  So these customers are going to run their own routers? If they are going to have their own lan?

                                  How many public IPs do the customers need each? How many public IPs do you have? You know you can hand them as many as you need with simple VIP and 1:1 nat to what their rfc1918 network is..

                                  So
                                  Customer 1 = 192.168.1/24
                                  Customer 2 = 192.168.2/24
                                  Customer 3 = 192.168.3/24
                                  etc..

                                  Then on your public IPs which you create vips And do 1:1 nat for each IP to customer IP(s)

                                  1.2.3.100 VIP 1:1 nat to 192.168.1.100
                                  1.2.3.101 VIP 1:1 nat to 192.168.2.100
                                  1.2.3.102 VIP 1:1 nat to 192.168.2.100
                                  etc..

                                  There are many ways to skin this cat - but you have not provided the details to help you further.. But what I would suggest is you remove the IPS package.. Is only going to cause you grief and is a HUGE learning curve and lots of time and effort to setup where it doesn't bomb you with log spam and false positives and if in blocking mode going to cause you pain blocking stuff...

                                  What do you currently have setup?

                                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                                  If you get confused: Listen to the Music Play
                                  Please don't Chat/PM me for help, unless mod related
                                  SG-4860 24.11 | Lab VMs 2.8, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  • L
                                    Luc1231122
                                    last edited by Luc1231122

                                    Ok its not routed to me.
                                    Do I need a separate router from my customers because they do not bring a router or firewall. I already had 1:1 nat and vips but my trainer said he wanted the public ip linked to a network not a single hosts. I am probably missing the point here.

                                    jahonixJ 1 Reply Last reply Reply Quote 0
                                    • L
                                      Luc1231122
                                      last edited by Luc1231122

                                      This post is deleted!
                                      jahonixJ 1 Reply Last reply Reply Quote 0
                                      • jahonixJ
                                        jahonix @Luc1231122
                                        last edited by

                                        @lucndevr said in Does anyone have a link to a good site for Multi WAN:

                                        a software company and there's no real network operator

                                        What, are you kidding? A software company and no-one who cares about the infrastructure?
                                        That's like Nascar racing without someone who prepared the track beforehand...

                                        @lucndevr said in Does anyone have a link to a good site for Multi WAN:

                                        what they do now is for every public ip these use a different firewall

                                        So you have a lot of separate networks at the moment, right?
                                        Are those DSL or fiber lines that arrive at your door and each with its own, single public IP?

                                        1 Reply Last reply Reply Quote 0
                                        • jahonixJ
                                          jahonix @Luc1231122
                                          last edited by

                                          @lucndevr said in Does anyone have a link to a good site for Multi WAN:

                                          my trainer said he wanted the public ip linked to a network not a single host

                                          What does he mean?
                                          Do your clients use this internet connection only for outgoing traffic or do they have own servers that need to be reached at the public IP from the outside (aka internet)? Like their own web or e-Mail server.

                                          If they need outgoing traffic only then it's easy to set each ISP connection as gateway for the specific client network.
                                          You could describe this as "public IP linked to a network" but it's more the other way round.

                                          If they have servers on-premise that need to be reached from the internet then your trainer's demand is wrong. You cannot link an IP to a network (aka multiple devices) for incoming traffic. You can only forward traffic from public IP 1.2.3.4 to one server at a local IP address. Like one web server.

                                          What do they want to gain with a single firewall and a couple of completely separated networks?
                                          And how many ISP links will there be in total?

                                          1 Reply Last reply Reply Quote 0
                                          • L
                                            Luc1231122
                                            last edited by Luc1231122

                                            This post is deleted!
                                            jahonixJ 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.