• Captive Portal MB Vouchers

    3
    0 Votes
    3 Posts
    1k Views
    GertjanG

    @biomecanoid:

    one more thing that doesnt work is redirection, meaning that when user type a URL like www.google.com they must be forwarded to the login page which now doesn't happen

    Can voucher work with 'size' instead of 'time' ? The reply is : No.

    Redirection :
    Do you mean :
    http://www.google.com
    or
    https://www.google.com
    ?

    When I'm opening a browser which has a default home **http://**www.google.com then I will be redirected to the login page.
    If this doesn't happen on your setup, then something is wrong. DNS probably ….
    Detail your setup.

  • Passthrough MAC additions nightly clean up

    2
    0 Votes
    2 Posts
    660 Views
    GertjanG

    @shockwavecs:

    ….
    TLDR; how do I remove MAC additions from the CP via a remote call (POST) or a simple command line call?

    Command line using a script ?!
    Check out /etc/inc/captiveportail.inc and files like /usr/local/www/services_captiveportal_mac.php
    Everything is there so you can write a small php file that iterates over all auto-added registered MAC.

  • Captive portal status

    10
    0 Votes
    10 Posts
    2k Views
    T

    No, I'm not. Just web configurator and captive portals. But I agree with you, it is to messy. I'll just reinstall and reconfigure pfSense when the time is right.  Thank you for your time.

  • Squid3 and CP with mac address autentication

    2
    0 Votes
    2 Posts
    698 Views
    R

    I solved something.
    I enabled authentication with a local user and Enable Pass-through MAC automatic additions

  • Captive Portal + web filtering in transparent mode

    7
    0 Votes
    7 Posts
    5k Views
    R

    Hi guys,
    I have the same problem but I could't solve.
    CP with local user authentication and "Enable Pass-through MAC automatic additions", squid3 not work (trasparent e non trasparent mode)

    All requests are managed nly by CP , but i want:

    clients–-->CP----->Squid3&SquidGuard(Trasparent Mode)----WAN

    anyone can help me?

  • Captive Portal Logout Page instead of Popup

    7
    0 Votes
    7 Posts
    5k Views
    Y

    Please follow this post, it is what you want.
    https://forum.pfsense.org/index.php?topic=89869.msg497777#msg497777

  • Error during table cpzone1 creation. Error message: database is locked

    27
    0 Votes
    27 Posts
    4k Views
    A

    Hi

    Gertjan & CMB

    Thanks for your valuable inputs.

    As suggested I have made a clean install of 2.2.6 and no more database locked errors are found.

    Then I changed 2.2.6 captiveportal.inc & index.php for manual logout page as mentioned in https://forum.pfsense.org/index.php?topic=77143.0

    Everything is working fine now with manual logout page.

    Earlier when i upgraded to 2.2.6, I used to copy modified captiveportal.inc & index.php from version 2.2.4 to get manual logout page. I didnt modify 2.2.6 version captiveportal.inc & index.php for manual logout page. So that's why I was getting database error after upgrading to 2.2.6.

    Sorry, it was my fault, I should have made changes to 2.2.6 version captiveportal.inc & index.php files to get logout page.

    Thanks & regards

  • Problems after upgrade 2.2.4 to 2.2.5

    15
    0 Votes
    15 Posts
    4k Views
    U

    apparently now is working fine.

    after of 14 days any restart of database.

    thanks

  • Two authentication methods and two user groups

    4
    0 Votes
    4 Posts
    872 Views
    GertjanG

    You should know all about the Google Authentication API.
    The PHP language shouldn't have any secrets to you.
    You need to be an pfSense user AND know how pfSEnse is written and works …
    Then you could consider implementing your needs.

    I think your next best solution will be : post a message here Post a bounty but read the how-to-post first.

  • Password of the Day

    4
    0 Votes
    4 Posts
    2k Views
    M

    I change some of my passwords weekly, but this could just as easily be done every day if need be.

    I keep a list of passwords in a text file, with one password on each line. I use a short script (rotatefile.sh) on the RADIUS server to pick up the password from the top of the file and put it at the bottom:

    #!/bin/sh

    Take first line of wordfile

    pw=head -n 1 /root/wordfile.txt
    echo "$pw"

    Delete first line in wordfile

    sed -i 1d /root/wordfile.txt

    Append wordfile with word taken from top

    echo $pw >> /root/wordfile.txt

    I then call this script from within another script which picks up the password from the file and uses it to update the entry for that login on the RADIUS server. Whether you use a flat-file or a SQL backend, either way it works:

    t4=/root/rotatefile.sh

    The t4 environment parameter can then be used to perform a 'sed' change on your users file or be parsed into your SQL database. As Derelict has suggested, you can post the username on the form itself if you need to.

  • CaptivePortal on GRE interface

    4
    0 Votes
    4 Posts
    1k Views
    R

    I've modified the setup so we now use 2 VM's; 1 for the setup of VPN, and 1 with a LAN interface to run CaptivePortal on:

    Will this setup still work? It seems the MAC addresses from the client devices (10.30.0.0/16) are dropped for the traffic that flows through the VPN tunnel. The DHCP requests however are still done with correct source MAC.

    A followup question; the traffic flows through both VM's, ping works correctly:

    [2.2.6-RELEASE][admin@HopprVPN.trin-it.nl]/root: tcpdump -netti le1 host tweakers.net tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on le1, link-type EN10MB (Ethernet), capture size 65535 bytes capability mode sandbox enabled 1451471556.841142 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 74: 10.30.0.10 > 213.239.154.20: ICMP echo request, id 1, seq 1127, length 40 1451471556.842799 00:50:56:01:27:ca > 00:50:56:01:26:5e, ethertype IPv4 (0x0800), length 74: 213.239.154.20 > 10.30.0.10: ICMP echo reply, id 1, seq 1127, length 40 1451471557.850062 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 74: 10.30.0.10 > 213.239.154.20: ICMP echo request, id 1, seq 1128, length 40 1451471557.851729 00:50:56:01:27:ca > 00:50:56:01:26:5e, ethertype IPv4 (0x0800), length 74: 213.239.154.20 > 10.30.0.10: ICMP echo reply, id 1, seq 1128, length 40 1451471559.059122 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 74: 10.30.0.10 > 213.239.154.20: ICMP echo request, id 1, seq 1129, length 40 1451471559.060913 00:50:56:01:27:ca > 00:50:56:01:26:5e, ethertype IPv4 (0x0800), length 74: 213.239.154.20 > 10.30.0.10: ICMP echo reply, id 1, seq 1129, length 40 1451471559.999093 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 74: 10.30.0.10 > 213.239.154.20: ICMP echo request, id 1, seq 1130, length 40 1451471560.000694 00:50:56:01:27:ca > 00:50:56:01:26:5e, ethertype IPv4 (0x0800), length 74: 213.239.154.20 > 10.30.0.10: ICMP echo reply, id 1, seq 1130, length 40

    But on return for TCP traffic the LAN interface on the first VM returns 'host unreachable' for the client device (and TCP traffic is never returned to the client device):

    1451471585.431692 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 66: 10.30.0.10.61580 > 213.239.154.20.80: Flags [s], seq 4232436194, win 8192, options [mss 1160,nop,wscale 8,nop,nop,sackOK], length 0 1451471585.433843 00:50:56:01:27:ca > 00:50:56:01:26:5e, ethertype IPv4 (0x0800), length 66: 213.239.154.20.80 > 10.30.0.10.61580: Flags [S.], seq 2346278513, ack 4232436195, win 28960, options [mss 1160,nop,wscale 0,nop,nop,sackOK], length 0 1451471585.433878 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 94: 10.20.0.48 > 213.239.154.20: ICMP host 10.30.0.10 unreachable, length 60 1451471588.467043 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 66: 10.30.0.10.61580 > 213.239.154.20.80: Flags [s], seq 4232436194, win 8192, options [mss 1160,nop,wscale 8,nop,nop,sackOK], length 0 1451471588.468891 00:50:56:01:27:ca > 00:50:56:01:26:5e, ethertype IPv4 (0x0800), length 66: 213.239.154.20.80 > 10.30.0.10.61580: Flags [S.], seq 2346278513, ack 4232436195, win 28960, options [mss 1160,nop,wscale 0,nop,nop,sackOK], length 0 1451471588.468918 00:50:56:01:26:5e > 00:50:56:01:27:ca, ethertype IPv4 (0x0800), length 94: 10.20.0.48 > 213.239.154.20: ICMP host 10.30.0.10 unreachable, length 60 I think this is because the LAN interface has no knowledge of the traffic that's being returned, so it blocks the Syn/Ack packets. See also firewall logs: [img]http://www2.trin-it.nl/download/tweakers_syn_ack.png[/img] How can I solve this? Thanks for any help.[/s][/s]
  • CP simoultaneus use with free radius

    5
    0 Votes
    5 Posts
    1k Views
    I

    @muswellhillbilly:

    I think you might have better luck if you ask in your own language on one of the foreign forum pages.

    Perdona por nuestro ingles  :-[.

    Necesitamos que puedan funcionar un numero especifico de dispositivos simultaneamente con el mismo usuario, pero que no sea necesario hacer "logout" para expulsar a uno de ellos y que pueda entrar el siguiente. Queremos que funcione como si estuviese la opción  "Disable concurrent logins" activa, la cual expulsa automáticamente el primer dispositivo autentificado, pero usando un mismo usuario en 2,3 o 4 dispositivos a la vez.

    Gracias!

  • Login via URL containing the voucher

    1
    0 Votes
    1 Posts
    599 Views
    No one has replied
  • Internet traffice still blocked after logon

    3
    0 Votes
    3 Posts
    769 Views
    M

    Short answer: Post your firewall rules and maybe someone can help.

  • Cannot upload image file on File Manager

    7
    0 Votes
    7 Posts
    2k Views
    P

    hahaha, i updated 2.2.6 and OK. tks for help

  • How to get Countdown timer for Timeout on Logout window of CP

    2
    0 Votes
    2 Posts
    950 Views
    GertjanG

    Hi,

    First things first : The visitor, the client, can - and they often do - block popup windows.

    If this wasn't the case:
    The default setup contains the possibility to have a popup opened when the visitor / clients logins in. See here : https://github.com/pfsense/pfsense/blob/RELENG_2_2/etc/inc/captiveportal.inc#L286
    What need to be done : adding Javascript code that shows a count down code (you'll find many examples on the net). When this popup windows is created, it should be 'started' a variable (which exists) that contains the initial value : the "hard time out".

    But, as said above : most clients / visitors will never see this windows, because they do as you and I : blocking popups.

    An idea might be : redirected people to a web page (on pfsense) after login.
    This page contains the counter. On the page, advise people to keep the window open …

    Or : advise them to set an alarm on their watch when they logged in .... ;) (easy, no coding needed).

  • Pipe no leaking

    4
    0 Votes
    4 Posts
    1k Views
    GertjanG

    For info : the new version (2.2.6) has a new httpd version which includes bug fixes.

  • Some client no need authentication to access through the captive portal

    7
    0 Votes
    7 Posts
    2k Views
    F

    You probably hit this bug

    https://redmine.pfsense.org/issues/5622

    You can search your log files for the respective message:

    logportalauth[63045]: Zone: main_zone - Successfully reinitialized
    tables for main_zone – database has been reset. logportalauth[63045]: Zone: main_zone - Error during table main_zone
    creation. Error message: database is locked. Resetting and trying again.

    With some luck its resolved in 2.2.6, the workaround is pretty simple.

  • 0 Votes
    7 Posts
    8k Views
    DerelictD

    Yes. Good access to global DNS prior to punching through the portal is a requirement for CP to function.

    Well, DNS queries have to return some IP address for the client to try to connect to.

  • 0 Votes
    6 Posts
    2k Views
    Y

    I could solve the problem by adjusting the MTU on the wanted Interface to be around 1400 Bytes . thanks for your trying to help

Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.