*New 11.4 series Release:
2020-07-03: XigmaNAS 11.4.0.4.7633 - released!

*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - 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
User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#31

Post by alexey123 »

You can add any additional setting to dnsmasq very simple

Check Allow external config on first page and add any file to /path/to/extension/conf folder

For example - I use additional config for ipxe, named as ipxe.conf

Code: Select all

# dnsmasq configuration for iPXE
# by stefanl@nersc.gov, 2012-12-01

# Borrowed from http://www.heath-bar.com/projects/blog/?p=326
# and http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example

# Important note: The syntax in this file requires dnsmasq 2.53 or above.
# RHEL6 ships with dnsmasq 2.48, which uses older syntax.

### Special DHCP options for iPXE

### Borrowed from http://www.thekelleys.org.uk/dnsmasq/docs/dnsmasq.conf.example
# Boot for iPXE. The idea is to send two different
# filenames, the first loads iPXE, and the second tells iPXE what to
# load. The dhcp-match sets the ipxe tag for requests from iPXE.
# Important Note: the 'set:' and 'tag:!ipxe' syntax requires dnsmasq 2.53 or above.
dhcp-match=set:ipxe,175 # iPXE sends a 175 option.
# load undionly.kpxe for clients not tagged with 'ipxe'.
dhcp-boot=tag:!ipxe,undionly.kpxe
# undionly.kpxe issues a second DHCP request and we then serve bootstrap.ipxe over http 
# using Robin Smidsrød's bootstrap method provided at https://gist.github.com/2234639 
#dhcp-boot=http://10.37.129.3/bootstrap.ipxe
# Or, simply load your own menu
dhcp-boot=tag:ipxe,menu.ipxe
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

bgold
Starter
Starter
Posts: 41
Joined: 23 May 2015 08:42
Status: Offline

Re: EXTENSION dhcp-server

#32

Post by bgold »

I have not installed it yet. It will allow per host to run an external config? I have a few reservations that I need that have a different DNS than what is handed out by the dhcp server.

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

#33

Post by alexey123 »

I'll check your request today
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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#34

Post by ernie »

Hello
I installed the extension on Nayla 9.3.1391
The installation was fine but it is impossible to activate the extension. When I cross the checkbox 'activate' , after the save, the checkbox is uncrossed.

I think that I will be move to nas4free 10.2.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

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

Re: EXTENSION dhcp-server

#35

Post by alexey123 »

I repair code and check on 9.3 based version (virtualbox )
As for me it work
NOTE
Pls check your config, section interfaces
<interfaces>
<lan>
<enable/>
<if>auto</if>
<ipaddr>10.0.0.160</ipaddr>
<subnet>24</subnet>
<ipv6addr>auto</ipv6addr>
<ipv6subnet>64</ipv6subnet>
<media>autoselect</media>
<mediaopt>half-duplex</mediaopt>
<gateway>10.0.0.138</gateway>
<mtu/>
<extraoptions/>
</lan>
</interfaces>
I mark red color wrong value. For repair it go to Network|Interface Management tab and push Save button
You do not have the required permissions to view the files attached to this post.
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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#36

Post by ernie »

I launched again the installation in order to overwrite on the last installation.

I have the same issue and if I follow your command I obtained:

Code: Select all

nas4free1: sbin # ./start_dnsmasq.php
nas4free1: sbin # /etc/rc.d/dnsmasq
Usage: /etc/rc.d/dnsmasq [fast|force|one|quiet](start|stop|restart|rcvar|mkconf|reload|logstats|status|poll)
nas4free1: sbin # /etc/rc.d/dnsmasq status
Cannot 'status' dnsmasq. Set dnsmasq_enable to YES in /etc/rc.conf or use 'onestatus' instead of 'status'.
nas4free1: sbin # /etc/rc.d/dnsmasq onestatus
dnsmasq is not running.
nas4free1: sbin # uname -a
FreeBSD nas4free1.local 9.3-RELEASE-p13 FreeBSD 9.3-RELEASE-p13 #0 r281443M: Sun Apr 12 01:17:01 CEST 2015     root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64  amd64
nas4free1: sbin # /
I am thinking to move on 10.x

In config, I have igb0 instead of auto
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

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

Re: EXTENSION dhcp-server

#37

Post by alexey123 »

