Commit Graph

47 Commits

Author SHA1 Message Date
Adolf Belka
31016a38e6 dhcp.cgi: Add domain-list type info in dhcp options - bug#12819
Fixes: bug#12819
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-04-04 20:09:41 +00:00
Peter Müller
66c3619872 Early spring clean: Remove trailing whitespaces, and correct licence headers
Bumping across one of our scripts with very long trailing whitespaces, I
thought it might be a good idea to clean these up. Doing so, some
missing or inconsistent licence headers were fixed.

There is no need in shipping all these files en bloc, as their
functionality won't change.

Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
2022-02-18 23:54:57 +00:00
Stefan Schantl
5410fcbc45 dhcp.cgi: Fix typo and displaying advanced options syntax.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-17 20:11:37 +00:00
Stefan Schantl
2bbf176619 dhcp.cgi: Use perl built-in grep
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
2021-06-10 14:30:54 +01:00
Michael Tremer
dfdf076d71 dhcp.cgi: Use new system methods
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-10 14:30:52 +01:00
Adolf Belka
6fcd779c05 dhcp.cgi: Bug 10400 - Add Additional DHCP Options - change default
- Make the default that Additional DHCP options Enabled checkbox is
   checked when entering a new option.
- For existing options the Enabled checkbox status is honoured.

Fixes: #10400
Tested-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-05-20 09:45:20 +00:00
Jonatan Schlag
8186b37230 Hardcode theme to ipfire
This disables the theme support and makes it impossible to use any other
themes than the ipfire default theme.

The only intention of this patch is to hardcode the theme to ipfire.
To change any cgi we have is an ugly way, but the only way to do this
fast. The colour handling needs certainly to be improved as well, but
this will and should be done in other patches.

