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

    Is it possible?

    Scheduled Pinned Locked Moved Captive Portal
    53 Posts 9 Posters 10.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.
    • A
      Amethz
      last edited by

      @NickM:

      You should be able to, i currently have the same configuration, the only difference is that i am using a netgear router as AP.

      LAN1 - em0 = WAN (you can either set it up as static ip or DHCP)
      LAN2 - em1 = LAN (192.168.1.1/24 and DHCP server enabled)

      On the router remove DHCP server and make it static ip with 192.168.1.2 and using GW 192.168.1.1 (Pfsense LAN interface ip).

      This way, anyone connecting to Wifi through your router will get dhcp from pfsense and once they open any webpage they will be redirected to the captive portal (if you enable it on lan interface).

      yes, I'm setting wan as em0 and lan as em1
      do I need to disable the DHCP server of my router before installing pfsense or I should do it after?..
      I made router's ip: 192.168.1.2

      thanks

      1 Reply Last reply Reply Quote 0
      • A
        Amethz
        last edited by

        @Derelict:

        Trying to install 64-bit on a 32-bit CPU?

        hMmmm

        dxdiag.png
        dxdiag.png_thumb
        ![pfsense settings.jpg](/public/imported_attachments/1/pfsense settings.jpg)
        ![pfsense settings.jpg_thumb](/public/imported_attachments/1/pfsense settings.jpg_thumb)

        1 Reply Last reply Reply Quote 0
        • A
          Amethz
          last edited by

          @Derelict:

          Trying to install 64-bit on a 32-bit CPU?

          I do need a 32 bit pfsense?

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

            I don't know anything about virtual box but it looks like you are trying to install amd64 into a 32-bit VM.  If you CAN install 64-bit, you SHOULD install 64-bit.  But they need to match.

            Make a 64-bit VM and install 64-bit.  Or install 32-bit into what you have if that's all you can do.

            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
            • A
              Amethz
              last edited by

              @Derelict:

              I don't know anything about virtual box but it looks like you are trying to install amd64 into a 32-bit VM.  If you CAN install 64-bit, you SHOULD install 64-bit.  But they need to match.

              Make a 64-bit VM and install 64-bit.  Or install 32-bit into what you have if that's all you can do.

              thank you very much sir!

              Oic, I'm installing a 64bit into a 32bit freeBSD that's why… but there's no 64bit of it on my virtualbox, and I saw someone on youtube has 64bit of freeBSD..

              BSD.jpg
              BSD.jpg_thumb

              1 Reply Last reply Reply Quote 0
              • A
                Amethz
                last edited by

                found the solution  ;D  ;D  ;D  ;D  ;D

                BSD.jpg
                BSD.jpg_thumb

                1 Reply Last reply Reply Quote 0
                • A
                  Amethz
                  last edited by

                  when I disabled dhcp server on my wifi-router then reset the virtual machine, wan becomes blank, is it normal?.. I also enabled the captive portal and when I try to connect using my phone, it's directly connecting to the internet without authentication.. also can't access 192.168.1.1 (pfsense gui) using phone but I can access 192.168.1.2(dd-wrt gui)

                  preview.jpg
                  preview.jpg_thumb

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest
                    last edited by

                    when I disabled dhcp server on my wifi-router then reset the virtual machine,

                    If the pfSense gets his WAN IP over DHCP this could be really going.

                    wan becomes blank, is it normal?..

                    Then enter in the WAN field of the pfSense a static IP address please, and this must be one from the
                    IP range where the DD-WRT router is in.

                    I also enabled the captive portal and when I try to connect using my phone, it's directly connecting to the internet without authentication..

                    Is your VM host doing NAT?

                    also can't access 192.168.1.1 (pfsense gui) using phone but I can access 192.168.1.2(dd-wrt gui)

                    Is this DD-WRT "device" also a VM guest or a real device?

                    1 Reply Last reply Reply Quote 0
                    • A
                      Amethz
                      last edited by

                      @BlueKobold:

                      when I disabled dhcp server on my wifi-router then reset the virtual machine,

                      If the pfSense gets his WAN IP over DHCP this could be really going.

                      wan becomes blank, is it normal?..

                      Then enter in the WAN field of the pfSense a static IP address please, and this must be one from the
                      IP range where the DD-WRT router is in.

                      I also enabled the captive portal and when I try to connect using my phone, it's directly connecting to the internet without authentication..

                      Is your VM host doing NAT?

                      also can't access 192.168.1.1 (pfsense gui) using phone but I can access 192.168.1.2(dd-wrt gui)

                      Is this DD-WRT "device" also a VM guest or a real device?

                      I should just let dhcp server disabled on my wifi-router or I should not?..
                      I already enter an static ip address to wan (192.168.1.100)
                      I set it bridged adapter
                      dd-wrt is a real device, it's the wifi-router that I'm using right now

                      please correct me if I made some mistake
                      thank you.

                      wifirouter.jpg
                      wifirouter.jpg_thumb
                      preview.jpg
                      preview.jpg_thumb
                      ![pfsense settings.jpg](/public/imported_attachments/1/pfsense settings.jpg)
                      ![pfsense settings.jpg_thumb](/public/imported_attachments/1/pfsense settings.jpg_thumb)

                      1 Reply Last reply Reply Quote 0
                      • ?
                        Guest
                        last edited by

                        I should just let dhcp server disabled on my wifi-router or I should not?..

                        You can do but the WAN IP from the pfSense msut be a static one, that is outside of the
                        DHCP pool from the DHCP server from the DD-WRT Router!

                        I already enter an static ip address to wan (192.168.1.100)

                        Then the DHCP IP range should be from 192.168.1.1/24 - 192.168.1.99/24 or
                        192.168.1.101/24 to 192.168.1.254/24 so that the WAN IP from the pfSense is
                        not inside of the IP range from the DHCP server from the DD-WRT!

                        I set it bridged adapter

                        Why? Is the VM also doing NAT?

                        dd-wrt is a real device, it's the wifi-router that I'm using right now

                        There comes the Internet in or?

                        Internet –- ISP --- DD-WRT --- VM host --- VM with pfSense --- LAN
                        If the DD-WRT is doing NAT and the VM host also and then on top the pfSense will be also doing NAT
                        you get in trouble here.

                        If the WAN IP Address of the pfSense is inside the DHCP IP Address range you will be also going into trouble.

                        1 Reply Last reply Reply Quote 0
                        • A
                          Amethz
                          last edited by

                          @BlueKobold:

                          There comes the Internet in or?

                          Internet –- ISP --- DD-WRT --- VM host --- VM with pfSense --- LAN
                          If the DD-WRT is doing NAT and the VM host also and then on top the pfSense will be also doing NAT
                          you get in trouble here.

                          my network setting is: internet > wifi-router > laptop where the virtualbox installed > VM with pfsense

                          If the WAN IP Address of the pfSense is inside the DHCP IP Address range you will be also going into trouble.

                          should I set the wan of pfsense to 192.168.1.3 or what?

                          1 Reply Last reply Reply Quote 0
                          • A
                            Amethz
                            last edited by

                            I really don't know if it's nat or not  :o

                            1 Reply Last reply Reply Quote 0
                            • A
                              Amethz
                              last edited by

                              what should I do if the external lan card cannot detect?.. should I install latest version of pfsense?.. I changed my setup onto stand-alone

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

                                FreeBSD Hardware Compatibility List:

                                https://www.freebsd.org/releases/10.1R/hardware.html

                                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
                                • A
                                  Amethz
                                  last edited by

                                  I don't need to install their drivers?

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

                                    You're better off just sticking to supported hardware.

                                    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
                                    • GertjanG
                                      Gertjan
                                      last edited by

                                      @Derelict:

                                      You're better off just sticking to supported hardware.

                                      Exactly.
                                      Time to promote plan B to Plan A: make pfSEnse work on its own 'device'.
                                      Afterwards, when you 'manage' EXSI well, try to to 'visualize' the whole thing.

                                      No "help me" PM's please. Use the forum, the community will thank you.
                                      Edit : and where are the logs ??

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

                                        OP wants to learn/is being taught pfSense, hence the virtual setup. Dedicated HW is probably out of that scope.

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          Amethz
                                          last edited by

                                          @Derelict:

                                          You're better off just sticking to supported hardware.

                                          thank you sir..
                                          quick question, can I watch cached videos using wifi on pfsense without buffering it or this is applicable only on wired?

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

                                            That's more up to your Wi-Fi than pfSense.  pfSense doesn't care if you're wired or wireless.

                                            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.