*New 12.1 series Release:
2020-07-21: XigmaNAS 12.1.0.4.7683 - released

*New 11.4 series Release:
2020-07-20: XigmaNAS 11.4.0.4.7682 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

EXTENSION dhcp-server

XigmaNAS Extensions / Add-ons

Moderator: crest

Forum rules
Set-Up GuideFAQsForum Rules
bgold
Starter
Starter
Posts: 41
Joined: 23 May 2015 08:42
Status: Offline

Re: EXTENSION dhcp-server

#61

Post by bgold »

Upgraded to ver 0.3 and now I cant get it to start up.

Rebooted several times.

Feb 7 20:19:46 root: Failed to restart service dnsmasq
Feb 7 20:19:46 root: /etc/rc.d/dnsmasq: WARNING: failed to start dnsmasq

Any ideas?

v10.2.0.2 2235

Thanks

UPDATE:

Did a pkg upgrade and after a reboot to get plex server running again dnsmasq started. Not sure if a pkg needed to be updated or not.

Thanks
XigmaNAS 12.0.0.4.6625
HP ML150 Gen9, Dual 2.4ghz, 256gb, 25TB Storage, 3-ZFS pools w/SSD cache&logs, SSD boot/data, SFP+

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#62

Post by alexey123 »

Thank you for report. I foggot 2 links.
Repaired now, you can ypdate extension from webgui
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#63

Post by alexey123 »

For give to work dnsmasq at revision 2332 please manually add red marked lines to sbin/start_dnsmasq.php
if (!is_link( "/usr/local/www/ext/dnsmasq" )) symlink ( $config['dnsmasq']['rootfolder']."dnsmasq","/usr/local/www/ext/dnsmasq"); else {}
+//Add needed symlinlks
+if (!is_file( "/usr/local/lib/libnettle.so.4") ) symlink ( "/usr/local/lib/libnettle.so.6","/usr/local/lib/libnettle.so.4");else {}
+if (!is_file( "/usr/local/lib/libhogweed.so.2") ) symlink ( "/usr/local/lib/libhogweed.so.4","/usr/local/lib/libhogweed.so.2");else {}


// create links to webroot
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#64

Post by raulfg3 »

ernie wrote:Hello,

in dnsmask extension, there is a section 'buitl in tftp'. Is it the same than tftp service of nas4free ? An additional tftp ?

I need to use tftp but I don't know if I had to use the service of dnsmask or of nas4free.
I have the same question that ernie.

Is the same service?.

I consider better to use builtin tftp server on N4F and not a new in dnsmasq.

Perhaps you can use the enable checkbox on dnsmask to enable tftp service on n4f and configure in his own webGUI (why duplicate services?)
2.jpg

+1 to add your implementation as a basic/default service on N4F ( Install from OBI is really easy but DNSMasq is a basic service for user like me ( and alexey) that have a router that have a bad DHCP implementation ).
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#65

Post by raulfg3 »

only for curiosity & to improve your implementation, this screen capture is the implementation of DNSMASQ that OMV do :
1.jpg
Please notice NTP & WINS server implementation.
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#66

Post by raulfg3 »

Hello, Alexey, how can I add this lines to dnsmasq.conf?:

Code: Select all

dhcp-option=66,"192.168.1.101"
dhcp-boot=pxelinux.0,,192.168.1.101

and why this lines are included and are not configurable:

Code: Select all

# NTP Server
dhcp-option=42,0.0.0.0
# Broadcast Address
dhcp-option=28,192.168.1.255

Perhaps an extra parameter to add to dnsmasq.conf like other services like SMB does is the best approach?.
1.jpg
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#67

Post by raulfg3 »

Some news?
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

karlandtanya
Starter
Starter
Posts: 51
Joined: 23 Jan 2014 15:31
Location: nelson twp, OH, USA
Status: Offline

Re: EXTENSION dhcp-server

#68

Post by karlandtanya »

First thank you very much for an awesome extension. My wife can watch kodi on her phone ;)

Version is 11.0.0.4 - Sayyadina (revision 3460), and using OneButtonInstaller 0.3.4

dnsmasq installs OK and runs but after reboot the extension isn't in the GUI and dnsmasq isn't in pgrep.
after manually adding to the postinit, it's OK:
Name....... start dnsmasq
Command....... /mnt/data/opt/extensions/dnsmasq/sbin/start_dnsmasq.php
Type....... PostInit

also, the button icons are missing and the page "jitters" every few seconds (reload?)
but that doesn't affect function; just cosmetic.
Image

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#69

Post by raulfg3 »

