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

    Access to the internet

    Scheduled Pinned Locked Moved Routing and Multi WAN
    26 Posts 4 Posters 3.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.
    • L
      lfreez
      last edited by

      ::)

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Yes, you can do that with policy-based routing.  Use firewall rules to direct traffic from particular subnets or VLANS to specific WANs.  I can't provide specific guidance since I odn't have this configuration to play with.  Search these forums and online for policy-based routing info.

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

          @KOM:

          Yes, you can do that with policy-based routing.  Use firewall rules to direct traffic from particular subnets or VLANS to specific WANs.  I can't provide specific guidance since I odn't have this configuration to play with.  Search these forums and online for policy-based routing info.

          Thanks KOM I'll search that

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            https://doc.pfsense.org/index.php/What_is_policy_routing

            And you'll need this for traffic between your VLANs:

            https://doc.pfsense.org/index.php/Bypassing_Policy_Routing

            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
            • KOMK
              KOM
              last edited by

              That policy-based routing page is practically useless without some examples and I never link to it because of that.

              1 Reply Last reply Reply Quote 0
              • DerelictD
                Derelict LAYER 8 Netgate
                last edited by

                Oh well.  We have the documentation we have.

                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
                • L
                  lfreez
                  last edited by

                  hi everyone

                  I found some detail about policy-based routing and did some changes but It didn't work for me.

                  Now what I want to do is -

                  users is VLAN 1 (network 10.238.56.0) give access to internet through WAN1
                  users is VLAN 2 (network 10.238.59.0) give access to internet through WAN2

                  what I did in pfsense -

                  system–>gateways-->

                  1.create 2 gateways for my 2 WANs
                  2.create a gateway for my LAN
                  3.WAN1 is selected as default
                  4.routes added to my 2 networks
                    10.238.56.0
                    10.238.59.0
                  5.no gateway groups added

                  Firewall–> Rules-->LAN

                  1.added 2 rules for my 2 networks

                  Eg-  LAN 1
                  Action            - pass
                  Interface          - LAN
                  Protocol          - TCP
                  Source            - type    - network
                                          address  - 10.238.56.0/24
                  destination      - type    - single host or alias/network/wan1 net/wan1 address/wan2 net/wan2 address
                                          address  -
                  advance features –> Gateway - WAN1

                  Eg-  LAN 2 same as above

                  please can anyone tell me

                  1. what is the suitable for

                  destination - type  - single host or alias/network/wan1 net/wan1 address/wan2 net/wan2 address

                  2.is that need to add rules for WAN1 and WAN2 in Firewall--> Rules

                  1 Reply Last reply Reply Quote 0
                  • DerelictD
                    Derelict LAYER 8 Netgate
                    last edited by

                    1. For internet access the destination should be any.

                    You should also be passing IPv4 any protocol, not just TCP.

                    2. You don't need any rules on WAN1 or WAN2 unless you want to pass connections FROM the internet INTO pfSense (you are running servers that internet users need to access).

                    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
                    • L
                      lfreez
                      last edited by

                      @Derelict:

                      1. For internet access the destination should be any.

                      You should also be passing IPv4 any protocol, not just TCP.

                      2. You don't need any rules on WAN1 or WAN2 unless you want to pass connections FROM the internet INTO pfSense (you are running servers that internet users need to access).

                      thanks Derelict for your quick response.. now I changed like you said but still both networks using same gateway for access to the internet

                      what about floating rules is that necessary??

                      1 Reply Last reply Reply Quote 0
                      • DerelictD
                        Derelict LAYER 8 Netgate
                        last edited by

                        No.

                        Firewall–> Rules-->LAN

                        1.added 2 rules for my 2 networks

                        Eg-  LAN 1
                        Action            - pass
                        Interface          - LAN
                        Protocol          - TCP
                        Source            - type    - network
                                                address  - 10.238.56.0/24
                        destination      - type    - single host or alias/network/wan1 net/wan1 address/wan2 net/wan2 address
                                                address  -
                        advance features --> Gateway - WAN1

                        Eg-  LAN 2 same as above

                        Can you do screenshots of both Firewall > Rules pages for both LAN interfaces?  Both System > Routing > Gateways?

                        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
                        • L
                          lfreez
                          last edited by

                          yes I can

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

                            here are that screenshots -

                            1 Reply Last reply Reply Quote 0
                            • DerelictD
                              Derelict LAYER 8 Netgate
                              last edited by

                              Might be just me but those are mostly too low-resolution to read.

                              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
                              • L
                                lfreez
                                last edited by

                                sorry

                                1 Reply Last reply Reply Quote 0
                                • KOMK
                                  KOM
                                  last edited by

                                  What's LANGW, a gateway group?

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

                                    @KOM:

                                    What's LANGW, a gateway group?

                                    you mean….  System: Gateways --> LANGW

                                    that is my LAN

                                    1 Reply Last reply Reply Quote 0
                                    • DerelictD
                                      Derelict LAYER 8 Netgate
                                      last edited by

                                      Yeah those images aren't any good either.  Just attach the images using the attachment tool in the forum posting form.  Works great.  Not sure why people insist on doing something else.

                                      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
                                      • DerelictD
                                        Derelict LAYER 8 Netgate
                                        last edited by

                                        Nope.  Still just thumbnails for me.  Dont have time to deal with why multiple browsers don't display postimg correctly.  Post them so people can see them.

                                        ![Screen Shot 2015-08-30 at 12.33.21 AM.png](/public/imported_attachments/1/Screen Shot 2015-08-30 at 12.33.21 AM.png)
                                        ![Screen Shot 2015-08-30 at 12.33.21 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-08-30 at 12.33.21 AM.png_thumb)

                                        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
                                        • DerelictD
                                          Derelict LAYER 8 Netgate
                                          last edited by

                                          Not for me they're not.  Even after clearing cache 4 of 5 are still thumbnails.

                                          ![Screen Shot 2015-08-30 at 12.43.51 AM.png](/public/imported_attachments/1/Screen Shot 2015-08-30 at 12.43.51 AM.png)
                                          ![Screen Shot 2015-08-30 at 12.43.51 AM.png_thumb](/public/imported_attachments/1/Screen Shot 2015-08-30 at 12.43.51 AM.png_thumb)

                                          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
                                          • DerelictD
                                            Derelict LAYER 8 Netgate
                                            last edited by

                                            Current Firefox, Current Safari, Current Chrome.  Dude needs to post so people can read it.

                                            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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.