Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
15.1 Legacy Series
»
Remember MAC Addresses after Restart
« previous
next »
Print
Pages: [
1
]
Author
Topic: Remember MAC Addresses after Restart (Read 34193 times)
niko
Newbie
Posts: 4
Karma: 0
Remember MAC Addresses after Restart
«
on:
February 19, 2015, 01:56:55 pm »
Hi,
we are still using m0n0wall but are suffering from one issue:
After a restart of the m0nowall it will forget the assignments between a voucher and the mac-address. So after a restart all vouchers will stop working.
Does anyone know whether OPNsense suffers from the same flaw?
Also I wonder whether there is a full documentation from OPNsense available. I just found a very basic installation and initial config page (
https://wiki.opnsense.org/index.php/Manual:Installation_and_Initial_Configuration
).
Cheers
niko
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Remember MAC Addresses after Restart
«
Reply #1 on:
February 22, 2015, 10:00:03 am »
Hi there,
documentation is one of our weak spots and must be improved. The wiki is one way to start collaboration on this (wiki write rights are given out on request). We have more in the pipe, but need to put in a lot more effort before we can share this info.
I have done persistent DHCP for reboot and reinstalls (typically system upgrades) for a client before. That's something I can push. Not sure if that is enough to retain voucher info, but we can certainly work something out there as well if not.
https://github.com/opnsense/core/issues/56
-- one step at a time! keep those reports coming please.
Cheers,
Franco
Logged
niko
Newbie
Posts: 4
Karma: 0
Re: Remember MAC Addresses after Restart
«
Reply #2 on:
February 24, 2015, 01:39:01 am »
Thanks for the answer
I don't think it has to do with DHCP itself, more with remembering which voucher is still valid and belongs to which MAC. I assume this is one step after DHCP, but I may be wrong
Please let me know if you need further information.
Logged
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Remember MAC Addresses after Restart
«
Reply #3 on:
February 24, 2015, 08:32:20 am »
Hi,
in Monowall the active vouchers where stored in the file /var/db/captiveportal.db.
jakob
Logged
niko
Newbie
Posts: 4
Karma: 0
Re: Remember MAC Addresses after Restart
«
Reply #4 on:
February 24, 2015, 12:37:06 pm »
jstrebel, do you know whether this file was wiped upon restart?
Logged
jstrebel
Full Member
Posts: 188
Karma: 23
Re: Remember MAC Addresses after Restart
«
Reply #5 on:
February 24, 2015, 01:51:42 pm »
Niko,
The File in monowall is whipped upon restart. A scheduled save and a restore to the volatile Storage would be desirable.
Jakob
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Remember MAC Addresses after Restart
«
Reply #6 on:
February 26, 2015, 08:12:31 am »
At first glance the file captiveportal.db does not exist in our codebase, but I am hoping it will be easy to port this over from m0n0wall. No rush here, but this is definitely something we want to bring in.
Logged
franco
Administrator
Hero Member
Posts: 17656
Karma: 1610
Re: Remember MAC Addresses after Restart
«
Reply #7 on:
March 05, 2015, 05:34:22 pm »
From 15.1.7.1 on the DHCP leases will be persistent across reboots (if the machine was shut down properly). It is then also possible to use the Installer's Config Importer to inherit the leases of the machine to be reinstalled. Thanks for your input on this.
Let me know if that helps the voucher issue or if we have to do more!
Logged
niko
Newbie
Posts: 4
Karma: 0
Re: Remember MAC Addresses after Restart
«
Reply #8 on:
May 05, 2015, 12:18:05 am »
I haven't tried it, but having a look at the original m0n0wall files it seems like we need to import all of these files:
captiveportal.db
captiveportal_mac.db
cpelements
dhcpd.leases
dhcpd.leases~
routes.db
voucher_active_2.db
voucher_active_3.db
voucher_active_4.db
voucher_active_5.db
voucher_active_6.db
voucher_used_2.db
voucher_used_3.db
voucher_used_4.db
voucher_used_5.db
voucher_used_6.db
Is that correct, jstrebel?
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
15.1 Legacy Series
»
Remember MAC Addresses after Restart