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

    Pfsense with only one network board

    Scheduled Pinned Locked Moved Captive Portal
    5 Posts 3 Posters 373 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.
    • B
      brunow
      last edited by

      I have the following problem:

      I want to use my computer, which has only one network board, to act as a firewall for my network. I installed pf sense on it.

      The network board is connected to a switch port that is in trunk mode, passing vlans 10 and 20.

      Vlan 10 should act as LAN and 20 as WAN.

      In order for the traffic from vlan 10 to be directed to my pf sense, I have a Mikrotik that directs all traffic from vlan 10 to pf sense. pf sense is the dhcp server for vlan 10 and the gateway as well. I applied the captive portal to vlan 10, but the problem is that my clients in vlan 10 are not redirected to the login page. I looked at dhcp leases and they receive an IP from my pf sense. To test the functionality of my captive portal, I put the IP of my user from vlan 10 in "allowed IP address" and he accessed the internet. After that, I removed the user's IP from "allowed IP address" and his internet stopped working, that is, the captive portal works but the login screen does not appear. What should I look at to see why the login screen does not appear?

      GertjanG 1 Reply Last reply Reply Quote 0
      • C
        coxhaus
        last edited by coxhaus

        This is not the best way to go. You really want 2 ports on a firewall.
        It is called router on a stick if you want to look it up in terms of firewalls and security

        B 1 Reply Last reply Reply Quote 0
        • B
          brunow @coxhaus
          last edited by

          @coxhaus I didn't know this term yet, router on a stick, thanks for that. But in the pf sense documentation, it will treat every interface that doesn't have a gateway configured as LAN, so it's possible to apply the captive portal, I think. The only question I have is why the client isn't being redirected.

          Note: As I said before, the captive portal works for clients in vlan 10, they just aren't redirected to the login page.

          1 Reply Last reply Reply Quote 0
          • GertjanG
            Gertjan @brunow
            last edited by Gertjan

            @brunow said in Pfsense with only one network board:

            I have the following problem:

            I want to use my computer, which has only one network board, to act as a firewall for my network. I installed pf sense on it.

            The network board is connected to a switch port that is in trunk mode, passing vlans 10 and 20.

            Vlan 10 should act as LAN and 20 as WAN.

            That's more the enough keywords to find the solution in one click :

            Youtube pfsense VLAN one nic

            I added the keyword 'Youtube', I guess you know why.

            But ... because you've decided to do it the "hard way" => you need a switch that is VLAN capable. Examples of these are mentioned in the video.
            You have to set up the switch, so it matches the VLAN setup of pfSense.
            "It can be done" 👍

            Btw : the video's mention a LAN and a WAN on the switch.
            But don't stop there, these switches have at least 5 ports, so you can create another interface named 'portal'.
            Example : on the switch you will have one WAN port.
            One Portal port. => goes to your AP.
            and the other ports left over are all 'LAN (switched).

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

            B 1 Reply Last reply Reply Quote 1
            • B
              brunow @Gertjan
              last edited by

              @Gertjan Thanks, man. You really help me

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