./start_dnsmasq.php - no need.
Try check enable box, push Save on webgui Extensions|DNSMASQ
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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#38

Post by ernie »

Hello,
On the following screenshot, I check enable (activer) and then save (Enregistrer). I obtain then the same screen but not activation.
dns.png
You do not have the required permissions to view the files attached to this post.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

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

Re: EXTENSION dhcp-server

#39

Post by alexey123 »

Wow. You use french!!
Check it with english system language
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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#40

Post by ernie »

Hey hey, it works :) THANKS

How can I contribute in order to have French version ?
Do you need only translation ? Or is it more complexe ?

If only translation is needed, can you send me the relevant file in order to translate it ?

B.R.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

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

Re: EXTENSION dhcp-server

#41

Post by alexey123 »

I'll convert it to multilanguage. Need time for it..
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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#42

Post by ernie »

OK I will wait.

In your new version the folder tftp dispears. Is it normal ?
I think that in the installation folder there was such folder 'tftp', isn't it ?
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

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

Re: EXTENSION dhcp-server

#43

Post by alexey123 »

I plan add option to work without resolver, so each client can use his nameserver.
Also I want to make compability with Samba Active Directory Domain Controller
UPDATE 11 Aug

Added. User can check no-resolv option, then define tagged hosts and nameservers over script.
(I'll add tag to hosts)

Then I make multilanguage

tftproot folder created for my servers. It empty now, you can put any files into
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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#44

Post by ernie »

OK.
For tftproot there is now no folder, it disapears.
Before the modification, there was present with nothing.
It I can define any location for tftproot folder, it is fine. Thanks for confirming.

Edit
I have the following message when I select add for the dhcp table:
image.jpg
If I select cancel nothing happens. I had to choose another menu in the main bar of nas4free.

Any idea ?
You do not have the required permissions to view the files attached to this post.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#45

Post by ernie »

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.

And for 'built in tftp' section, what is the defaul port used for tftp ?

And I have an issue, the dnsmasq cannot start:
nas4free1: ~ # /etc/rc.d/dnsmasq start
Starting dnsmasq.

dnsmasq: bad option at line 19 of /var/etc/dnsmasq.conf
/etc/rc.d/dnsmasq: WARNING: failed to start dnsmasq

If I look the config file '/var/etc/dnsmasq.conf' (line 18 and 19):
dhcp-option=28,192.168.150.255
192.168.150.255

I don't know why I have on line 19 the value alone. I tried to delete the line but each tile that I launch the dnsmask, the file '/var/etc/dnsmasq.conf' is rewrite.

Do I need to uninstall and install again ?

Thanks

Edit: I tried uninstall and new install, same error in the config file.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

bgold
Starter
Starter
Posts: 41
Joined: 23 May 2015 08:42
Status: Offline

Re: EXTENSION dhcp-server

#46

Post by bgold »

Can you add an option to configure the gateway(router) on the main page?

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

#47

Post by alexey123 »

bgold wrote:Can you add an option to configure the gateway(router) on the main page?

Thanks
I can add it. Current version use some router as nas4free server. You really need use another router?
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

bgold
Starter
Starter
Posts: 41
Joined: 23 May 2015 08:42
Status: Offline

Re: EXTENSION dhcp-server

#48

Post by bgold »

Yes if possible I have a separate router.

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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#49

Post by ernie »

Hello Alexey123,

I have always my issue :
viewtopic.php?f=71&t=3002&p=57921#p57745

Do you think that it comes from a bad installation or that the extension needs some improvements ?

Any advice is welcome.

In order to optimize this extension:
- if you click on add host in the main view, and then cancel, you remain on the same view (creation of host). You had to click on extension/dnsmask in order to come back to the main view
- same issue i f you need to modify an existing host in the main view. So for modification, you add to delete and to create new one

B.R.
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

bupban
NewUser
NewUser
Posts: 6
Joined: 31 Aug 2014 09:36
Status: Offline

Re: EXTENSION dhcp-server

#50

Post by bupban »

@ernie
It seems like alexey123 has updated the zip-package. So I would suggest you first try with the "fetch"-method.
If it does not work at all, try mine.
Hope that helps. Let us know if (and what) worked for you.
Best regards, bupban

GianDO76
Starter
Starter
Posts: 52
Joined: 14 Jul 2015 08:29
Status: Offline

Re: EXTENSION dhcp-server

#51

Post by GianDO76 »

Hi,
i have installed this extension on Nas4Free 10.2 and it works properly. The IP Addresses is assigned correctly,
I'd want to know how to build a remote installation server using also tftp service in Nas4Free.

Thanks
G.

bgold
Starter
Starter
Posts: 41
Joined: 23 May 2015 08:42
Status: Offline

Re: EXTENSION dhcp-server

#52

Post by bgold »

bgold wrote:Yes if possible I have a separate router.

Thanks
Any ideas on when you might have this implemented? I would like to start using it but I am unable to since I cannot assign the gateway.

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
ernie
Forum Moderator
Forum Moderator
Posts: 1452
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: EXTENSION dhcp-server

#53

Post by ernie »

Hello,

I install again the extension, and I have in log file :
Sep 13 18:01:24 root: Failed to start service dnsmasq
Sep 13 18:01:24 root: /etc/rc.d/dnsmasq: WARNING: failed to start dnsmasq
Sep 13 18:01:24 dnsmasq[3629]: FAILED to start up
Sep 13 18:01:24 dnsmasq[3629]: bad option at line 19 of /var/etc/dnsmasq.conf

I looked the line 19 of the dnsmasq.conf file and I see that "the last number of dhcp-option is repeated twice on line 19 and 20:

dhcp-option=28,192.168.150.255
192.168.150.255
192.168.150.255
# Setting over NAS4Free webGUI

If I delete the line, the restart of the extension (reboot of nas4free, or disable/enable the extension) will not change the issue, and if I look the file, both lines is always present.

I am in english langage for nas4free.

Any advice ?

Thanks
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.1.0.4 - Ingva (revision 7542) embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, BTSync, zrep, rclone, themes), nfs, UPS,
NAS2: OBI (zrep (backup mode), themes)

