Message ID | 20180212181315.11063-1-tim@tn-x.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/src/packages/fff/fff-dhcp/Makefile b/src/packages/fff/fff-dhcp/Makefile new file mode 100644 index 0000000..d630412 --- /dev/null +++ b/src/packages/fff/fff-dhcp/Makefile @@ -0,0 +1,40 @@ +include $(TOPDIR)/rules.mk + +PKG_NAME:=fff-dhcp +PKG_VERSION:=1 +PKG_RELEASE:=1 + +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp + +include $(INCLUDE_DIR)/package.mk + +define Package/fff-dhcp + SECTION:=base + CATEGORY:=Freifunk + TITLE:=Freifunk-Franken dhcp + URL:=http://www.freifunk-franken.de + DEPENDS:=+dnsmasq +endef + +define Package/fff-dhcp/description + This is the fff-dhcp for the Freifunk Franken Firmware + It is used to configure dnsmasq for use as gateway. +endef + +define Build/Prepare + echo "all: " > $(PKG_BUILD_DIR)/Makefile +endef + +define Build/Configure + # nothing +endef + +define Build/Compile + # nothing +endef + +define Package/fff-dhcp/install + $(CP) ./files/* $(1)/ +endef + +$(eval $(call BuildPackage,fff-dhcp)) diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp new file mode 100644 index 0000000..f4108f7 --- /dev/null +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp @@ -0,0 +1,38 @@ +#!/bin/sh + +uci batch <<EOF + delete dhcp.@dnsmasq[0] + delete dhcp.lan + delete dhcp.wan + add dhcp dnsmasq + set dhcp.@dnsmasq[0].domainneeded='0' + set dhcp.@dnsmasq[0].boguspriv='0' + set dhcp.@dnsmasq[0].filterwin2k='0' + set dhcp.@dnsmasq[0].localise_queries='0' + set dhcp.@dnsmasq[0].rebind_protection='0' + set dhcp.@dnsmasq[0].rebind_localhost='1' + set dhcp.@dnsmasq[0].domain='fff.community' + set dhcp.@dnsmasq[0].expandhosts='0' + set dhcp.@dnsmasq[0].nonegcache='0' + set dhcp.@dnsmasq[0].authoritative='1' + set dhcp.@dnsmasq[0].readethers='1' + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' + set dhcp.@dnsmasq[0].noresolv='1' + set dhcp.@dnsmasq[0].localservice='1' + add_list dhcp.@dnsmasq[0].server='10.50.252.11' + add_list dhcp.@dnsmasq[0].server='10.50.252.0' + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' + + set dhcp.mesh=dhcp + set dhcp.mesh.interface='mesh' + set dhcp.mesh.ra='server' + set dhcp.mesh.ra_management='0' + set dhcp.mesh.leasetime='12h' +EOF + +uci commit + +exit 0
Hi Hier brauchen wir auch dringend ein Review. Tim Am Montag, den 12.02.2018, 19:13 +0100 schrieb Tim Niemeyer: > Signed-off-by: Tim Niemeyer <tim@tn-x.org> > Signed-off-by: Fabian Bläse <fabian@blaese.de> > - configure router advertisements > - fix package title > - remove unnecessary dhcp config on first boot > > --- > > src/packages/fff/fff-dhcp/Makefile | 40 > ++++++++++++++++++++++ > .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 > ++++++++++++++++++++ > 2 files changed, 78 insertions(+) > create mode 100644 src/packages/fff/fff-dhcp/Makefile > create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci- > defaults/90-fff-dhcp > > diff --git a/src/packages/fff/fff-dhcp/Makefile > b/src/packages/fff/fff-dhcp/Makefile > new file mode 100644 > index 0000000..d630412 > --- /dev/null > +++ b/src/packages/fff/fff-dhcp/Makefile > @@ -0,0 +1,40 @@ > +include $(TOPDIR)/rules.mk > + > +PKG_NAME:=fff-dhcp > +PKG_VERSION:=1 > +PKG_RELEASE:=1 > + > +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp > + > +include $(INCLUDE_DIR)/package.mk > + > +define Package/fff-dhcp > + SECTION:=base > + CATEGORY:=Freifunk > + TITLE:=Freifunk-Franken dhcp > + URL:=http://www.freifunk-franken.de > + DEPENDS:=+dnsmasq > +endef > + > +define Package/fff-dhcp/description > + This is the fff-dhcp for the Freifunk Franken Firmware > + It is used to configure dnsmasq for use as gateway. > +endef > + > +define Build/Prepare > + echo "all: " > $(PKG_BUILD_DIR)/Makefile > +endef > + > +define Build/Configure > + # nothing > +endef > + > +define Build/Compile > + # nothing > +endef > + > +define Package/fff-dhcp/install > + $(CP) ./files/* $(1)/ > +endef > + > +$(eval $(call BuildPackage,fff-dhcp)) > diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff- > dhcp b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > new file mode 100644 > index 0000000..f4108f7 > --- /dev/null > +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > @@ -0,0 +1,38 @@ > +#!/bin/sh > + > +uci batch <<EOF > + delete dhcp.@dnsmasq[0] > + delete dhcp.lan > + delete dhcp.wan > + add dhcp dnsmasq > + set dhcp.@dnsmasq[0].domainneeded='0' > + set dhcp.@dnsmasq[0].boguspriv='0' > + set dhcp.@dnsmasq[0].filterwin2k='0' > + set dhcp.@dnsmasq[0].localise_queries='0' > + set dhcp.@dnsmasq[0].rebind_protection='0' > + set dhcp.@dnsmasq[0].rebind_localhost='1' > + set dhcp.@dnsmasq[0].domain='fff.community' > + set dhcp.@dnsmasq[0].expandhosts='0' > + set dhcp.@dnsmasq[0].nonegcache='0' > + set dhcp.@dnsmasq[0].authoritative='1' > + set dhcp.@dnsmasq[0].readethers='1' > + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' > + set dhcp.@dnsmasq[0].noresolv='1' > + set dhcp.@dnsmasq[0].localservice='1' > + add_list dhcp.@dnsmasq[0].server='10.50.252.11' > + add_list dhcp.@dnsmasq[0].server='10.50.252.0' > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' > + > + set dhcp.mesh=dhcp > + set dhcp.mesh.interface='mesh' > + set dhcp.mesh.ra='server' > + set dhcp.mesh.ra_management='0' > + set dhcp.mesh.leasetime='12h' > +EOF > + > +uci commit > + > +exit 0
Den kann ich nicht reviewen. Wenn ich daheim bin, mach ich ggf. ein acked-by und wenn ihr beide den gebaut habt, also im prinzip ja auch für gut befunden habt, würde mir persönlich das dann als grundlage zum mergen reichen. Vielleicht springt aber ja auch noch jemand ein... On August 11, 2018 8:03:37 PM GMT+02:00, Tim Niemeyer <tim@tn-x.org> wrote: >Hi > >Hier brauchen wir auch dringend ein Review. > >Tim > >Am Montag, den 12.02.2018, 19:13 +0100 schrieb Tim Niemeyer: >> Signed-off-by: Tim Niemeyer <tim@tn-x.org> >> Signed-off-by: Fabian Bläse <fabian@blaese.de> >> - configure router advertisements >> - fix package title >> - remove unnecessary dhcp config on first boot >> >> --- >> >> src/packages/fff/fff-dhcp/Makefile | 40 >> ++++++++++++++++++++++ >> .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 >> ++++++++++++++++++++ >> 2 files changed, 78 insertions(+) >> create mode 100644 src/packages/fff/fff-dhcp/Makefile >> create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci- >> defaults/90-fff-dhcp >> >> diff --git a/src/packages/fff/fff-dhcp/Makefile >> b/src/packages/fff/fff-dhcp/Makefile >> new file mode 100644 >> index 0000000..d630412 >> --- /dev/null >> +++ b/src/packages/fff/fff-dhcp/Makefile >> @@ -0,0 +1,40 @@ >> +include $(TOPDIR)/rules.mk >> + >> +PKG_NAME:=fff-dhcp >> +PKG_VERSION:=1 >> +PKG_RELEASE:=1 >> + >> +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp >> + >> +include $(INCLUDE_DIR)/package.mk >> + >> +define Package/fff-dhcp >> + SECTION:=base >> + CATEGORY:=Freifunk >> + TITLE:=Freifunk-Franken dhcp >> + URL:=http://www.freifunk-franken.de >> + DEPENDS:=+dnsmasq >> +endef >> + >> +define Package/fff-dhcp/description >> + This is the fff-dhcp for the Freifunk Franken Firmware >> + It is used to configure dnsmasq for use as gateway. >> +endef >> + >> +define Build/Prepare >> + echo "all: " > $(PKG_BUILD_DIR)/Makefile >> +endef >> + >> +define Build/Configure >> + # nothing >> +endef >> + >> +define Build/Compile >> + # nothing >> +endef >> + >> +define Package/fff-dhcp/install >> + $(CP) ./files/* $(1)/ >> +endef >> + >> +$(eval $(call BuildPackage,fff-dhcp)) >> diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff- >> dhcp b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >> new file mode 100644 >> index 0000000..f4108f7 >> --- /dev/null >> +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >> @@ -0,0 +1,38 @@ >> +#!/bin/sh >> + >> +uci batch <<EOF >> + delete dhcp.@dnsmasq[0] >> + delete dhcp.lan >> + delete dhcp.wan >> + add dhcp dnsmasq >> + set dhcp.@dnsmasq[0].domainneeded='0' >> + set dhcp.@dnsmasq[0].boguspriv='0' >> + set dhcp.@dnsmasq[0].filterwin2k='0' >> + set dhcp.@dnsmasq[0].localise_queries='0' >> + set dhcp.@dnsmasq[0].rebind_protection='0' >> + set dhcp.@dnsmasq[0].rebind_localhost='1' >> + set dhcp.@dnsmasq[0].domain='fff.community' >> + set dhcp.@dnsmasq[0].expandhosts='0' >> + set dhcp.@dnsmasq[0].nonegcache='0' >> + set dhcp.@dnsmasq[0].authoritative='1' >> + set dhcp.@dnsmasq[0].readethers='1' >> + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' >> + set dhcp.@dnsmasq[0].noresolv='1' >> + set dhcp.@dnsmasq[0].localservice='1' >> + add_list dhcp.@dnsmasq[0].server='10.50.252.11' >> + add_list dhcp.@dnsmasq[0].server='10.50.252.0' >> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' >> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' >> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' >> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' >> + >> + set dhcp.mesh=dhcp >> + set dhcp.mesh.interface='mesh' >> + set dhcp.mesh.ra='server' >> + set dhcp.mesh.ra_management='0' >> + set dhcp.mesh.leasetime='12h' >> +EOF >> + >> +uci commit >> + >> +exit 0
Hallo, Acked-by: Adrian Schmutzler <freifunk@adrianschmutzler.de> Ein paar mögliche Verbesserungen unten. > -----Original Message----- > From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf > Of Tim Niemeyer > Sent: Samstag, 11. August 2018 20:04 > To: franken-dev@freifunk.net > Subject: Re: [PATCH] packages/fff: add new fff-dhcp package > > Hi > > Hier brauchen wir auch dringend ein Review. > > Tim > > Am Montag, den 12.02.2018, 19:13 +0100 schrieb Tim Niemeyer: > > Signed-off-by: Tim Niemeyer <tim@tn-x.org> > > Signed-off-by: Fabian Bläse <fabian@blaese.de> > > - configure router advertisements > > - fix package title > > - remove unnecessary dhcp config on first boot > > > > --- > > > > src/packages/fff/fff-dhcp/Makefile | 40 > > ++++++++++++++++++++++ > > .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 > > ++++++++++++++++++++ > > 2 files changed, 78 insertions(+) > > create mode 100644 src/packages/fff/fff-dhcp/Makefile > > create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci- > > defaults/90-fff-dhcp > > > > diff --git a/src/packages/fff/fff-dhcp/Makefile > > b/src/packages/fff/fff-dhcp/Makefile > > new file mode 100644 > > index 0000000..d630412 > > --- /dev/null > > +++ b/src/packages/fff/fff-dhcp/Makefile > > @@ -0,0 +1,40 @@ > > +include $(TOPDIR)/rules.mk > > + > > +PKG_NAME:=fff-dhcp > > +PKG_VERSION:=1 > > +PKG_RELEASE:=1 > > + > > +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp > > + > > +include $(INCLUDE_DIR)/package.mk > > + > > +define Package/fff-dhcp Hier und weiter unten könnte man wieder $PKG_NAME verwenden. Da das aber wohl bei allen GW-Firmware Patches nicht der Fall ist, kann ich das auch am Schluss für alle in einem separaten Patch nachholen (oder sein lassen). > > + SECTION:=base > > + CATEGORY:=Freifunk > > + TITLE:=Freifunk-Franken dhcp > > + URL:=http://www.freifunk-franken.de > > + DEPENDS:=+dnsmasq > > +endef > > + > > +define Package/fff-dhcp/description > > + This is the fff-dhcp for the Freifunk Franken Firmware > > + It is used to configure dnsmasq for use as gateway. > > +endef > > + > > +define Build/Prepare > > + echo "all: " > $(PKG_BUILD_DIR)/Makefile endef > > + > > +define Build/Configure > > + # nothing > > +endef > > + > > +define Build/Compile > > + # nothing > > +endef > > + > > +define Package/fff-dhcp/install > > + $(CP) ./files/* $(1)/ > > +endef > > + > > +$(eval $(call BuildPackage,fff-dhcp)) > > diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff- > > dhcp b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > new file mode 100644 > > index 0000000..f4108f7 > > --- /dev/null > > +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > @@ -0,0 +1,38 @@ > > +#!/bin/sh > > + > > +uci batch <<EOF > > + delete dhcp.@dnsmasq[0] > > + delete dhcp.lan > > + delete dhcp.wan > > + add dhcp dnsmasq Das macht eine Ausgabe. Keine Ahnung, wo die Ausgabe dann hingeschrieben wird und ob man das hier abfangen könnte. > > + set dhcp.@dnsmasq[0].domainneeded='0' > > + set dhcp.@dnsmasq[0].boguspriv='0' > > + set dhcp.@dnsmasq[0].filterwin2k='0' > > + set dhcp.@dnsmasq[0].localise_queries='0' > > + set dhcp.@dnsmasq[0].rebind_protection='0' > > + set dhcp.@dnsmasq[0].rebind_localhost='1' > > + set dhcp.@dnsmasq[0].domain='fff.community' > > + set dhcp.@dnsmasq[0].expandhosts='0' > > + set dhcp.@dnsmasq[0].nonegcache='0' > > + set dhcp.@dnsmasq[0].authoritative='1' > > + set dhcp.@dnsmasq[0].readethers='1' > > + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' > > + set dhcp.@dnsmasq[0].noresolv='1' > > + set dhcp.@dnsmasq[0].localservice='1' > > + add_list dhcp.@dnsmasq[0].server='10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='10.50.252.0' > > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' > > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' > > + > > + set dhcp.mesh=dhcp > > + set dhcp.mesh.interface='mesh' > > + set dhcp.mesh.ra='server' > > + set dhcp.mesh.ra_management='0' > > + set dhcp.mesh.leasetime='12h' > > +EOF > > + > > +uci commit Hier würde "uci commit dhcp" ausreichen. Grüße Adrian > > + > > +exit0
Hi, s.unten Am 12.02.2018 um 19:13 schrieb Tim Niemeyer: > Signed-off-by: Tim Niemeyer <tim@tn-x.org> > Signed-off-by: Fabian Bläse <fabian@blaese.de> > - configure router advertisements > - fix package title > - remove unnecessary dhcp config on first boot > > --- > > src/packages/fff/fff-dhcp/Makefile | 40 ++++++++++++++++++++++ > .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 ++++++++++++++++++++ > 2 files changed, 78 insertions(+) > create mode 100644 src/packages/fff/fff-dhcp/Makefile > create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > diff --git a/src/packages/fff/fff-dhcp/Makefile b/src/packages/fff/fff-dhcp/Makefile > new file mode 100644 > index 0000000..d630412 > --- /dev/null > +++ b/src/packages/fff/fff-dhcp/Makefile > @@ -0,0 +1,40 @@ > +include $(TOPDIR)/rules.mk > + > +PKG_NAME:=fff-dhcp > +PKG_VERSION:=1 > +PKG_RELEASE:=1 > + > +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp > + > +include $(INCLUDE_DIR)/package.mk > + > +define Package/fff-dhcp > + SECTION:=base > + CATEGORY:=Freifunk > + TITLE:=Freifunk-Franken dhcp > + URL:=http://www.freifunk-franken.de > + DEPENDS:=+dnsmasq > +endef > + > +define Package/fff-dhcp/description > + This is the fff-dhcp for the Freifunk Franken Firmware > + It is used to configure dnsmasq for use as gateway. > +endef > + > +define Build/Prepare > + echo "all: " > $(PKG_BUILD_DIR)/Makefile > +endef > + > +define Build/Configure > + # nothing > +endef > + > +define Build/Compile > + # nothing > +endef > + > +define Package/fff-dhcp/install > + $(CP) ./files/* $(1)/ > +endef > + > +$(eval $(call BuildPackage,fff-dhcp)) > diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > new file mode 100644 > index 0000000..f4108f7 > --- /dev/null > +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > @@ -0,0 +1,38 @@ > +#!/bin/sh > + > +uci batch <<EOF > + delete dhcp.@dnsmasq[0] > + delete dhcp.lan > + delete dhcp.wan > + add dhcp dnsmasq > + set dhcp.@dnsmasq[0].domainneeded='0' > + set dhcp.@dnsmasq[0].boguspriv='0' > + set dhcp.@dnsmasq[0].filterwin2k='0' > + set dhcp.@dnsmasq[0].localise_queries='0' > + set dhcp.@dnsmasq[0].rebind_protection='0' > + set dhcp.@dnsmasq[0].rebind_localhost='1' > + set dhcp.@dnsmasq[0].domain='fff.community' > + set dhcp.@dnsmasq[0].expandhosts='0' > + set dhcp.@dnsmasq[0].nonegcache='0' > + set dhcp.@dnsmasq[0].authoritative='1' > + set dhcp.@dnsmasq[0].readethers='1' > + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' > + set dhcp.@dnsmasq[0].noresolv='1' > + set dhcp.@dnsmasq[0].localservice='1' > + add_list dhcp.@dnsmasq[0].server='10.50.252.11' > + add_list dhcp.@dnsmasq[0].server='10.50.252.0' Sind das nur dummys? Werden die spaeter noch konfiguriert? Der 10.50.256.11er ist auch nicht zu erreichen. > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' > + > + set dhcp.mesh=dhcp > + set dhcp.mesh.interface='mesh' > + set dhcp.mesh.ra='server' > + set dhcp.mesh.ra_management='0' > + set dhcp.mesh.leasetime='12h' > +EOF > + > +uci commit > + > +exit 0
Moin moin, von mir ganz unten. :) Am Mo., 10. Sep. 2018 um 01:44 Uhr schrieb robert <rlanghammer@web.de>: > Hi, > > s.unten > > Am 12.02.2018 um 19:13 schrieb Tim Niemeyer: > > Signed-off-by: Tim Niemeyer <tim@tn-x.org> > > Signed-off-by: Fabian Bläse <fabian@blaese.de> > > - configure router advertisements > > - fix package title > > - remove unnecessary dhcp config on first boot > > > > --- > > > > src/packages/fff/fff-dhcp/Makefile | 40 > ++++++++++++++++++++++ > > .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 > ++++++++++++++++++++ > > 2 files changed, 78 insertions(+) > > create mode 100644 src/packages/fff/fff-dhcp/Makefile > > create mode 100644 > src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > > > diff --git a/src/packages/fff/fff-dhcp/Makefile > b/src/packages/fff/fff-dhcp/Makefile > > new file mode 100644 > > index 0000000..d630412 > > --- /dev/null > > +++ b/src/packages/fff/fff-dhcp/Makefile > > @@ -0,0 +1,40 @@ > > +include $(TOPDIR)/rules.mk > > + > > +PKG_NAME:=fff-dhcp > > +PKG_VERSION:=1 > > +PKG_RELEASE:=1 > > + > > +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp > > + > > +include $(INCLUDE_DIR)/package.mk > > + > > +define Package/fff-dhcp > > + SECTION:=base > > + CATEGORY:=Freifunk > > + TITLE:=Freifunk-Franken dhcp > > + URL:=http://www.freifunk-franken.de > > + DEPENDS:=+dnsmasq > > +endef > > + > > +define Package/fff-dhcp/description > > + This is the fff-dhcp for the Freifunk Franken Firmware > > + It is used to configure dnsmasq for use as gateway. > > +endef > > + > > +define Build/Prepare > > + echo "all: " > $(PKG_BUILD_DIR)/Makefile > > +endef > > + > > +define Build/Configure > > + # nothing > > +endef > > + > > +define Build/Compile > > + # nothing > > +endef > > + > > +define Package/fff-dhcp/install > > + $(CP) ./files/* $(1)/ > > +endef > > + > > +$(eval $(call BuildPackage,fff-dhcp)) > > diff --git > a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > new file mode 100644 > > index 0000000..f4108f7 > > --- /dev/null > > +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > @@ -0,0 +1,38 @@ > > +#!/bin/sh > > + > > +uci batch <<EOF > > + delete dhcp.@dnsmasq[0] > > + delete dhcp.lan > > + delete dhcp.wan > > + add dhcp dnsmasq > > + set dhcp.@dnsmasq[0].domainneeded='0' > > + set dhcp.@dnsmasq[0].boguspriv='0' > > + set dhcp.@dnsmasq[0].filterwin2k='0' > > + set dhcp.@dnsmasq[0].localise_queries='0' > > + set dhcp.@dnsmasq[0].rebind_protection='0' > > + set dhcp.@dnsmasq[0].rebind_localhost='1' > > + set dhcp.@dnsmasq[0].domain='fff.community' > > + set dhcp.@dnsmasq[0].expandhosts='0' > > + set dhcp.@dnsmasq[0].nonegcache='0' > > + set dhcp.@dnsmasq[0].authoritative='1' > > + set dhcp.@dnsmasq[0].readethers='1' > > + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' > > + set dhcp.@dnsmasq[0].noresolv='1' > > + set dhcp.@dnsmasq[0].localservice='1' > > + add_list dhcp.@dnsmasq[0].server='10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='10.50.252.0' > Sind das nur dummys? Werden die spaeter noch konfiguriert? Der > 10.50.256.11er ist auch nicht zu erreichen. > > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' > > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' > > + > > + set dhcp.mesh=dhcp > > + set dhcp.mesh.interface='mesh' > > + set dhcp.mesh.ra='server' > > + set dhcp.mesh.ra_management='0' > > + set dhcp.mesh.leasetime='12h' > Macht es wirklich Sinn die leasetime auf 12h zu lassen? > > +EOF > > + > > +uci commit > > + > > +exit 0 > > > Und das wars auch schon :) LG Alex
Hallo Robert, guter Fund. Beim Durchlauf von configuregateway werden die alten Einträge gelöscht und neue anhand der Usereingaben gesetzt: https://github.com/adrianschmutzler/fff-firmware/blob/1abf5286e9bd639e8e0e51b35d4c3417c98482f0/src/packages/fff/fff-gateway/files/usr/sbin/configuregateway#L127 (sollte bei Fabian ähnlich sein) Warum die Adressen da stehen, weiß ich nicht. Fallback für den Fall, dass es keine Konfiguration gibt? Grüße Adrian > -----Original Message----- > From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf Of > robert > Sent: Montag, 10. September 2018 01:45 > To: franken-dev@freifunk.net > Subject: Re: [PATCH] packages/fff: add new fff-dhcp package > > Hi, > > s.unten > > Am 12.02.2018 um 19:13 schrieb Tim Niemeyer: > > Signed-off-by: Tim Niemeyer <tim@tn-x.org> > > Signed-off-by: Fabian Bläse <fabian@blaese.de> > > - configure router advertisements > > - fix package title > > - remove unnecessary dhcp config on first boot > > > > --- > > > > src/packages/fff/fff-dhcp/Makefile | 40 ++++++++++++++++++++++ > > .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 > ++++++++++++++++++++ > > 2 files changed, 78 insertions(+) > > create mode 100644 src/packages/fff/fff-dhcp/Makefile > > create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff- > dhcp > > > > diff --git a/src/packages/fff/fff-dhcp/Makefile b/src/packages/fff/fff- > dhcp/Makefile > > new file mode 100644 > > index 0000000..d630412 > > --- /dev/null > > +++ b/src/packages/fff/fff-dhcp/Makefile > > @@ -0,0 +1,40 @@ > > +include $(TOPDIR)/rules.mk > > + > > +PKG_NAME:=fff-dhcp > > +PKG_VERSION:=1 > > +PKG_RELEASE:=1 > > + > > +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp > > + > > +include $(INCLUDE_DIR)/package.mk > > + > > +define Package/fff-dhcp > > + SECTION:=base > > + CATEGORY:=Freifunk > > + TITLE:=Freifunk-Franken dhcp > > + URL:=http://www.freifunk-franken.de > > + DEPENDS:=+dnsmasq > > +endef > > + > > +define Package/fff-dhcp/description > > + This is the fff-dhcp for the Freifunk Franken Firmware > > + It is used to configure dnsmasq for use as gateway. > > +endef > > + > > +define Build/Prepare > > + echo "all: " > $(PKG_BUILD_DIR)/Makefile > > +endef > > + > > +define Build/Configure > > + # nothing > > +endef > > + > > +define Build/Compile > > + # nothing > > +endef > > + > > +define Package/fff-dhcp/install > > + $(CP) ./files/* $(1)/ > > +endef > > + > > +$(eval $(call BuildPackage,fff-dhcp)) > > diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > new file mode 100644 > > index 0000000..f4108f7 > > --- /dev/null > > +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp > > @@ -0,0 +1,38 @@ > > +#!/bin/sh > > + > > +uci batch <<EOF > > + delete dhcp.@dnsmasq[0] > > + delete dhcp.lan > > + delete dhcp.wan > > + add dhcp dnsmasq > > + set dhcp.@dnsmasq[0].domainneeded='0' > > + set dhcp.@dnsmasq[0].boguspriv='0' > > + set dhcp.@dnsmasq[0].filterwin2k='0' > > + set dhcp.@dnsmasq[0].localise_queries='0' > > + set dhcp.@dnsmasq[0].rebind_protection='0' > > + set dhcp.@dnsmasq[0].rebind_localhost='1' > > + set dhcp.@dnsmasq[0].domain='fff.community' > > + set dhcp.@dnsmasq[0].expandhosts='0' > > + set dhcp.@dnsmasq[0].nonegcache='0' > > + set dhcp.@dnsmasq[0].authoritative='1' > > + set dhcp.@dnsmasq[0].readethers='1' > > + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' > > + set dhcp.@dnsmasq[0].noresolv='1' > > + set dhcp.@dnsmasq[0].localservice='1' > > + add_list dhcp.@dnsmasq[0].server='10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='10.50.252.0' > Sind das nur dummys? Werden die spaeter noch konfiguriert? Der > 10.50.256.11er ist auch nicht zu erreichen. > > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' > > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' > > + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' > > + > > + set dhcp.mesh=dhcp > > + set dhcp.mesh.interface='mesh' > > + set dhcp.mesh.ra='server' > > + set dhcp.mesh.ra_management='0' > > + set dhcp.mesh.leasetime='12h' > > +EOF > > + > > +uci commit > > + > > +exit 0 >
Hi Adrian, danke für die Info. Dann ist das ok. Reviewed-by: Robert Langhammer <rlanghammer@web.de> Am 10.09.2018 um 17:30 schrieb Adrian Schmutzler: > Hallo Robert, > > guter Fund. > > Beim Durchlauf von configuregateway werden die alten Einträge gelöscht und neue anhand der Usereingaben gesetzt: > > https://github.com/adrianschmutzler/fff-firmware/blob/1abf5286e9bd639e8e0e51b35d4c3417c98482f0/src/packages/fff/fff-gateway/files/usr/sbin/configuregateway#L127 > (sollte bei Fabian ähnlich sein) > > Warum die Adressen da stehen, weiß ich nicht. Fallback für den Fall, dass es keine Konfiguration gibt? > > Grüße > > Adrian > >> -----Original Message----- >> From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf Of >> robert >> Sent: Montag, 10. September 2018 01:45 >> To: franken-dev@freifunk.net >> Subject: Re: [PATCH] packages/fff: add new fff-dhcp package >> >> Hi, >> >> s.unten >> >> Am 12.02.2018 um 19:13 schrieb Tim Niemeyer: >>> Signed-off-by: Tim Niemeyer <tim@tn-x.org> >>> Signed-off-by: Fabian Bläse <fabian@blaese.de> >>> - configure router advertisements >>> - fix package title >>> - remove unnecessary dhcp config on first boot >>> >>> --- >>> >>> src/packages/fff/fff-dhcp/Makefile | 40 ++++++++++++++++++++++ >>> .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 >> ++++++++++++++++++++ >>> 2 files changed, 78 insertions(+) >>> create mode 100644 src/packages/fff/fff-dhcp/Makefile >>> create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff- >> dhcp >>> diff --git a/src/packages/fff/fff-dhcp/Makefile b/src/packages/fff/fff- >> dhcp/Makefile >>> new file mode 100644 >>> index 0000000..d630412 >>> --- /dev/null >>> +++ b/src/packages/fff/fff-dhcp/Makefile >>> @@ -0,0 +1,40 @@ >>> +include $(TOPDIR)/rules.mk >>> + >>> +PKG_NAME:=fff-dhcp >>> +PKG_VERSION:=1 >>> +PKG_RELEASE:=1 >>> + >>> +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp >>> + >>> +include $(INCLUDE_DIR)/package.mk >>> + >>> +define Package/fff-dhcp >>> + SECTION:=base >>> + CATEGORY:=Freifunk >>> + TITLE:=Freifunk-Franken dhcp >>> + URL:=http://www.freifunk-franken.de >>> + DEPENDS:=+dnsmasq >>> +endef >>> + >>> +define Package/fff-dhcp/description >>> + This is the fff-dhcp for the Freifunk Franken Firmware >>> + It is used to configure dnsmasq for use as gateway. >>> +endef >>> + >>> +define Build/Prepare >>> + echo "all: " > $(PKG_BUILD_DIR)/Makefile >>> +endef >>> + >>> +define Build/Configure >>> + # nothing >>> +endef >>> + >>> +define Build/Compile >>> + # nothing >>> +endef >>> + >>> +define Package/fff-dhcp/install >>> + $(CP) ./files/* $(1)/ >>> +endef >>> + >>> +$(eval $(call BuildPackage,fff-dhcp)) >>> diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >> b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >>> new file mode 100644 >>> index 0000000..f4108f7 >>> --- /dev/null >>> +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >>> @@ -0,0 +1,38 @@ >>> +#!/bin/sh >>> + >>> +uci batch <<EOF >>> + delete dhcp.@dnsmasq[0] >>> + delete dhcp.lan >>> + delete dhcp.wan >>> + add dhcp dnsmasq >>> + set dhcp.@dnsmasq[0].domainneeded='0' >>> + set dhcp.@dnsmasq[0].boguspriv='0' >>> + set dhcp.@dnsmasq[0].filterwin2k='0' >>> + set dhcp.@dnsmasq[0].localise_queries='0' >>> + set dhcp.@dnsmasq[0].rebind_protection='0' >>> + set dhcp.@dnsmasq[0].rebind_localhost='1' >>> + set dhcp.@dnsmasq[0].domain='fff.community' >>> + set dhcp.@dnsmasq[0].expandhosts='0' >>> + set dhcp.@dnsmasq[0].nonegcache='0' >>> + set dhcp.@dnsmasq[0].authoritative='1' >>> + set dhcp.@dnsmasq[0].readethers='1' >>> + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' >>> + set dhcp.@dnsmasq[0].noresolv='1' >>> + set dhcp.@dnsmasq[0].localservice='1' >>> + add_list dhcp.@dnsmasq[0].server='10.50.252.11' >>> + add_list dhcp.@dnsmasq[0].server='10.50.252.0' >> Sind das nur dummys? Werden die spaeter noch konfiguriert? Der >> 10.50.256.11er ist auch nicht zu erreichen. >>> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' >>> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' >>> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' >>> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' >>> + >>> + set dhcp.mesh=dhcp >>> + set dhcp.mesh.interface='mesh' >>> + set dhcp.mesh.ra='server' >>> + set dhcp.mesh.ra_management='0' >>> + set dhcp.mesh.leasetime='12h' >>> +EOF >>> + >>> +uci commit >>> + >>> +exit 0 >
Hallo Alex, On 10.09.18 06:33, Alex Gutfried wrote: > Moin moin, > > Macht es wirklich Sinn die leasetime auf 12h zu lassen? > > LG Alex Vermutlich ist eine kürzere Leasetime sinnvoller. 1h sollte auch locker genügen. Ggf. kann man da auch noch tiefer gehen. Fabian
Hallo zusammen, so richtig geil sind die Adressen an dieser Stelle tatsächlich nicht. Ich würde das jetzt aber erstmal so lassen, da aktuell ja auch kein Paket zur Konfiguration existiert (zumindest weder Upstream noch als Patch). Ggf. kann man es dann ja wieder wegpatchen. Gruß Fabian On 10.09.18 17:30, Adrian Schmutzler wrote: > Hallo Robert, > > guter Fund. > > Beim Durchlauf von configuregateway werden die alten Einträge gelöscht und neue anhand der Usereingaben gesetzt: > > https://github.com/adrianschmutzler/fff-firmware/blob/1abf5286e9bd639e8e0e51b35d4c3417c98482f0/src/packages/fff/fff-gateway/files/usr/sbin/configuregateway#L127 > (sollte bei Fabian ähnlich sein) > > Warum die Adressen da stehen, weiß ich nicht. Fallback für den Fall, dass es keine Konfiguration gibt? > > Grüße > > Adrian > >> -----Original Message----- >> From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf Of >> robert >> Sent: Montag, 10. September 2018 01:45 >> To: franken-dev@freifunk.net >> Subject: Re: [PATCH] packages/fff: add new fff-dhcp package >> >> Hi, >> >> s.unten >> >> Am 12.02.2018 um 19:13 schrieb Tim Niemeyer: >>> Signed-off-by: Tim Niemeyer <tim@tn-x.org> >>> Signed-off-by: Fabian Bläse <fabian@blaese.de> >>> - configure router advertisements >>> - fix package title >>> - remove unnecessary dhcp config on first boot >>> >>> --- >>> >>> src/packages/fff/fff-dhcp/Makefile | 40 ++++++++++++++++++++++ >>> .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 >> ++++++++++++++++++++ >>> 2 files changed, 78 insertions(+) >>> create mode 100644 src/packages/fff/fff-dhcp/Makefile >>> create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff- >> dhcp >>> >>> diff --git a/src/packages/fff/fff-dhcp/Makefile b/src/packages/fff/fff- >> dhcp/Makefile >>> new file mode 100644 >>> index 0000000..d630412 >>> --- /dev/null >>> +++ b/src/packages/fff/fff-dhcp/Makefile >>> @@ -0,0 +1,40 @@ >>> +include $(TOPDIR)/rules.mk >>> + >>> +PKG_NAME:=fff-dhcp >>> +PKG_VERSION:=1 >>> +PKG_RELEASE:=1 >>> + >>> +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp >>> + >>> +include $(INCLUDE_DIR)/package.mk >>> + >>> +define Package/fff-dhcp >>> + SECTION:=base >>> + CATEGORY:=Freifunk >>> + TITLE:=Freifunk-Franken dhcp >>> + URL:=http://www.freifunk-franken.de >>> + DEPENDS:=+dnsmasq >>> +endef >>> + >>> +define Package/fff-dhcp/description >>> + This is the fff-dhcp for the Freifunk Franken Firmware >>> + It is used to configure dnsmasq for use as gateway. >>> +endef >>> + >>> +define Build/Prepare >>> + echo "all: " > $(PKG_BUILD_DIR)/Makefile >>> +endef >>> + >>> +define Build/Configure >>> + # nothing >>> +endef >>> + >>> +define Build/Compile >>> + # nothing >>> +endef >>> + >>> +define Package/fff-dhcp/install >>> + $(CP) ./files/* $(1)/ >>> +endef >>> + >>> +$(eval $(call BuildPackage,fff-dhcp)) >>> diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >> b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >>> new file mode 100644 >>> index 0000000..f4108f7 >>> --- /dev/null >>> +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >>> @@ -0,0 +1,38 @@ >>> +#!/bin/sh >>> + >>> +uci batch <<EOF >>> + delete dhcp.@dnsmasq[0] >>> + delete dhcp.lan >>> + delete dhcp.wan >>> + add dhcp dnsmasq >>> + set dhcp.@dnsmasq[0].domainneeded='0' >>> + set dhcp.@dnsmasq[0].boguspriv='0' >>> + set dhcp.@dnsmasq[0].filterwin2k='0' >>> + set dhcp.@dnsmasq[0].localise_queries='0' >>> + set dhcp.@dnsmasq[0].rebind_protection='0' >>> + set dhcp.@dnsmasq[0].rebind_localhost='1' >>> + set dhcp.@dnsmasq[0].domain='fff.community' >>> + set dhcp.@dnsmasq[0].expandhosts='0' >>> + set dhcp.@dnsmasq[0].nonegcache='0' >>> + set dhcp.@dnsmasq[0].authoritative='1' >>> + set dhcp.@dnsmasq[0].readethers='1' >>> + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' >>> + set dhcp.@dnsmasq[0].noresolv='1' >>> + set dhcp.@dnsmasq[0].localservice='1' >>> + add_list dhcp.@dnsmasq[0].server='10.50.252.11' >>> + add_list dhcp.@dnsmasq[0].server='10.50.252.0' >> Sind das nur dummys? Werden die spaeter noch konfiguriert? Der >> 10.50.256.11er ist auch nicht zu erreichen. >>> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' >>> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' >>> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' >>> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' >>> + >>> + set dhcp.mesh=dhcp >>> + set dhcp.mesh.interface='mesh' >>> + set dhcp.mesh.ra='server' >>> + set dhcp.mesh.ra_management='0' >>> + set dhcp.mesh.leasetime='12h' >>> +EOF >>> + >>> +uci commit >>> + >>> +exit 0 >> > >
Hi, ok, dann von mir ein Reviewed-by: Robert Langhammer <rlanghammer@web.de> Am 27.12.18 um 00:23 schrieb Fabian Bläse: > Hallo zusammen, > > so richtig geil sind die Adressen an dieser Stelle tatsächlich nicht. > Ich würde das jetzt aber erstmal so lassen, da aktuell ja auch kein Paket zur Konfiguration existiert (zumindest weder Upstream noch als Patch). > > Ggf. kann man es dann ja wieder wegpatchen. > > Gruß > Fabian > > On 10.09.18 17:30, Adrian Schmutzler wrote: >> Hallo Robert, >> >> guter Fund. >> >> Beim Durchlauf von configuregateway werden die alten Einträge gelöscht und neue anhand der Usereingaben gesetzt: >> >> https://github.com/adrianschmutzler/fff-firmware/blob/1abf5286e9bd639e8e0e51b35d4c3417c98482f0/src/packages/fff/fff-gateway/files/usr/sbin/configuregateway#L127 >> (sollte bei Fabian ähnlich sein) >> >> Warum die Adressen da stehen, weiß ich nicht. Fallback für den Fall, dass es keine Konfiguration gibt? >> >> Grüße >> >> Adrian >> >>> -----Original Message----- >>> From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf Of >>> robert >>> Sent: Montag, 10. September 2018 01:45 >>> To: franken-dev@freifunk.net >>> Subject: Re: [PATCH] packages/fff: add new fff-dhcp package >>> >>> Hi, >>> >>> s.unten >>> >>> Am 12.02.2018 um 19:13 schrieb Tim Niemeyer: >>>> Signed-off-by: Tim Niemeyer <tim@tn-x.org> >>>> Signed-off-by: Fabian Bläse <fabian@blaese.de> >>>> - configure router advertisements >>>> - fix package title >>>> - remove unnecessary dhcp config on first boot >>>> >>>> --- >>>> >>>> src/packages/fff/fff-dhcp/Makefile | 40 ++++++++++++++++++++++ >>>> .../fff-dhcp/files/etc/uci-defaults/90-fff-dhcp | 38 >>> ++++++++++++++++++++ >>>> 2 files changed, 78 insertions(+) >>>> create mode 100644 src/packages/fff/fff-dhcp/Makefile >>>> create mode 100644 src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff- >>> dhcp >>>> diff --git a/src/packages/fff/fff-dhcp/Makefile b/src/packages/fff/fff- >>> dhcp/Makefile >>>> new file mode 100644 >>>> index 0000000..d630412 >>>> --- /dev/null >>>> +++ b/src/packages/fff/fff-dhcp/Makefile >>>> @@ -0,0 +1,40 @@ >>>> +include $(TOPDIR)/rules.mk >>>> + >>>> +PKG_NAME:=fff-dhcp >>>> +PKG_VERSION:=1 >>>> +PKG_RELEASE:=1 >>>> + >>>> +PKG_BUILD_DIR:=$(BUILD_DIR)/fff-dhcp >>>> + >>>> +include $(INCLUDE_DIR)/package.mk >>>> + >>>> +define Package/fff-dhcp >>>> + SECTION:=base >>>> + CATEGORY:=Freifunk >>>> + TITLE:=Freifunk-Franken dhcp >>>> + URL:=http://www.freifunk-franken.de >>>> + DEPENDS:=+dnsmasq >>>> +endef >>>> + >>>> +define Package/fff-dhcp/description >>>> + This is the fff-dhcp for the Freifunk Franken Firmware >>>> + It is used to configure dnsmasq for use as gateway. >>>> +endef >>>> + >>>> +define Build/Prepare >>>> + echo "all: " > $(PKG_BUILD_DIR)/Makefile >>>> +endef >>>> + >>>> +define Build/Configure >>>> + # nothing >>>> +endef >>>> + >>>> +define Build/Compile >>>> + # nothing >>>> +endef >>>> + >>>> +define Package/fff-dhcp/install >>>> + $(CP) ./files/* $(1)/ >>>> +endef >>>> + >>>> +$(eval $(call BuildPackage,fff-dhcp)) >>>> diff --git a/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >>> b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >>>> new file mode 100644 >>>> index 0000000..f4108f7 >>>> --- /dev/null >>>> +++ b/src/packages/fff/fff-dhcp/files/etc/uci-defaults/90-fff-dhcp >>>> @@ -0,0 +1,38 @@ >>>> +#!/bin/sh >>>> + >>>> +uci batch <<EOF >>>> + delete dhcp.@dnsmasq[0] >>>> + delete dhcp.lan >>>> + delete dhcp.wan >>>> + add dhcp dnsmasq >>>> + set dhcp.@dnsmasq[0].domainneeded='0' >>>> + set dhcp.@dnsmasq[0].boguspriv='0' >>>> + set dhcp.@dnsmasq[0].filterwin2k='0' >>>> + set dhcp.@dnsmasq[0].localise_queries='0' >>>> + set dhcp.@dnsmasq[0].rebind_protection='0' >>>> + set dhcp.@dnsmasq[0].rebind_localhost='1' >>>> + set dhcp.@dnsmasq[0].domain='fff.community' >>>> + set dhcp.@dnsmasq[0].expandhosts='0' >>>> + set dhcp.@dnsmasq[0].nonegcache='0' >>>> + set dhcp.@dnsmasq[0].authoritative='1' >>>> + set dhcp.@dnsmasq[0].readethers='1' >>>> + set dhcp.@dnsmasq[0].leasefile='/tmp/dhcp.leases' >>>> + set dhcp.@dnsmasq[0].noresolv='1' >>>> + set dhcp.@dnsmasq[0].localservice='1' >>>> + add_list dhcp.@dnsmasq[0].server='10.50.252.11' >>>> + add_list dhcp.@dnsmasq[0].server='10.50.252.0' >>> Sind das nur dummys? Werden die spaeter noch konfiguriert? Der >>> 10.50.256.11er ist auch nicht zu erreichen. >>>> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.11' >>>> + add_list dhcp.@dnsmasq[0].server='/in-addr.arpa/10.50.252.0' >>>> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.11' >>>> + add_list dhcp.@dnsmasq[0].server='/ip6.arpa/10.50.252.0' >>>> + >>>> + set dhcp.mesh=dhcp >>>> + set dhcp.mesh.interface='mesh' >>>> + set dhcp.mesh.ra='server' >>>> + set dhcp.mesh.ra_management='0' >>>> + set dhcp.mesh.leasetime='12h' >>>> +EOF >>>> + >>>> +uci commit >>>> + >>>> +exit 0 >>
Hallo zusammen Ich würde diesen Patch demnächst applien, und die Leasetime dabei noch deutlich nach unten setzen. _1h_ erscheint mir für den Anfang sinnvoll, gar zu viel Traffic sollte das bisschen DHCP denke ich bei den entsprechend kleinen Hoods denke ich mit dieser Leasetime nicht machen. Einwände? Fabian On 27.12.18 00:21, Fabian Bläse wrote: > Hallo Alex, > > On 10.09.18 06:33, Alex Gutfried wrote: >> Moin moin, >> >> Macht es wirklich Sinn die leasetime auf 12h zu lassen? >> >> LG Alex > > Vermutlich ist eine kürzere Leasetime sinnvoller. > 1h sollte auch locker genügen. Ggf. kann man da auch noch tiefer gehen. > > Fabian >
Hallo, ich hatte da noch zwischendrin drei Anmerkungen: > > + > > +define Package/fff-dhcp Hier und weiter unten könnte man wieder $PKG_NAME verwenden. Da das aber wohl bei allen GW-Firmware Patches nicht der Fall ist, kann ich das auch am Schluss für alle in einem separaten Patch nachholen (oder sein lassen). > > + > > +uci batch <<EOF > > + delete dhcp.@dnsmasq[0] > > + delete dhcp.lan > > + delete dhcp.wan > > + add dhcp dnsmasq Das macht eine Ausgabe. Keine Ahnung, wo die Ausgabe dann hingeschrieben wird und ob man das hier abfangen könnte. > > +EOF > > + > > +uci commit Hier würde "uci commit dhcp" ausreichen. Wegen mir direkt beim Commit oder wenn du nicht willst auch gar nicht. Grüße Adrian From: franken-dev [mailto:franken-dev-bounces@freifunk.net] On Behalf Of Fabian Bläse Sent: Mittwoch, 9. Januar 2019 23:46 To: Alex Gutfried <alexgutfried@gmail.com>; franken-dev@freifunk.net Subject: Re: [PATCH] packages/fff: add new fff-dhcp package Hallo zusammen Ich würde diesen Patch demnächst applien, und die Leasetime dabei noch deutlich nach unten setzen. _1h_ erscheint mir für den Anfang sinnvoll, gar zu viel Traffic sollte das bisschen DHCP denke ich bei den entsprechend kleinen Hoods denke ich mit dieser Leasetime nicht machen. Einwände? Fabian On 27.12.18 00:21, Fabian Bläse wrote: > Hallo Alex, > > On 10.09.18 06:33, Alex Gutfried wrote: >> Moin moin, >> >> Macht es wirklich Sinn die leasetime auf 12h zu lassen? >> >> LG Alex > > Vermutlich ist eine kürzere Leasetime sinnvoller. > 1h sollte auch locker genügen. Ggf. kann man da auch noch tiefer gehen. > > Fabian >
Hallo Adrian, On 10.01.19 00:05, mail@adrianschmutzler.de wrote: > Hallo, > > ich hatte da noch zwischendrin drei Anmerkungen: > >> > + >> > +define Package/fff-dhcp > > Hier und weiter unten könnte man wieder $PKG_NAME verwenden. Da das aber wohl bei allen GW-Firmware Patches nicht der Fall ist, kann ich das auch am Schluss für alle in einem separaten Patch nachholen (oder sein lassen). Könnte man machen, ja. Hab jetzt nicht geguckt, was wir aktuell machen. Ich würde sagen in einem extra Patch nachholen. >> > + >> > +uci batch <<EOF >> > + delete dhcp.@dnsmasq[0] >> > + delete dhcp.lan >> > + delete dhcp.wan >> > + add dhcp dnsmasq > > Das macht eine Ausgabe. Keine Ahnung, wo die Ausgabe dann hingeschrieben wird und ob man das hier abfangen könnte. Puh, gute Frage. Ich bin mir recht sicher, dass sie nicht in eine Date geschrieben wird. Wahrscheinlich gibt das uci batch das tatsächlich einfach aus. >> > +EOF >> > + >> > +uci commit > > Hier würde "uci commit dhcp" ausreichen. > Wegen mir direkt beim Commit oder wenn du nicht willst auch gar nicht. Jo, das kann man machen. Das würde ich direkt beim applien machen. Gruß Fabian P.S.: Dein Mailer macht komische Plaintext Mails (vermutlich schon immer) mit viel zu vielen Newlines bei Absätzen...
Hallo zusammen, ich habe folgende offene Anmerkungen wie schon in der letzten Mail angedroht angepasst und das ganze applied: - Leasetime auf 1h reduziert - Nur uci dhcp section commiten. Gruß Fabian