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

Is it possible?

Scheduled Pinned Locked Moved Captive Portal
53 Posts 9 Posters 9.6k 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 Aug 20, 2015, 1:16 PM

    I installed pfsense v2.0.1 in a virtualbox, and I'm using wifi-router with dd-wrt firmware.. Is it possible to have a captive portal?.. newbie here

    1 Reply Last reply Reply Quote 0
    • R
      rjcrowder
      last edited by Aug 20, 2015, 4:14 PM

      @Amethz:

      I installed pfsense v2.0.1 in a virtualbox, and I'm using wifi-router with dd-wrt firmware.. Is it possible to have a captive portal?.. newbie here

      The short answer is "yes".

      Unfortunately, the long answer requires some knowledge (i.e. by you) on how to setup your network. You basically need to setup pfSense (the VM) as the gateway to the internet - getting its IP from your ISP (plugged into the modem - assuming you are cable), it would also be your dhcp server, firewall, etc. and run the captive portal. Then change your wifi-router to be an access point.

      I have a physical pfSense box, so maybe others could tell you how to configure the VM. Believe you'd also need two interfaces on the host machine - or a switch that supports tagging.

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by Aug 20, 2015, 5:45 PM

        Set the WiFi router up as in WLAN AP mode and then you need to connect it to the pfSense VM with enabled CP.

        1 Reply Last reply Reply Quote 0
        • D
          Derelict LAYER 8 Netgate
          last edited by Aug 20, 2015, 6:50 PM

          2.0.1 is ancient.

          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
          • D
            doktornotor Banned
            last edited by Aug 20, 2015, 11:02 PM

            @Amethz:

            I installed pfsense v2.0.1 in a virtualbox

            Why are you installing dead junk?

            1 Reply Last reply Reply Quote 0
            • A
              Amethz
              last edited by Aug 21, 2015, 4:35 AM

              @doktornotor:

              @Amethz:

              I installed pfsense v2.0.1 in a virtualbox

              Why are you installing dead junk?

              because someone is teaching me and he gave me that pfsense.iso v2.0.1.. I also have 2.2.4 version here, is it okay to use this one? TIA

              q.jpg

              1 Reply Last reply Reply Quote 0
              • D
                Derelict LAYER 8 Netgate
                last edited by Aug 21, 2015, 4:44 AM

                Yes, 2.2.4 released recently (current) is better than 2.0.1 released 5 years ago.

                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 Aug 21, 2015, 4:54 AM

                  @Derelict:

                  Yes, 2.2.4 released recently (current) is better than 2.0.1 released 5 years ago.

                  LOL, I'm not informed that twas release 5yrs ago.. okay, I'll try this 2.2.4 thanks thanks.

                  1 Reply Last reply Reply Quote 0
                  • N
                    NickM
                    last edited by Aug 21, 2015, 4:08 PM

                    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).

                    1 Reply Last reply Reply Quote 0
                    • A
                      Amethz
                      last edited by Aug 22, 2015, 4:53 AM

                      error: CPU doesn't support long mode
                      I set its(version 2.2.4) settings just like what I'm doing on version 2.0.1 but I got this error.. what should I do?

                      error.jpg
                      error.jpg_thumb

                      1 Reply Last reply Reply Quote 0
                      • D
                        Derelict LAYER 8 Netgate
                        last edited by Aug 22, 2015, 4:55 AM

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

                        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 Aug 22, 2015, 5:00 AM

                          @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 Aug 22, 2015, 5:05 AM

                            @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 Aug 22, 2015, 2:32 PM

                              @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
                              • D
                                Derelict LAYER 8 Netgate
                                last edited by Aug 22, 2015, 5:28 PM

                                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 Aug 22, 2015, 7:24 PM

                                  @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 Aug 22, 2015, 9:07 PM

                                    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 Aug 23, 2015, 9:29 AM

                                      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 Aug 23, 2015, 10:38 AM

                                        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 Aug 23, 2015, 1:13 PM

                                          @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
                                          20 out of 53
                                          • First post
                                            20/53
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                            This community forum collects and processes your personal information.
                                            consent.not_received