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

    Two firewalls - question?

    General pfSense Questions
    5
    13
    5.8k
    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.
    • M
      mbedyn
      last edited by

      Hello…
      I have a question?
      I have to limit bandwidth per host in my network. I know it is difficult to do with pfSense. I wonder is it possible to do this with m0n0  as on the sheme below. Does pfSense work on the same subnet on all interfaces, or do I have to setup diffrent subnet on fxp0 and vr0 ??

      Thx for comment's and some wise suggestion's....

      [xl0] (wan address)
                        –----------------------------------
                      |                                            |
                      |      m0n0wall                        |
                      |                                            |
                      | (DHCP)  (limit p/host)            |
                        ------------------------------------
                                [fxp0] (192.168.1.1/24)
                                    V
                                    V
                                    V
                                [vr0]  (192.168.1.2/24)
                      –----------------------------------
                      |                                              |
                      |              pfSense                    |
                      |                                              |
                      |                                              |
                      |  (squid) (DHCP relaying)          |
                      |            (wireless interfaces)      |
                      --------------------------------------
                    [wi0]                [wi1]                [wi2]
                (192.168.1.3)  (192.168.1.4)  (192.168.1.5)

      wireless client's somwhere here ;-)

      1 Reply Last reply Reply Quote 0
      • C
        cmb
        last edited by

        @mbedyn:

        Does pfSense work on the same subnet on all interfaces, or do I have to setup diffrent subnet on fxp0 and vr0 ??

        you have to have different subnets.  No IP routing device (essentially what you're doing here w/pfsense) can use the same subnet on multiple interfaces.

        Make sure you disable NAT on pfsense (enable advanced outbound NAT and remove all NAT rules)

        1 Reply Last reply Reply Quote 0
        • M
          mbedyn
          last edited by

          @cmb:

          you have to have different subnets.

          ??? How to setup DHCP in m0n0 on Lan interface if it will be on different subnet?
          hmmmmm….....

          @cmb:

          essentially what you're doing here w/pfsense

          couse it's quite good, and easy to manage. :)

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            @mbedyn:

            ??? How to setup DHCP in m0n0 on Lan interface if it will be on different subnet?

            you can't.  m0n0wall (nor pfsense) isn't intended for a full scale DHCP server, so neither supports multiple subnets off of one interface.  If you want DHCP on the LAN side of psense, use pfsense's DHCP.

            1 Reply Last reply Reply Quote 0
            • M
              mbedyn
              last edited by

              @cmb:

              you can't.  m0n0wall (nor pfsense) isn't intended for a full scale DHCP server, so neither supports multiple subnets off of one interface.  If you want DHCP on the LAN side of psense, use pfsense's DHCP.

              Hmmm that's not good news…. how to use shaper and firewall on m0n0 using DHCP on pf?  m0n0 will not know anythign about hosts on pf.
              Mayby any other solution? Does anyone have any idea, how to do this ??

              1 Reply Last reply Reply Quote 0
              • S
                sullrich
                last edited by

                We have the same DHCP options as m0n0wall.  What exactly are you looking for?

                1 Reply Last reply Reply Quote 0
                • C
                  cmb
                  last edited by

                  @mbedyn:

                  Hmmm that's not good news…. how to use shaper and firewall on m0n0 using DHCP on pf?  m0n0 will not know anythign about hosts on pf.

                  huh?  That has nothing to do with the functionality of the shaper on m0n0wall, it doesn't have to serve DHCP IP's to them to know what to do about them.

                  1 Reply Last reply Reply Quote 0
                  • M
                    mbedyn
                    last edited by

                    @cmb:

                    huh?  That has nothing to do with the functionality of the shaper on m0n0wall, it doesn't have to serve DHCP IP's to them to know what to do about them.

                    You are right… but only in case of static IP or static DHCP mapping. Problem is with wireless client's, couse they may roam between station's. Probably I'll have to set static DHCP mapping on all wireless interfaces, in three diffrent subnets... if so, I'll have to setup three aliases per each host on m0n0, to easy manage shaper rules. It's getting little clumsy.. don't you think?
                    Perfect situation is when all wireless client's are in the same subnet, in this case there is no problem with client's roaming, aliases, traffic shaping.. etc..

                    Am I wrong  :-\

                    1 Reply Last reply Reply Quote 0
                    • B
                      billm
                      last edited by

                      Sounds to me like you aren't really using pfsense for anything in this setup.  Why not pull it and just use m0n0, seems like it suits your needs already without making your network (and life) needlessly complex.

                      –Bill

                      pfSense core developer
                      blog - http://www.ucsecurity.com/
                      twitter - billmarquette

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

                        I guess he wants pfSense to be the AP. And I think m0n0s wireless support is somewhat limited.

                        -lsf

                        1 Reply Last reply Reply Quote 0
                        • M
                          mbedyn
                          last edited by

                          @lsf:

                          And I think m0n0s wireless support is somewhat limited.

                          Exaclty, that's the reason I pointing to fps.
                          Does anybody can give me some good advise, how to do this?

                          1 Reply Last reply Reply Quote 0
                          • B
                            billm
                            last edited by

                            Set up the wireless in pfsense as a bridge then?

                            –Bill

                            pfSense core developer
                            blog - http://www.ucsecurity.com/
                            twitter - billmarquette

                            1 Reply Last reply Reply Quote 0
                            • M
                              mbedyn
                              last edited by

                              @billm:

                              Set up the wireless in pfsense as a bridge then?

                              –Bill

                              what do you mean?? make a bridge with each wireless interface to what?? to wan interface?
                              Meanwhile I've noticed that is some problem with bridge's  in pfs <http: cvstrac.pfsense.com="" tktview?tn="693">:-\

                              I'm confused… I'd like to use pfs as AP couse it has very usefull features....
                              Anyway I'm going to make some tests with bridging....</http:>

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