karlandtanya wrote:
27 Jan 2017 00:40
Version is 11.0.0.4 - Sayyadina (revision 3460), and using OneButtonInstaller 0.3.4

dnsmasq installs OK and runs but after reboot the extension isn't in the GUI and dnsmasq isn't in pgrep.
after manually adding to the postinit, it's OK:
Name....... start dnsmasq
Command....... /mnt/data/opt/extensions/dnsmasq/sbin/start_dnsmasq.php
Type....... PostInit
Yes I note the same when reinstall on 11 series, I'm waiting a new version to solve this problems from Alexey.

PD: I add to postInit: /usr/local/bin/php-cgi -f /mnt/DATA/extensions/dnsmasq/sbin/start_dnsmasq.php
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#70

Post by raulfg3 »

add screen capture for future use
1.jpg

Works fine on 11.0.0.4.3882 the only problem is the autostart previosly comented.

still waiting for a new rev. that solve this.
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#71

Post by raulfg3 »

some screen captures, still fail autostart, but users can add postinit command by hand:
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#72

Post by raulfg3 »

Hello Alexey. Extension need revision to work (install) on latest N4F due PHP 7.1 introduced, any plan for updates?

Always fail start at line 19 I delete line, and now start.

What is needed dhcp-option=28 ? <- Line 19
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#73

Post by raulfg3 »

ok, finally, do not work on latest 4040, at this revision is not posible to install, and not posible to work on upgrades.
dnsmasq error.jpg
I meet this extension really usefull, so please Alexey , if you have some time I thanks you to work on it.
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

snow
NewUser
NewUser
Posts: 2
Joined: 18 Jan 2013 13:46
Status: Offline

Re: EXTENSION dhcp-server

#74

Post by snow »

I have made some changes to the file extensions/dnsmasq/dnsmasq/extensions_dnsmasq_check.php and hosts list is working fine again on 11.0.0.4.4040
You do not have the required permissions to view the files attached to this post.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#75

Post by raulfg3 »

snow wrote:
16 Mar 2017 07:57
I have made some changes to the file extensions/dnsmasq/dnsmasq/extensions_dnsmasq_check.php and hosts list is working fine again on 11.0.0.4.4040
Thanks a lot , i'll try to test ASAP, and post some screen captures.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#76

Post by raulfg3 »

Ok, confirmed, work again.

Thanks a lot snow.

PD: I do not test to install from scratch, only restore file in a previosly installed pluging and work again.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#77

Post by raulfg3 »

snow wrote:
16 Mar 2017 07:57
I have made some changes to the file extensions/dnsmasq/dnsmasq/extensions_dnsmasq_check.php and hosts list is working fine again on 11.0.0.4.4040

one note:

I need to delete line dhcp-option=28
in /etc/rc.d/dnsmasq to start the service, I do not understand why , but create a failed dnsmasq.conf with error in line 19 (see duplicate 192.168.1.255:

Code: Select all

# Defaults
log-facility=/var/log/dnsmasq.log
dhcp-leasefile=/var/db/dnsmasq.leases
user=nobody
group=nobody
domain-needed
bogus-priv
domain=local
expand-hosts
local=/local/
dhcp-option=23,50
dhcp-authoritative
# Build from main config
listen-address=192.168.1.101
interface=bge0
dhcp-option=option:router,192.168.1.1
dhcp-option=42,0.0.0.0
dhcp-option=28,192.168.1.255
192.168.1.255
# Setting over NAS4Free webGUI
dhcp-range=192.168.1.50,192.168.1.199,10m
dhcp-lease-max=150
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

snow
NewUser
NewUser
Posts: 2
Joined: 18 Jan 2013 13:46
Status: Offline

Re: EXTENSION dhcp-server

#78

Post by snow »

My dnsmasq file is the same as yours
in the line

Code: Select all

dhcp-option=28,${_broadcast}
${_broadcast} is generated by command

Code: Select all

/sbin/ifconfig ${_interface} | grep broadcast | awk '{print \$6}


Do you have more than one network interface with defined broadcast address?

You could try to change line 91 in dnsmasq.d to

Code: Select all

	_broadcast=`/sbin/ifconfig ${_interface} |  grep broadcast | awk 'NR==1{print \$6}'`
this should get broadcast address only from the first network interface

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#79

Post by raulfg3 »

snow wrote:
20 Mar 2017 09:31
Do you have more than one network interface with defined broadcast address?

You could try to change line 91 in dnsmasq.d to

Code: Select all

	_broadcast=`/sbin/ifconfig ${_interface} |  grep broadcast | awk 'NR==1{print \$6}'`
this should get broadcast address only from the first network interface
YES, I have 2.

I'll try your patch .
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#80

Post by alexey123 »

I upload new version https://github.com/alexey1234/nas4free-dnsmasq for FreeBSD 11 based Nas4Free

I planned add multiple networks setting for dnsmasq over webgui - temporary without success. This option will work by external config
I planned add IPv6 support also. But.. I just not have freetime

Changes:
1. tftp server may be defined as main NAS4Free server, dnsmasq built-in server and work withowt tftp
2. Webgui cosmetic change - pseudostatic hosts page is pop-up page now
Image
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#81

Post by raulfg3 »

good news.

it's posible to test using OBI or embeded update Extensions > DNSMASQ > config?

What is the best aproach to test?

do you consider my suggesto of use one aditional tab to define leases and use main tab for default conf like dhcp range, DNS & Wins Provider, etc...

I manage 35 leases so all in one tab is a bit large
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#82

Post by alexey123 »

raulfg3 wrote:
23 Mar 2017 22:27
good news.

it's posible to test using OBI or embeded update Extensions > DNSMASQ > config?
I'll check... General: I need rewrite procedure update extension, because it use binary dnsmasq from Main FreeBSD packages.
I think need update only extension and add to update page option for update binary only.
I plan make it today.
What is the best aproach to test?
I test extension on any test machine, not on main NAS. When all work few days, I install extention on main NAS.

NOT USE UPDATE from 10 based version - clean install only!!!!!!
do you consider my suggesto of use one aditional tab to define leases and use main tab for default conf like dhcp range, DNS & Wins Provider, etc...

I manage 35 leases so all in one tab is a bit large
You don't want table with pseudostatic leases on main page and you want have different page?? :( OK, may be you right...

as result
TODO
1. rewrite procedure update
2. Add lease page :!: Done
3 add way use one IP for 2 MAC - usefull for laptop users :!: Done
4. Add IPv6 support
5. Add multiple network support
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#83

Post by alexey123 »

I upload new building
Changes:
Now use separate page for pseudostatic host
Lease time for dhcp host defined at first page, for pseudostatic host defined as infinity automatically
Add possible use multiple mac for one pseudostatic post - usefull for laptops
pseudostatic host also register at /etc/hosts automatically
repair some errors
First page
Image
Pseudostatic hosts page
Image
Add pseudostatic host popup
Image

when dnsmasq not running by any fault Titles have white color
Image
When dnsmasq run titles have green color
Image
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#84

Post by raulfg3 »

ok, i'll test on a test machine.

clean install from OBI works, but version still remains on 0.3, I imagine that version must be incremented to 0.4 correct?.
1.jpg
2.jpg

I'l continue test on next days. but How to upload previosly config leases (eg: my 35 leases)
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#85

Post by alexey123 »

raulfg3 wrote:
26 Mar 2017 22:23
ok, i'll test on a test machine.

clean install from OBI works, but version still remains on 0.3, I imagine that version must be incremented to 0.4 correct?.
I think define version 0.4 when I add multiple network support.
I'l continue test on next days. but How to upload previosly config leases (eg: my 35 leases)
You have 2 NASes, fore example OLD and NEW. OLD - is your working NAS, NEW - your tested NAS
On OLD NAS:
Navigate webgui Tools > Execute Command and execute php command ( bottom )

Code: Select all

file_put_contents("/root/dnsmasq.backup", serialize($config['dnsmasq']['hosts']));
You have backup your hosts entries at file /root/dnsmasq.backup
Upload this file to NEW NAS, into any folder , in my script this folder /root
ON NEW NAS/b]
Create file with name restore.php

Code: Select all

#!/usr/local/bin/php-cgi -f
<?php
//
$backup_location = "/root/dnsmasq.backup";
//
include_once "guiconfig.inc";
if ( FALSE === is_array($config['dnsmasq']['hosts']) ) $config['dnsmasq']['hosts'] = array();
$result = array_merge( $config['dnsmasq']['hosts'], unserialize( file_get_contents($backup_location) ));
unset($config['dnsmasq']['hosts']);
$config['dnsmasq']['hosts'] = $result;
write_config();
echo "Done!"
?>
Make it executable and run it

Code: Select all

./restore.php
You must have uploaded entries

But you must adjust old entries to new (11-based config).
Navigate to dnsmasq| host tab and edit hosts step by step - only push on Edit picture and Push Save on Popup page
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
crest
Hardware & Software Guru
Hardware & Software Guru
Posts: 552
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: EXTENSION dhcp-server

#86

Post by crest »

Hello Alexey,

There are still issues, I checked on a fresh r4124 installation.

1. Installation is ok, but there is still no entry in command scripts postinit created, therefore after restart there is no menu entry for DNSMasq.

