• 0 Votes
    1 Posts
    545 Views
    No one has replied
  • 0 Votes
    8 Posts
    2k Views
    T

    Problem fixed by forcing the gateway on the AP to PfSense's LAN IP. I had it set up through /etc/network/interfaces but turns out I had to set it up via

    route add default gw 192.168.1.1 wlan0
  • Wan -> pfsense -> Wan possible?

    Routing and Multi WAN
    1
    0 Votes
    1 Posts
    501 Views
    No one has replied
  • 0 Votes
    15 Posts
    2k Views
    SmokeScreenS

    Feliz fin de año a todos y que la pasen bien.

    Después de investigar mas sobre las reglas del firewall, el portal cautivo, dns resolver y sobre las Zonas desmilitarizadas (DMZ), pude solucionar el problema de la redirección del portal hacia mi servidor web, tuve que borrar algunas reglas anteriores que en mi caso no son importantes.

    Luego de configurar la interfaz de la DMZ, darle acceso a la red LAN con las reglas del firewall, le di un dominio a la ip del servidor WEB con el DNS resolver y en el portal cautivo en "after authentication redirect" colocar ese dominio, tuve como resultado que cada usuario que se conecte a mi router pueda ser redireccionado al portal cautivo y de ahí autenticarse con solo hacer click al botón que está por defecto del pfsense (Que con un poco de css, html y no puede faltar javascript voy a cambiarle el estilo con respecto a mi proyecto) de ahí ser redireccionado a mi pagina web al fin.

    Bueno no del todo, mis pruebas se limitaron a dispositivos móviles en el cual no me ha dado el resultado que pienso que debería dar, ya que por lo menos en android al conectase de manera intuitiva (no por el navegador si no por un programa que desconozco) me lleva al portal para autenticarme, clikeo el botón y me redirecciona automáticamente a mi pagina web pero al pasar 1 o 2 segundos se cierra el programa que abre el portal cautivo y claro por ende ya me deja navegar e ingresar de nuevo a mi pagina web, pero ya saben tengo que abrir el navegador y tipear la url, la idea es que se quede en la pagina que me redireccionó ósea en mi pagina web.

    Me imagino que en otros sistemas operativos diseñados para computadoras eso no debería pasar ya que el usuario tendría que abrir el navegador, buscar algo y por naturaleza del pfsense ser redireccionado al portal cautivo, y como ya está en el navegador este no tiene porque cerrarse como me pasó a mi en el celular.

    Solo me queda arreglar eso y bueno, tal vez me aventure a buscar manera que los usuarios no busquen otra cosa fuera de mi servidor web, que ya con una regla de firewall les quito el acceso a internet pero me gustaría que fuesen redireccionados al mismo si eso pasa.

    Buenas noches.

  • 0 Votes
    11 Posts
    1k Views
    N

    @pfuzer pfsense with pfblockergng-dev and suricata

  • 0 Votes
    6 Posts
    1k Views
    M

    @mmmmmmmm Problem solved. Updated to latest virtualbox version...

  • 0 Votes
    6 Posts
    1k Views
    KOMK

    Glad it's working for you.

  • 0 Votes
    2 Posts
    830 Views
    stephenw10S

    Sure you can do that. I've done exactly that myself.

    There would be a few things to consider when importing the config. The interface names will be different, em* in VB and igb* on the 2440. When you import the config in the GUI is should ask you to re-assign the interfaces at that point but you should be sure to have console access to the 2440 in case there is still an interface mismatch and it asks you there.

    The VB install will almost certainly not have a serial console by default. That should be overridden when you import it to the 2440 but you might want to enable dual consoles in System > Advanced > Admin Access tab.

    You should always enable PowerD on an SG-2440 config to get the full CPU speed in System > Advanced > Miscellaneous tab. That obviously doesn't do much in VB.

    However restoring a config is pretty easy using the ECL:
    https://www.netgate.com/docs/pfsense/backup/automatically-restore-during-install.html?highlight=ecl#external-configuration-locator-ecl

    If you manage to break the config sufficiently on the 2440 you can always restore a backup by simply rebooting with a USB stick containing it attached.

    Steve