User avatar
F8BOE
experienced User
experienced User
Posts: 106
Joined: 03 Jun 2013 23:09
Location: France
Status: Offline

Re: EXTENSION dhcp-server

#54

Post by F8BOE »

Hello,

Same problem as last year but now with 10.2.0.2.2234 (RPi2) this wonderful extension still does not survive a reboot.

Ciao @+

User avatar
F8BOE
experienced User
experienced User
Posts: 106
Joined: 03 Jun 2013 23:09
Location: France
Status: Offline

Re: EXTENSION dhcp-server

#55

Post by F8BOE »

And DNSMasq does not even consider to save the entered datas.

What's the problem here? Still troubles with non-english GUIs???

Ciao @+

User avatar
F8BOE
experienced User
experienced User
Posts: 106
Joined: 03 Jun 2013 23:09
Location: France
Status: Offline

Re: EXTENSION dhcp-server

#56

Post by F8BOE »

"Value "IP address" is not belongs to the subnet LAN"

I think "do not belong" or "is not belonging"
192.168.0.100 to 192.168.0.199 for example? Is not good?, So what!

But what does it want to see? A fake / virtual network IP address? Sorry, I don't really understand what this "DHCP" server program is intended for... I thought I could have a highly configurable DHCP server in place of my actual Speedport shite that is not even able to do IP reservation as every low-cost router in the world.

The "trick" described here: viewtopic.php?f=71&t=3002&start=25#p57730
does not work.

Ciao @+

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

Re: EXTENSION dhcp-server

#57

Post by crest »