2. After the installation, the first call of the DNSMasq menu creates an error message:

Code: Select all

Warning: include_once(dnsmasq/function.inc): failed to open stream: No such file or directory in /mnt/PART4/extensions/dnsmasq/dnsmasq/extensions_dnsmasq_server.php on line 8 Warning: include_once(): Failed opening 'dnsmasq/function.inc' for inclusion (include_path='.:/etc/inc:/usr/local/www') in /mnt/PART4/extensions/dnsmasq/dnsmasq/extensions_dnsmasq_server.php on line 8 Warning: Cannot modify header information - headers already sent by (output started at /mnt/PART4/extensions/dnsmasq/dnsmasq/extensions_dnsmasq_server.php:8) in /mnt/PART4/extensions/dnsmasq/dnsmasq/extensions_dnsmasq_server.php on line 9 Warning: Cannot modify header information - headers already sent by (output started at /mnt/PART4/extensions/dnsmasq/dnsmasq/extensions_dnsmasq_server.php:8) in /usr/local/www/fbegin.inc on line 34 

3. After installation a click on the DNSMasq menu entry should first lead to Extensions > DNSMASQ > config to finish the installation as it was in previous versions.

4. On Extensions > DHCP static clients the footer position is wrong.

5. If one defines new hosts there appears also an error message:

Code: Select all

Array ( [apply] => Änderung übernehmen [authtoken] => $2y$10$7h6PphEA2SDTAL.0sTCHNeOQ/F0mBi4l1sBzeU/IQpfY6p7MmYRbO ) Warning: Cannot modify header information - headers already sent by (output started at /mnt/PART4/extensions/dnsmasq/dnsmasq/extensions_dnsmasq_hosts_static.php:12) in /usr/local/www/fbegin.inc on line 34 

Best regards
crest
NAS1: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI 760GM-P23; AMD Athlon(tm) II X2 250 7.58GiB RAM
NAS2: 11.2.0.4 - Omnius (Revision 6766) x64-embedded; MSI MS-7369; AMD Sempron(tm) LE-1250 8022MiB RAM
UPS: APC Back-UPS ES 550G
Extensions: OneButtonInstaller, Extended GUI, NextOwnCloud, BitTorrent Sync, Syncthing, Downloady, Midnight Commander, NCDU, MySQL, Rclone, Themes:

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#87

Post by raulfg3 »

some info from old post.

1 - Failed autostart: viewtopic.php?p=75658#p75658
2 - Double dhcp-option=28 = in my case because I have 2 NIC = viewtopic.php?p=76510#p76510
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#88

Post by alexey123 »

I repair some errors and upload codes on github
Changes
1. Add broadcast field at main menu instead automatic
2. Repair some html faults and remove pitstops
3. Add possible Download|upload hosts config
Image
*If host config from old version made by command

Code: Select all

file_put_contents("/root/dnsmasq.backup", serialize($config['dnsmasq']['hosts']));
backup file is OK

MANY THANKS FOR RAUL AND CREST!
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#89

Post by raulfg3 »

Thanks a lot, I update from webGUI ( I use update button on dnsmasq extension):

Code: Select all

$ sh /tmp/dnsmasq_install.sh &
Retrieving the most recent version of dnsmasq
Unpacking the tarball...
Fetch package from FreeBSD...
Updating FreeBSD repository catalogue...
meta.txz                                 : . done
packagesite.txz                          : .......... done
Processing entries: .......... done
FreeBSD repository update completed. 25859 packages processed.
All repositories are up to date.
The following packages will be fetched:

New packages to be FETCHED:
	dnsmasq-2.76,1 (320 KiB: 100.00% of the 320 KiB to download)

Number of packages to be fetched: 1

320 KiB to be downloaded.
dnsmasq-2.76,1.txz                       : .......... done
Congratulations! dnsmasq was updated/installed . Navigate to config web page and push Save 
and still remain same ver 0.3 and no change ( not reflect same changes that youi show in your screnn captures).

my next step is to remove (use remove button) an then do a new fresh install from OBI, be tuned....
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

User avatar
raulfg3
Site Admin
Site Admin
Posts: 5144
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#90

Post by raulfg3 »

Ok, install new ver 0.4 from OBI, works fine, I can upload my previosly saved leases, but automatic posinit command is not added to webGUI, so dnsmasq do not load on reboot.

I can add by hand correct command because I have write in paper what need to execute.


of course OBI says that dmsmasq is installed but do not appear in extensión tab because it.
You do not have the required permissions to view the files attached to this post.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

HP T510

Post Reply

Return to “Extensions / Add-ons”