Signed-off-by: Jonatan Schlag <jonatan.schlag@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-04-08 10:11:34 +00:00
Adolf Belka
896fa74d68 dhcp.cgi: Fix incorrect { placement from patch 3724
- When patch 3724 was created for bug #10743 a curly bracket was placed in the wrong place
This results in the overlap of two if loops meaning that there will be no validity
check carried out on Default Lease Time if Deny Known Clients is not checked.
- This patch moves the { bracket to the right location.

Signed-off-by: Adolf Belka <adolf.belka@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-02-16 15:02:33 +00:00
Adolf Belka
9dbf3c4936 Fix for bug 10743
This adds in the option to have "deny known clients" in dhcpd.conf
This is applied to the range command so applies to the dynamic addresses
given.
If you have just a range statement say in blue then if you are not using
vlans you could have the situation where a known host in green might end
up getting a lease from the blue range. Here a deny known-clients makes
sense. Your range in this case would be limited to only unknown clients if
deny known-clients was selected.
dhcp WUI has been modified to add in this command. Error message has been
added to check that a range has been specified if the deny unknown clients
checkbox has been selected.
Language files updated with additional items (English, German & Dutch).

For more information on the history of this please see the bugzilla entry
Signed-off-by: Adolf Belka <ahb.ipfire@gmail.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2020-12-21 16:48:01 +00:00
Peter Müller
2dfbb338e1 dhcp.cgi: avoid unnecessary line break
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-21 16:11:25 +00:00
Arne Fitzenreiter
2de0f49f8f dhcp.cgi: fix typo
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-18 17:59:49 +02:00
Arne Fitzenreiter
5653e55107 perl-scripts: suppress smartmatch experimental warning
smartmatch was introduced with perl 5.10 and was marked
as experimental in 5.14

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-16 12:21:26 +02:00
Bernhard Bitsch
e4f9ea3c16 dhcp.cgi: Save fixed leases immediately after addition of a new lease
This changes the behaviour of the script to immediately save the added
lease to file but still remain in edit mode to make changes.

If the user does not make any changes, the lease is immediately saved
and there is no second click required to write it to file.

This a more natural flow that is expected by almost all users of this
feature.

Fixes: #12050
Signed-off-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-06-05 00:30:19 +01:00
Michael Tremer
31672dc8bd DHCP: Fix error when editing a newly added fixed lease
They key was remembered but then the array was sorted which resulted
the key showing a wrong line.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-02-26 16:33:46 +00:00
Michael Tremer
4eb23a9198 DHCP: Restart server in background
This allows for the CGI to return quicker.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-02-26 10:18:33 +00:00
Michael Tremer
820ab96c69 DHCP: Escape slashes in filename
Fixes: #12006
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-02-26 10:16:21 +00:00
Michael Tremer
a057a97655 dhcp rfc2136: dhcpd does not seem to support SHA-1
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-10-21 17:34:41 +01:00
Michael Tremer
364452506f Merge remote-tracking branch 'ms/dhcp-rfc2136-broken-down' into next 2015-10-21 13:50:31 +01:00
Lars Schuhmacher
e3edceeb7a Mark required input fields with a star
Mark required input fields with a star as nowadays this is
the de-facto default. Before, it was the other way around and
optional fields were marked.

Signed-off-by: Lars Schumacher <larsen007@web.de>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-09-21 16:40:41 +01:00
Michael Tremer
e353470a8c dhcp.cgi: Count up key when skippingh search entries
This caused a bug that when the user wanted to edit one
of the static leases and clicked on the edit icon that
an other entry opened up for editing.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-06-17 14:02:05 +02:00
Michael Tremer
a1468f66f0 dhcp.cgi: Never save the search query
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2015-06-17 14:01:40 +02:00
Michael Tremer
91fc30309f dhcp: Enter edit mode after adding a static lease from list
After a lease has been added from the list of leases it is often
desirable to edit it right away. It appeared that the system
was in edit mode after the lease has been added because the form
had the values of the recently added lease, but hitting the
"Add" button cause an error message that stated that this is
a duplicate entry.

This patch will switch to edit more where the user can change
the values and hit "Update". If he or she chooses to ignore
that the entry is still saved.
2015-06-01 15:56:46 +02:00
Michael Tremer
1554e8a3d3 DHCP: Add search box for static leases 2015-05-28 14:49:41 +02:00
Michael Tremer
5fd7e84c49 dhcp-ddns: Set TTL to 1 minute 2015-03-31 01:23:35 +02:00
Michael Tremer
28fee67640 dnsmasq: Disable parsing leases when DNS Update is enabled 2015-03-16 01:11:29 +01:00
Stefan Schantl
b510e12ac1 DHCP: Allow DNS Update configuration in the web user interface 2015-03-16 00:54:20 +01:00
Michael Tremer
f5fb9a0466 DHCP: Allow using external name servers for leases
These changes allow a user to use RFC2136 in order to
update their (public) DNS zone with the dynamic or
static leases.

A TSIG key may optionally be used to authenticate
the updates.
2015-03-15 13:34:02 +01:00
Alexander Marx
e084eea001 LAyout changes dhcp.cgi 2014-01-09 14:51:19 +01:00
Alexander Marx
52ca3c8093 fifteen-theme: made tables in dhcp-server themeable 2014-01-07 10:22:22 +01:00
Michael Tremer
55b2f2eb09 dhcp: Oops, this version of dhcpd is very strict. 2010-07-21 19:01:44 +02:00
Michael Tremer
3bd3aa727f dhcp: Create local configuration file. 2010-07-21 17:50:04 +02:00
Arne Fitzenreiter
95a392d5f5 Removed dhcp iprange blop (this field can be empty) 2008-09-21 00:29:05 +02:00
ms
70df830214 Ein Paar Dateien fuer die GPLv3 angepasst.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@853 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-29 13:25:32 +00:00
maniacikarus
70db86838b ARP Tabelle aus der DHCP CGI entfernt
Pakfire CGI nochmal korrigiert
SSH Zugriff mit Timer gebaut


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@780 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-18 19:10:10 +00:00
maniacikarus
cb5e9c6c64 Debuginformationen aus den CGIs entfernt
Hoffentlich die letzten Config Types bereinigt
Samba und SSHd init Skripte angepasst
Pakfire CGI optisch angepasst


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@779 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-08-17 16:00:01 +00:00
maniacikarus
32ab16debd DHCP Webseite angepasst damit beim speichern auch die rc links gesetzt werden
MPFire um Quick Playlist Funktionen erweitert


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@656 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-07-01 11:50:48 +00:00
maniacikarus
fe6cda9204 Einige CGI Fixes
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@643 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-21 18:14:48 +00:00
maniacikarus
541d93f0ec CGI fuer DHCP gefixt und if Skripte zurueckgesetzt
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@622 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-06-10 12:17:52 +00:00
ms
26f58f3d03 Wieso sind denn Amavisd-new und Spamassassin in der ISO gelandet?
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@542 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-07 19:51:13 +00:00
ms
6bdd769d60 Clamav-Update
Hardwareinformationen fuer Kudzu hinzugefuegt.
dhcpctrl-Datei erstellt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@540 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-05-07 17:20:46 +00:00
maniacikarus
9c1009572a kleine fixes in den firewalllogs
neues feature in der dhcp.cgi


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@469 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-03-28 17:33:12 +00:00
ms
9833e7d8fb Touch is an nem anderen Ort...
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@406 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-02-04 21:18:14 +00:00
ms
d1883e28de Bash bearbeitet, da der Bootpromt nicht richtig arbeitete.
Kleiner Fix damit man ohne prefetching bauen kann.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@400 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2007-01-27 11:39:29 +00:00
ms
986e08d996 Hinzugefügt:
* Morningreconnect Script
Geändert:
  * Neue Spamassassin Version. 3.1.3
  * Interface umfangreich bearbeitet in Layout und angezeigten Texten.
  * DHCP-Leases-Error gefixt
  * lq-Graph pingt nun nach www.heise.de
  * IP-Anzeige für PPPoE/DSL gefixt.
  * Connectionstate vom IPCop übernommen.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@164 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-06-06 19:12:22 +00:00
ms
39a7cc119a Hinzugefügt:
* Kleiner Tux im Webinterface für den eXciter und den Benne :)
Geändert:
  * time.cgi überarbeitet und Funktion verbessert.
  * index.cgi - noch ein Paar Fehler behoben oder was hinzugefügt.
  * FLASH-Eintrag aus der crontab gelöscht.
  * Online-Hilfe-Rettungsringe (die hässlichen) aus den CGIs entfernt.
  * Logger von ipcop nach ipfire umgestellt.
Gelöscht:
  * Nicht benötigte Reste vom IPCop entfernt.


git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@160 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-06-05 11:30:07 +00:00
ms
ac1cfefab2 SMP-Config angepasst.. CGIs usw. wurden im Windoof-Format gespeichert... muss noch alles korrigiert werden...
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@67 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
2006-02-21 20:38:06 +00:00
ipfire
cd1a292722 git-svn-id: http://svn.ipfire.org/svn/ipfire/IPFire/source@16 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8 2006-02-15 21:15:54 +00:00