Hello,
I tried to install the most recent version (0.2) of this extension (very well done Alexey!) in a 9.3.0.2.1955 system (built from scratch) but had some "troubles" to get it running.
  1. activation (enable) is just possible in english, line 13 in extensions_dnsmasq_server.php needs gettext => gettext("Save")
    to let it enable in other languages
  2. to get rid of the "auto" interface problem (viewtopic.php?f=71&t=3002&start=25#p57730) the rc script dnsmasq.d needs the following additional command get_if ${_interface}, inserted it after line 85:

    Code: Select all

    85: _interface=`configxml_get "//interfaces/lan/if"`
    86: _interface=`get_if ${_interface}`
    
  3. tried to install the extension on a Raspberry Pi => exec format error => no binary for RPi (I wonder how it's possible to run it on an RPI => viewtopic.php?f=71&t=3002&start=50#p63376) IMHO there are only binaries for x386 and x64 ... ?
  4. even it's possible to add hosts and save the config the service doesn't restart from the gui but if I run the startup script from the CLI with the postinit command

    Code: Select all

    /usr/local/bin/php-cgi /mnt/DATA/extensions/dnsmasq/sbin/start_dnsmasq.php
    
    the service starts.

    But at reboot the service doesn't start with the same postinit command ... :shock:

    Code: Select all

    Feb 4 08:57:26 root: Failed to start service dnsmasq
Any ideas to item 4 ?

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
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#58

Post by alexey123 »

crest wrote:Hello,
I tried to install the most recent version (0.2) of this extension (very well done Alexey!) in a 9.3.0.2.1955 system (built from scratch) but had some "troubles" to get it running.
In general:
1. Nas4Free 10.2 based and 9.3 based is different stsyems.
I rebuilt extension for 10.1 (10.2 ) mant time ago. May br you right - need create repositary for 9.3 based NAS.
2. Dbsmasq itself conflict with Samba AD domein controiller - need adopt it for NAS4FRee. ( I have HOME version of Windows :oops: )

[*]activation (enable) is just possible in english, line 13 in extensions_dnsmasq_server.php needs gettext => gettext("Save")
to let it enable in other languages
I HAVE PROBLEM WITH GETTEXT.
I cannot give to work it.
But I will try to repair it
to get rid of the "auto" interface problem (viewtopic.php?f=71&t=3002&start=25#p57730) the rc script dnsmasq.d needs the following additional command get_if ${_interface}, inserted it after line 85:

Code: Select all

85: _interface=`configxml_get "//interfaces/lan/if"`
86: _interface=`get_if ${_interface}`
I'll check.
May be I add option override webgui cobfig with self-build file.
tried to install the extension on a Raspberry Pi => exec format error => no binary for RPi (I wonder how it's possible to run it on an RPI => viewtopic.php?f=71&t=3002&start=50#p63376) IMHO there are only binaries for x386 and x64 ... ?

even it's possible to add hosts and save the config the service doesn't restart from the gui but if I run the startup script from the CLI with the postinit command

Code: Select all

/usr/local/bin/php-cgi /mnt/DATA/extensions/dnsmasq/sbin/start_dnsmasq.php
the service starts.

But at reboot the service doesn't start with the same postinit command ... :shock:

Code: Select all

Feb 4 08:57:26 root: Failed to start service dnsmasq
Any ideas to item 4 ?

Regards
crest
I'll replace mechanizm fot obtain binary.
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: 549
Joined: 02 Jul 2012 22:25
Location: Vienna, Austria - GMT+1
Status: Offline

Re: EXTENSION dhcp-server

#59

Post by crest »

alexey123 wrote:
[*]activation (enable) is just possible in english, line 13 in extensions_dnsmasq_server.php needs gettext => gettext("Save")
to let it enable in other languages
I HAVE PROBLEM WITH GETTEXT.
I cannot give to work it.
But I will try to repair it
I patched the files with gettext("Save") and all params were saved although I'm using German ...
to get rid of the "auto" interface problem (viewtopic.php?f=71&t=3002&start=25#p57730) the rc script dnsmasq.d needs the following additional command get_if ${_interface}, inserted it after line 85:

Code: Select all

85: _interface=`configxml_get "//interfaces/lan/if"`
86: _interface=`get_if ${_interface}`
I'll check.
May be I add option override webgui cobfig with self-build file.
IMHO it is enough to add the get_if command to your rc script, when I run the rc-script from the CLI before the patch there was an error message "no interface auto found", after inserting the line it started without problems - but only from the CLI :?: as mentioned already ...
I'll replace mechanizm fot obtain binary.
Great, thank you

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
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: EXTENSION dhcp-server

#60

Post by alexey123 »

crest wrote:
I'll replace mechanizm fot obtain binary.
Great, thank you

Regards
crest
Done
https://github.com/alexey1234/nas4free- ... 28d931ba93
Image
I continue

Delete gettexts. Now it must work on All languages

About "auto" intp network setting.
Value "Auto" into //interfaces/lan/if says about NOT complete install network. Sometimes samba and ftp work slow, in case value "auto" here.
I'll keep current settings
Last edited by alexey123 on 07 Feb 2016 00:51, edited 1 time in total.
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

Post Reply

Return to “Extensions / Add-ons”