Captive Portal for 1 AP on my network



  • Hi!

    Just want to ask if I can apply Captive Portal to our set up, we want to use captive portal on WIFI AP 2, is this workable on our set up?

    I don't want clients on WIFI AP 2 to have access to file sharing on our 192.168.2.xxx network.

    TIA!

    ast


  • Galactic Empire

    AP2 isn't an access-point its a Wi-Fi router, its WAN interface is on the same subnet that you want to block it will also be doing a NAT :)

    Get a couple of proper access-points and have multiple SSIDs it will make your life so much easier.

    Or if you have to use the Wi-Fi router connect it to another ethernet interface on your pfSense box and have it on its own network with firewall rules to block, remember to switch off DHCP and enable it on the new pfSense interface.



  • @NogBadTheBad:

    AP2 isn't an access-point its a Wi-Fi router, its WAN interface is on the same subnet that you want to block it will also be doing a NAT :)

    Get a couple of proper access-points and have multiple SSIDs it will make your life so much easier.

    Or if you have to use the Wi-Fi router connect it to another ethernet interface on your pfSense box and have it on its own network with firewall rules to block, remember to switch off DHCP and enable it on the new pfSense interface.

    Thanks a lot for the reply!

    Yeah,  I'm planning to just use the wifi capability of the wifi router, so will turn off dhcp and plug in via 1 of the ethernet port.  Do I need to make a VLAN?  Just can't figure out how to have DHCP on VLAN.

    My pfsense box have 4 NICs.

    TIA!

    ast


  • Galactic Empire

    If you have spare NICs you can connect AP2 to that on it's own subnet.



  • @NogBadTheBad:

    If you have spare NICs you can connect AP2 to that on it's own subnet.

    Thanks for the tip!  Made another subnet for AP2, and enabled Captive Portal.



  • I'm trying our Captive Portal but reached a road block :(  do i really need to make the HTML files to make CP work?  Are there any ready made HTML file for CP?

    TIA!


  • LAYER 8 Netgate

    You don't need CP at all it sounds like. Just block traffic using rules on the new wifi subnet to destination 192.168.2.0/24 if you don't want those users to be able to access those addresses.



  • @Derelict:

    You don't need CP at all it sounds like. Just block traffic using rules on the new wifi subnet to destination 192.168.2.0/24 if you don't want those users to be able to access those addresses.

    Hi!  Thanks for the tip!  Can I ask on how to block the new subnet from accessing the 192.168.2.xxx? I know how to make firewall rules, just got mental block on how to block access to different subnet.

    Tia!

    Ast


  • LAYER 8 Netgate

    Block all traffic on that interface to destination 192.168.2.0/24



  • @Derelict:

    Block all traffic on that interface to destination 192.168.2.0/24

    Thanks a lot for the tip!


  • LAYER 8 Global Moderator

    Didn't we already go over this in this thread.

    https://forum.pfsense.org/index.php?topic=133348.0

    That you could just create a firewall rule to block access on your wifi router 2 network, and that you didn't need to nat it, etc. etc.


Log in to reply