Re: Possible problem in ucode wifi scripts

2024-12-15 Thread e9hack
Am 15.12.2024 um 16:01 schrieb Felix Fietkau: On 14.12.24 20:56, e9hack wrote: Am 14.12.2024 um 12:02 schrieb Felix Fietkau: On 14.12.24 11:47, e9hack wrote: Hi, it looks like that data.macaddr_base is always true even if no macaddr_base is set: Which context does this happen in - hostapd

Re: Possible problem in ucode wifi scripts

2024-12-15 Thread e9hack
Am 14.12.2024 um 12:02 schrieb Felix Fietkau: On 14.12.24 11:47, e9hack wrote: Hi, it looks like that data.macaddr_base is always true even if no macaddr_base is set: Which context does this happen in - hostapd, wpa_supplicant, wdev.uc or all of the above? - Felix The issue comes from

Re: Possible problem in ucode wifi scripts

2024-12-14 Thread e9hack
Am 14.12.2024 um 12:02 schrieb Felix Fietkau: On 14.12.24 11:47, e9hack wrote: Hi, it looks like that data.macaddr_base is always true even if no macaddr_base is set: Which context does this happen in - hostapd, wpa_supplicant, wdev.uc or all of the above? - Felix It occurs with hostapd

Possible problem in ucode wifi scripts

2024-12-14 Thread e9hack
Hi, it looks like that data.macaddr_base is always true even if no macaddr_base is set: --- a/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc +++ b/package/network/config/wifi-scripts/files/usr/share/hostap/common.uc @@ -213,7 +213,9 @@ const phy_proto = { i

Re: wifi ucode scripts

2024-12-11 Thread e9hack
Am 11.12.2024 um 11:50 schrieb John Crispin: On 09.12.24 19:19, e9hack wrote: 3) vlan settings: vlan_no_bridge must be 0, if vlan_bridge isn't set and the bridge configuration comes from a vlan file    It isn't possible to set vlan_no_bridge to 0. are you sure about this ? th

Re: wifi ucode scripts

2024-12-10 Thread e9hack
Am 10.12.2024 um 08:06 schrieb John Crispin: Hi Hartmut On 09.12.24 19:19, e9hack wrote: 2) wireless.wifi-xxx.json: reading of options with alias definitions don't work can you elaborate on this one please ?     John My 5g wifi wasn't detected properly: config wifi-devi

wifi ucode scripts

2024-12-09 Thread e9hack
Hi, there are a few bugs in the new ucode scripts: 1) iface.uc, line no 104: WPA-EAP--SHA256 -> WPA-EAP-SHA256 2) wireless.wifi-xxx.json: reading of options with alias definitions don't work 3) vlan settings: vlan_no_bridge must be 0, if vlan_bridge isn't set and the bridge configuration come

Re: files for jailed process's

2024-07-30 Thread e9hack
Am 30.07.2024 um 17:29 schrieb Daniel Golle: On Tue, Jul 30, 2024 at 03:40:25PM +0200, e9hack wrote: Hi, if a process is started via procd in a jail and uses some files, changes to those files outside the jail are not reflected inside the jail. For E.g. dnsmasq runs in a jail. The

files for jailed process's

2024-07-30 Thread e9hack
Hi, if a process is started via procd in a jail and uses some files, changes to those files outside the jail are not reflected inside the jail. For E.g. dnsmasq runs in a jail. The configuration is changed, that only the host file does change. Sending SIGHUP to dnsmasq results in reloading of

exception in hostapd/hostapd.uc

2024-06-06 Thread e9hack
Hi, after the update of hostapd from today, I see some exceptions at start of hostapd: Thu Jun 6 21:06:43 2024 daemon.notice hostapd: Exception in ubus function: left-hand side is not a function In [anonymous function](), file /usr/share/hostap/hostapd.uc, line 837, byte 50: called from anonym

Re: dropbear - compression is broken

2024-05-24 Thread e9hack
Am 26.02.2024 um 20:06 schrieb e9hack: in the past, it was possible to enable compression in WinSCP. Currently WinSCP reports an error when the copy operation starts: Copying file 'D:\Download\carambola\openwrt-ath79-generic-tplink_archer-c7-v2-2-squashfs-sysupgrade-d240224.bin'

Re: Issue after changing from xz to zstd

2024-04-06 Thread e9hack
Am 06.04.2024 um 21:50 schrieb Robert Marko: On Sat, 6 Apr 2024 at 21:47, Hartmut Birr wrote: Hi, I did change the Makefile for dnsmasq in the way that I give: PKG_SOURCE_URL:=git://thekelleys.org.uk/dnsmasq.git PKG_SOURCE_PROTO:=git PKG_SOURCE_DATE:=2024-03-27 PKG_SOURCE_VERSION:=550c368ade

hostapd size issue

2024-04-04 Thread e9hack
Hi, I face a strange issue about the size of hostapd. If I build hostapd-openssl only, the size of the hostapd binary is 1061680 bytes. If I add wpad-openssl as module in addition, the size of hostapd is 798664 bytes only. Regards, Hartmut .config for hostapd only: # # WirelessAPD # # CONFIG_

Re: Definition for flash w25q128 is wrong

2024-04-01 Thread e9hack
Am 01.04.2024 um 11:54 schrieb Robert Marko: On Mon, 1 Apr 2024 at 11:25, e9hack wrote: Am 01.04.2024 um 11:06 schrieb Robert Marko: On Mon, 1 Apr 2024 at 10:32, e9hack wrote: Am 01.04.2024 um 10:14 schrieb Robert Marko: On Mon, 1 Apr 2024 at 06:29, e9hack wrote: Hi, I'm using

Re: Definition for flash w25q128 is wrong

2024-04-01 Thread e9hack
Am 01.04.2024 um 11:06 schrieb Robert Marko: On Mon, 1 Apr 2024 at 10:32, e9hack wrote: Am 01.04.2024 um 10:14 schrieb Robert Marko: On Mon, 1 Apr 2024 at 06:29, e9hack wrote: Hi, I'm using a TP-LINK WDR3600 with a bigger flash. Since some time the router hangs in an endless boot

Re: Definition for flash w25q128 is wrong

2024-04-01 Thread e9hack
Am 01.04.2024 um 10:14 schrieb Robert Marko: On Mon, 1 Apr 2024 at 06:29, e9hack wrote: Hi, I'm using a TP-LINK WDR3600 with a bigger flash. Since some time the router hangs in an endless boot loop. I see the following message: ... [0.402716] spi-nor spi0.0: BFPT parsing failed. P

Definition for flash w25q128 is wrong

2024-03-31 Thread e9hack
Hi, I'm using a TP-LINK WDR3600 with a bigger flash. Since some time the router hangs in an endless boot loop. I see the following message: ... [0.402716] spi-nor spi0.0: BFPT parsing failed. Please consider using SPI_NOR_SKIP_SFDP when declaring the flash [0.413217] spi-nor: probe of

dropbear - compression is broken

2024-02-26 Thread e9hack
Hi, in the past, it was possible to enable compression in WinSCP. Currently WinSCP reports an error when the copy operation starts: Copying file 'D:\Download\carambola\openwrt-ath79-generic-tplink_archer-c7-v2-2-squashfs-sysupgrade-d240224.bin' fatally failed. Copying files to remote side fai

Re: procd, possible hotplug issue?

2024-02-21 Thread e9hack
Am 21.02.2024 um 01:21 schrieb Daniel Golle: Yep, I didn't think about empty variables when I built this... Can you test this please: https://github.com/openwrt/procd/pull/3 This does fix the issue. If I test a modified executable, I replaced it by a link to a link on a automatically mount

sysupgrade is broken

2024-02-21 Thread e9hack
Hi, sysupgrade is broken since commit 4fa9aaf0bed984d200b3c48d1cc81fca7847c394 base-files: sysupgrade: always setup overlay when creating backup If /etc/sysupgrade.conf contains files from /var/..., sysugrade does stop with network down. If I execute sysupgrade -b /tmp/config-backup.tar.gz, s

Re: procd, possible hotplug issue?

2024-02-20 Thread e9hack
Am 20.02.2024 um 14:14 schrieb Paul D: Could you show an example of this? I modified /usr/lib/dnsmasq/dhcp-script.sh to see additional variables in the syslog: --- dhcp-script.sh.orig 2024-02-14 16:22:53.0 +0100 +++ dhcp-script.sh 2024-02-20 22:55:33.0 +0100 @@ -50,4 +5

procd, possible hotplug issue?

2024-02-17 Thread e9hack
Hi, I face a problem with hotplug calls. To execute hotplug calls, procd checks given environment variables. If a variable is empty, it is simply not set by procd. If such a variable is already set by the shell, the called hotplug script gets a wrong value. This occurs with dhcp hotplug scripts. O

Re: procd error messages

2024-02-15 Thread e9hack
Hi, 'sh: missing ]' was my fault. I forgot a '&&' in a hot-plug-script: [ $DEBUG -gt 0 ] logger -t ... Regards, Hartmut Am Mi., 14. Feb. 2024 um 22:29 Uhr schrieb Paul D : > > On 2024-02-13 00:23, Hartmut Birr wrote: > > Hi, > > > > I let /etc/init.d/network log some more things by changing: > >

vlan on kernel 6.1

2024-02-14 Thread e9hack
Hi, I've trouble with kernel 6.1. My configuration for tagged vlan's with hostapd works on kernel 5.15 but not on 6.1. Vlan interfaces like ethx.y are not coming up. This happens on two different routers (Asus RT-AX53u and TP-Link Archer C7v2). When I try this manually I get: ip link add link

Re: qca8327/qca8337 switch

2024-02-12 Thread e9hack
Am 12.02.2024 um 17:59 schrieb Christian Marangi (Ansuel): Would be ideal to know what target are we talking about. The device is a TP Link C7 converted to using DSA. Regards, Hartmut ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org h

qca8327/qca8337 switch

2024-02-12 Thread e9hack
Hi, it looks like that this commit 997acc7f86ca985cba52f7ea8b72f0661a1e3c52 generic: 6.1: backport at803x split patches breaks devices which using a qca8327/qca8337 switch, because the switch driver is not longer compiled in. Regards, Hartmut ___ o

Re: hostapd crash

2024-01-13 Thread e9hack
Am 13.01.2024 um 16:47 schrieb Felix Fietkau: On 13.01.24 16:32, e9hack wrote: Thanks, this does fix the exception. Now I see the reale error: Sat Jan 13 15:52:30 2024 daemon.err hostapd: Could not set interface phy1-ap8 flags (UP): Resource busy Sat Jan 13 15:52:31 2024 daemon.err hostapd

Re: hostapd crash

2024-01-13 Thread e9hack
daemon.err hostapd: Interface initialization failed Is there a limition of AP's per device? Regards, Hartmut Am 13.01.2024 um 16:15 schrieb Felix Fietkau: Hi, On 13.01.24 11:28, e9hack wrote: Hi, I did add one more AP to my wifi config for testing. This results in hostapd not starting for this d

hostapd crash

2024-01-13 Thread e9hack
Hi, I did add one more AP to my wifi config for testing. This results in hostapd not starting for this device: Thu Jan 11 13:59:12 2024 daemon.notice hostapd: Exception in ubus function: left-hand side expression is null In __iface_pending_next(), file /usr/share/hostap/hostapd.uc, line 165,

Re: openvpn issue

2023-12-18 Thread e9hack
ld solve the problem. First I did modify /etc/init.d/openvpn by adding an interface trigger which does restart openvpn with parameter '--local '. Second, I did use the simple way by adding 'option multihome 1' to the openvpn config file. Regards, Hartmut On 2023-12-15 11:08,

openvpn issue

2023-12-15 Thread e9hack
Hi, I've trouble with openvpn over ipv6. It isn't possible to connect to my router from outside via ipv6, because openvpn uses the wrong ipv6 address as source. I get from my provider two prefixes (a 56 and 64 bit). The wan interface gets assigned a random address from the 64 bit prefix. I'm u

Re: Compilation of gdb is broken

2023-12-14 Thread e9hack
A make distclean did fix the issue. Regards, Hartmut Am 14.12.2023 um 15:19 schrieb Robert Marko: On Thu, Dec 14, 2023, 15:15 e9hack wrote: Hi, compilation of gdb is broken since the update to 14.1. I get the following error: expop.h:352:14: error: 'gdb_printf' was not declar

Compilation of gdb is broken

2023-12-14 Thread e9hack
Hi, compilation of gdb is broken since the update to 14.1. I get the following error: expop.h:352:14: error: 'gdb_printf' was not declared in this scope; did you mean 'gmp_printf'? 352 | gdb_printf (stream, _("%*sVector:\n"), depth, ""); | ~~~^~~

libubox compile issue

2023-11-28 Thread e9hack
Hi, since commit 'libubox: update to Git HEAD (2023-11-27)', I've trouble to compile libubox: [43/46] Building C object CMakeFiles/jshn.dir/jshn.c.o [44/46] Linking C executable jshn FAILED: jshn : && /data/src/LEDE/RT-AX53U-5.15.x/staging_dir/host/bin/gcc -O2 -I/data/src/LEDE/RT-AX53U-5.15.x/

Re: netifd issue

2023-11-10 Thread e9hack
Too fast. I did reboot with the old version again. The patched version does work. Sorry! Regards, Hartmut Am 10.11.2023 um 15:09 schrieb e9hack: Sorry, but it doesn't solve the issue. Regards, Hartmut Am 10.11.2023 um 14:13 schrieb Felix Fietkau: I think I found the cause of

Re: netifd issue

2023-11-10 Thread e9hack
Sorry, but it doesn't solve the issue. Regards, Hartmut Am 10.11.2023 um 14:13 schrieb Felix Fietkau: I think I found the cause of this regression while looking at the code again. It seems that the hotplug-added devices are removed too early based on DEV_EVENT_REMOVE events. Please try this fix

netifd issue

2023-11-09 Thread e9hack
Hi, I face a strange behaviour since commit 516ab774cc16d4b04b3b17a067cbf2649f1adaeb (system-linux: fix race condition on bringing up wireless devices). After a reboot or a full restart of hostapd via 'wifi down; sleep 30; killall hostapd; sleep 5; wifi', only the first of 3 5G AP's is join t

Re: trouble with hostapd

2023-08-06 Thread e9hack
Am 04.08.2023 um 13:01 schrieb Felix Fietkau: Can you please build hostapd with CONFIG_WPA_MSG_MIN_PRIORITY=0 in the OpenWrt .config, add -d to the hostapd command in /etc/init.d/wpad Afterwards, please show me the relevant log part with the full context of the beacon command, so that I can f

Re: trouble with hostapd

2023-08-03 Thread e9hack
Am 03.08.2023 um 18:51 schrieb Felix Fietkau: On 03.08.23 15:34, e9hack wrote: Am 03.08.2023 um 14:35 schrieb Felix Fietkau: thanks for reporting this. Unfortunately I can't reproduce it myself based on your description. Can you please let me know what device you are using, and send m

trouble with hostapd

2023-08-03 Thread e9hack
I've trouble with 5GHz since the last changes related to hostapd. After boot or after a sequence 'wifi down; sleep 30; wifi' the 2GHz starts only. The 5GHz doesn't start. It looks like, that ACS isn't started. If I modify a value in the config related to 5GHz and execute 'wifi reload', sometime

Re: Wifi at the Luci web interface

2023-06-03 Thread e9hack
d config_add "{\"iface\":\"$primary_ap\", \"config\":\"${hostapd_conf_file}\"}")" ret="$?" [ "$ret" != 0 -o -z "$hostapd_res" ] && { wireless_setup_failed HOSTAPD_START_FAI

openvpn: Add more hotplug events

2023-05-21 Thread e9hack
Hi, adding '--ipchange "/usr/libexec/openvpn-hotplug ipchange $name"' results in floating the syslog and /tmp/log/openvpn-udp-server.log with the following message every 5sec: Sun May 21 09:39:48 2023 daemon.warn openvpn(udp_server_ipv6)[19494]: WARNING: Compression for sending and receiving

Re: Wifi at the Luci web interface

2023-05-19 Thread e9hack
Am 19.05.2023 um 15:00 schrieb e9hack: Am 19.05.2023 um 13:16 schrieb Daniel Golle: On Fri, May 19, 2023 at 10:11:39AM +0200, e9hack wrote: Hi, I face a strange behaviour. If I compile hostapd with openssl, the Luci web interface shows both wifis (2.4G+5G) as active and shows connected

Re: Wifi at the Luci web interface

2023-05-19 Thread e9hack
Am 19.05.2023 um 13:16 schrieb Daniel Golle: On Fri, May 19, 2023 at 10:11:39AM +0200, e9hack wrote: Hi, I face a strange behaviour. If I compile hostapd with openssl, the Luci web interface shows both wifis (2.4G+5G) as active and shows connected stations. If I compile hostapd with wolfssl

Wifi at the Luci web interface

2023-05-19 Thread e9hack
Hi, I face a strange behaviour. If I compile hostapd with openssl, the Luci web interface shows both wifis (2.4G+5G) as active and shows connected stations. If I compile hostapd with wolfssl, the Luci web interface shows only the 5G wifi as active and shows connected stations. The 2.4G wifi is

ramips build error

2023-05-08 Thread e9hack
Hi, I've trouble with commit: ecdb24814f540cb67cfa0ca64f32d76889853d15 ramips: add support for SNR-CPE-ME1 The build complains about a missing file mt7621_snr_snr-cpe-me1.dts. There is added a file mt7621_snr-cpe-me1.dts and it is added the device snr_snr-cpe-me1 to mt7621.mk. One of this lo

Build problems with packages which are using openssl

2023-04-23 Thread e9hack
Hi, in the past, it was possible to build packages, which are using crypto libraries like openssl, wolfssl or mbedtls, in parallel. One was build for the image, selected as , the others were build as module selected as . This doesn't work any more, if a package is selected for usage of openssl

bug in ddns-scripts

2023-03-10 Thread e9hack
Hi, it looks like there is a bug in ddns-scripts. In dynamic_dns_updater.sh: 70 case "$1" in 71 start) 72 if [ -n "$NETWORK" ]; then 73 start_daemon_for_all_ddns_sections "$NETWORK" 74 exit 0 75 f

hostapd + openssl issue

2023-03-08 Thread e9hack
Hi, I'm using hostapd with the radius server compiled in for wpa enterprise. This does no longer work since the openssl upgrade to 3.0. When a wpa enterprise client (Windows 10) tries to connect, the following error messages are shown in the log file: Wed Mar 8 00:15:05 2023 daemon.notice ho

question to block mount/umount

2022-12-14 Thread e9hack
Hi, I'm build OpenWrt with additional sub directories in /mnt. /etc/config/fstab contains an entry, to mount an usb drive to /mnt/1. If I execute 'block umount', the usb drive will be unmount and the subdirectory 1 in /mnt will be removed. Removing of the sub directory, is this the expected be

backport mac80211

2022-12-12 Thread e9hack
Hi, backports-6.1-rc8 build fails for ath9k due to a missing dependency: diff --git a/package/kernel/mac80211/ath.mk b/package/kernel/mac80211/ath.mk index 9af8c4665d..3931a455b5 100644 --- a/package/kernel/mac80211/ath.mk +++ b/package/kernel/mac80211/ath.mk @@ -201,7 +201,7 @@ define KernelPac

Re: firewall4 question

2022-11-26 Thread e9hack
Hi, I could solve the issue by my own. The "option dest lan" is missing in the blocking rule and the destination port must be 8443. Regards, Hartmut Am 26.11.2022 um 11:47 schrieb e9hack: Hi, I do redirect https traffic from wan to a specific ip address in lan with a diff

firewall4 question

2022-11-26 Thread e9hack
Hi, I do redirect https traffic from wan to a specific ip address in lan with a different port: config redirect option enabled '1' option name 'wan: Redirect HTTPS for .net:443 to my-box..lan:8443' option target 'DNAT' option src 'wan' option des

Re: mbedtls breaks build

2022-11-15 Thread e9hack
G_PACKAGE_px5g-mbedtls is not set # CONFIG_PACKAGE_rtty-mbedtls is not set # CONFIG_PACKAGE_cache-domains-mbedtls is not set # CONFIG_PACKAGE_mbedtls-util is not set Regards, Hartmut Am 15.11.2022 um 04:17 schrieb Glenn Strauss: On Mon, Nov 14, 2022 at 08:16:26PM +0100, e9hack wrote: Hi, I don&#

mbedtls breaks build

2022-11-14 Thread e9hack
Hi, I don't use mbedtls. Before this three commits libmbedtls: disable older RSA ciphers libmbedtls: enable crypto algorithms for hostap libmbedtls: build option submenu it did compile something, but no install package was generated. Now compilation fails: FAILED: CMakeFiles/mbedtls_test.dir/

iperf3/libiperf3 build issue

2022-09-14 Thread e9hack
Hi, commit "ae48be8e2157bc7c352b3b6d30c026fafdae4867 / iperf3: add shared libiperf library and link iperf3 dynamically" is wrong. The install rule for libiperf3 overrides the rule for iperf3. Iperf3 itself will not be installed. diff --git a/net/iperf3/Makefile b/net/iperf3/Makefile index db

Re: tcpdump looks broken

2022-09-08 Thread e9hack
(/[0-9]\/[0-9]\/[0-9]|0\.0\.0\.0/,"NX",e);sub(/\.$/,"",e);sub(/([0-9]{1,3}\.){3}[0-9]{1,3}/,"OK",e);gsub(/[^[:alnum:]\.-]/,"",e);if(e==""){e="err"};printf "%s\t%s\t%s\t%s\t%s\n",d,e,a,b,c}' >> "${rep

Re: tcpdump looks broken

2022-09-06 Thread e9hack
, + #endif +@@ -243,6 +258,7 @@ static const struct printer printers[] = #ifdef DLT_VSOCK { vsock_if_print, DLT_VSOCK }, #endif Regards, Hartmut Am 05.09.2022 um 09:05 schrieb Alexandru Ardelean: On Fri, Sep 2, 2022 at 5:35 PM e9hack wrote: Hi, it looks like, that tcpdump

tcpdump looks broken

2022-09-02 Thread e9hack
Hi, it looks like, that tcpdump (mini) is broken. It is used by adblock to generate reports. tcpdump -nn -p -s0 -i any port 53 version 4.99.1 16:11:26.070312 UNSUPPORTED 0x: 0800 0020 0001 0306 f8e4 e37c ...| 0x0010: 4db3 4500 0047 8910 80

Re: [PATCH] uqmi: fix compilation with GCC12

2022-06-11 Thread e9hack
The 'dangling pointer' issue can be fix without using malloc(). --- a/dev.c 2022-05-04 02:18:17.0 +0200 +++ b/dev.c 2022-06-11 08:48:21.185567953 +0200 @@ -206,6 +206,7 @@ void qmi_request_cancel(struct qmi_dev * int qmi_request_wait(struct qmi_dev *qmi, struct qmi_request *req)

Re: 5G wifi doesn't really work on my tp-link Archer C7 v2

2022-05-22 Thread e9hack
9k driver doesn't have this problem. Regards, Hartmut Am 19.05.2022 um 15:04 schrieb e9hack: Am 19.05.2022 um 14:07 schrieb Hauke Mehrtens: On 5/16/22 15:54, e9hack wrote: Hi, I've trouble with the following commit: commit    3aa96efa24c13c6e0aafa5ad826f3f95a3bd74f9 mac80211: Updat

Re: 5G wifi doesn't really work on my tp-link Archer C7 v2

2022-05-19 Thread e9hack
Am 19.05.2022 um 14:07 schrieb Hauke Mehrtens: On 5/16/22 15:54, e9hack wrote: Hi, I've trouble with the following commit: commit    3aa96efa24c13c6e0aafa5ad826f3f95a3bd74f9 mac80211: Update to version 5.15.33-1 After this commit the 5G wifi interface doesn't start properly. The

5G wifi doesn't really work on my tp-link Archer C7 v2

2022-05-16 Thread e9hack
Hi, I've trouble with the following commit: commit 3aa96efa24c13c6e0aafa5ad826f3f95a3bd74f9 mac80211: Update to version 5.15.33-1 After this commit the 5G wifi interface doesn't start properly. The interfaces are visible with ifconfig, but it isn't visible on air. To get 5G working, I must r

bug in busybox lock

2022-03-31 Thread e9hack
Hi, commit busybox: fix busybox lock applet pidstr buffer overflow looks wrong for me: --- a/package/utils/busybox/patches/220-add_lock_util.patch +++ b/package/utils/busybox/patches/220-add_lock_util.patch @@ -109,7 +109,7 @@ + if (!waitonly) { + lseek(fd,

retrieving the interface name via ip address

2022-03-03 Thread e9hack
Hi, it exist the two functions network_get_subnet and network_get_subnet6 in /lib/functions/network.sh. They return the first ip or ip6 address of a given interface. In my case: root@my-openwrt:~# . /lib/functions/network.sh; network_get_subnet subnet "lan"; echo $subnet; network_get_subnet6

Re: Firewall question

2022-02-09 Thread e9hack
Hi Jo, I do not understand however how the guest routing works in your network currently... Guest network is wifi only with wan access, but without access to the lan network. It is used for cell phones only, which does synchronize data with nextcloud via a ddns name over the wan address. Thi

Firewall question

2022-02-09 Thread e9hack
Hi, I've configured a lan and a guest network on my router. To the lan network is a linux server connected with an apache2 running. The apache2 provides nextcloud, gitweb and a few other things. Nextcloud and gitweb are reachable from the wan network. I do forward port 443 from wan to port 844

Re: procd/ujail behaviour

2021-12-10 Thread e9hack
Am 11.12.2021 um 08:02 schrieb e9hack: The easiest way to make the timeout configurable is to add an additional parameter to the ujail call if the timeout deviates from the default value. You did it implemented in this way already. Thanks! Regards, Hartmut

Re: procd/ujail behaviour

2021-12-10 Thread e9hack
Am 10.12.2021 um 15:18 schrieb Daniel Golle: It'd be nice if you can try the patch attached (to be put in package/system/procd/patches) and let me know what you think. Hi Daniel, the attached patch solves my issue with stubby. The easiest way to make the timeout configurable is to add an add

procd/ujail question

2021-12-10 Thread e9hack
Hi, usually the files for a jailed process must be given via procd_add_jail_mount or procd_add_jail_mount_rw. It looks like that this isn't necessary for hostapd. Why not? I can't found this two parameters in '/etc/init.d/wpad'. Regards, Hartmut _

procd/ujail behaviour

2021-12-10 Thread e9hack
Hi, I did update the init script for stubby, that it runs with ujail. Stubby does run, but it isn't possible to stop it via '/etc/init.d/stubby stop'. The ujail process is stopped, but stubby itself not. It looks like that it isn't possible to stop stubby with SIGTERM. Stubby will be ended b

Re: dnsmasq issue

2021-12-05 Thread e9hack
Hi, the scripts are executed. I did a mistake with path names for the logging files. But the issue with executing dnsmasq twice is still open. Regards, Hartmut Am 05.12.2021 um 12:13 schrieb e9hack+dnsmasq: Hi, I did configure a user script by adding: option dhcpscript '/etc/dn

dnsmasq issue

2021-12-05 Thread e9hack+dnsmasq
Hi, I did configure a user script by adding: option dhcpscript '/etc/dnsmasq-test.sh' The script and the main-script are never executed. I did add a line to both scripts, which shall log to /var/run/dnsmaq/test-{1|2}.log If I check afterwards if dnsmasq is running, I see two instances. One

mac address issue of tp-link wdr3600 and archer c7-v2

2021-11-15 Thread e9hack
Hi, I'm using two tp-link routers. Both are using the same mac address for one eth and one wlan interface: archer c7-v2: uboot 60:xx:xx:xx:xx:E6 eth060:xx:xx:xx:xx:E7 eth160:xx:xx:xx:xx:E6 wlan0 60:xx:xx:xx:xx:E4 5G wlan1 60:xx:xx:xx:xx:E6 2.4G wdr3600: uboot C0:x

dnsmasq error message related to host file

2021-11-01 Thread e9hack
Hi, after commit "dnsmasq: improve init script", I get the following error in the log file: Sun Oct 31 14:08:11 2021 user.err : jail: creat(/tmp/ujail-pbMGCD/tmp/hosts/dhcp.main) failed: Read-only file system Sun Oct 31 14:08:11 2021 user.err : jail: creat(/tmp/ujail-iEpgOj/tmp/hosts/dhcp.gue

Re: Wifi bug

2021-09-27 Thread e9hack
Am 27.09.2021 um 19:02 schrieb Felix Fietkau: Fix pushed, thanks for testing. - Felix It fixes my issue too. In bonding_enable_port() and bridge_enable_member() is in the middle a 'return -1'. In all error cases before and afterwards is located a 'goto ...' to revert some things. Is 'retu

Re: Wifi bug

2021-09-27 Thread e9hack
Am 27.09.2021 um 14:01 schrieb Felix Fietkau: Normally it should be active by default. Is CONFIG_KERNEL_ELF_CORE set in your .config? It was not activated, but the output from gdb looks not so helpful: hb@vbox-linux6:~/src/openwrt/LEDE/archer-C7-ath79-5.10.x-dsa/build_dir/target-mips_74kc_musl

Re: Wifi bug

2021-09-27 Thread e9hack
Am 27.09.2021 um 12:59 schrieb Felix Fietkau: Hi, On 2021-09-26 14:48, e9hack wrote: Do you see a page fault from netifd in the log? If it does crash, it is restarted by procd. This does restart the network stack. If I start netifd with strace, I got this lines immediately before the page

Re: Wifi bug

2021-09-26 Thread e9hack
Am 26.09.2021 um 12:54 schrieb Hannu Nyman: e9hack kirjoitti 26.9.2021 klo 10.02: Am 24.09.2021 um 22:04 schrieb e9hack: In the past (a few days ago), it was possible to disable or shut-down wifi by introduce the command 'wifi down'. This doesn't work currently. After some s

Re: Wifi bug

2021-09-26 Thread e9hack
Am 24.09.2021 um 22:04 schrieb e9hack: In the past (a few days ago), it was possible to disable or shut-down wifi by introduce the command 'wifi down'. This doesn't work currently. After some seconds, wifi is start again. It may be related to a page fault of netifd. Ne

Wifi bug

2021-09-24 Thread e9hack
In the past (a few days ago), it was possible to disable or shut-down wifi by introduce the command 'wifi down'. This doesn't work currently. After some seconds, wifi is start again. Regards, Hartmut ___ openwrt-devel mailing list openwrt-devel@lists

bug in base-files: add option to make /var persistent ?

2021-08-23 Thread e9hack
Hi, I didn't select 'make /var persistent' but /var is generated persistent. I think in the Makefile the test for CONFIG_TARGET_ROOTFS_PERSIST_VAR = n must be changed to y (or empty). --- a/package/base-files/Makefile +++ b/package/base-files/Makefile @@ -181,12 +181,12 @@ define Package/base-

dnsmasq: rework jail mounts

2021-08-01 Thread e9hack
Hi, in last update of jail mounts, this part looks wrong: --- a/package/network/services/dnsmasq/files/dnsmasq.init +++ b/package/network/services/dnsmasq/files/dnsmasq.init @@ -10,6 +10,7 @@ ADD_LOCAL_DOMAIN=1 ADD_LOCAL_HOSTNAME=1 ADD_WAN_FQDN=0 ADD_LOCAL_FQDN="" +EXTRA_MOUNT="" BASECONFIG

some issues in /etc/init.d/dnsmasq

2021-08-01 Thread e9hack
Hi, I found a few issues in /etc/init.d/dnsmasq - variable EXTRA_MOUNT must be reset at beginning of dnsmasq_start to avoid to add the previous content to the following configurations - /dev/null must be jail mount read/write (see the next too) - jail mount for /dev/null and /dev/random isn't n

dnsmasq ujail fs problem

2021-07-30 Thread e9hack
Hi, I'm using dnsmasq together with ujail. Since some time, I got an error message in the log: Fri Jul 30 13:05:10 2021 kern.warn kernel: [ 3149.592061] ext4 filesystem being remounted at /tmp/ujail-NOnHik/tmp/dhcp.leases supports timestamps until 2038 (0x7fff) Fri Jul 30 13:05:10 2021 us

Re: convert mtd-mac-address to nvmem implementation

2021-07-19 Thread e9hack
Am 19.07.2021 um 16:41 schrieb Ansuel Smith: The dts has been migrated with a script and we decided to remove the dtsi that caused some compilation problem. We still need to take a decision for the device that have dtsi that declare mtd-mac-address using partition tag declared in user dts (dtsi u

Re: convert mtd-mac-address to nvmem implementation

2021-07-19 Thread e9hack
Am 19.07.2021 um 16:24 schrieb Ansuel Smith: hi, some dtsi still use the old implementation as they have to be manually migrated. Does it cause any problem ? I don't see a problem. I did check the dtsi files of the two routers which I'm using. One is migrated and the other one was still missin

convert mtd-mac-address to nvmem implementation

2021-07-19 Thread e9hack
Hi, it looks like, that qca9558_tplink_archer-c.dtsi is missing in commit abc17bf (ath79: convert mtd-mac-address to nvmem implementation). Regards, Hartmut ___ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mail

wrong activation of internal radius server

2021-06-04 Thread e9hack
Hi, OpenWrt has been supporting hostapd's internal radius server for a few days. For several years there has been a line in the init-script that activates the internal radius server too. I think this is wrong (from hostapd.sh): [ -n "$wps_possible" -a -n "$config_methods" ] && {

Re: Luci->Network->Interfaces is broken

2021-06-01 Thread e9hack
Am 31.05.2021 um 19:01 schrieb Jo-Philipp Wich: Hi, This is the reason. Long time ago, I did select the option 'Remove ipkg/opkg status data files in final images' to reduce the image size. Since such an option can be selected, LuCI cannot assume, that the file netifd.control exists. fixed.

Re: Luci->Network->Interfaces is broken

2021-05-31 Thread e9hack
Am 31.05.2021 um 16:36 schrieb e9hack: LuCI commit 17af33e luci-mod-network: migrate network config depending on netifd version does introduce to read the file /usr/lib/opkg/info/netifd.control. I don't have this file on my router. Can that be the reason for the error 'Resource

Re: Luci->Network->Interfaces is broken

2021-05-31 Thread e9hack
Am 31.05.2021 um 15:52 schrieb e9hack: Am 31.05.2021 um 07:18 schrieb Rafał Miłecki: On 30.05.2021 18:02, e9hack wrote: Am 30.05.2021 um 15:41 schrieb e9hack: Am 30.05.2021 um 09:59 schrieb Rafał Miłecki: On 29.05.2021 23:28, e9hack wrote: I'm using a TP-Link Archer C7 v2 router. For

Re: Luci->Network->Interfaces is broken

2021-05-31 Thread e9hack
Am 31.05.2021 um 07:18 schrieb Rafał Miłecki: On 30.05.2021 18:02, e9hack wrote: Am 30.05.2021 um 15:41 schrieb e9hack: Am 30.05.2021 um 09:59 schrieb Rafał Miłecki: On 29.05.2021 23:28, e9hack wrote: I'm using a TP-Link Archer C7 v2 router. For every build, I do update my sandbox wit

Re: Luci->Network->Interfaces is broken

2021-05-30 Thread e9hack
Am 30.05.2021 um 15:41 schrieb e9hack: Am 30.05.2021 um 09:59 schrieb Rafał Miłecki: On 29.05.2021 23:28, e9hack wrote: I'm using a TP-Link Archer C7 v2 router. For every build, I do update my sandbox with the current OpenWrt repository and the feeds. The first not working build from

Re: Luci->Network->Interfaces is broken

2021-05-30 Thread e9hack
Am 30.05.2021 um 09:59 schrieb Rafał Miłecki: On 29.05.2021 23:28, e9hack wrote: I'm using a TP-Link Archer C7 v2 router. For every build, I do update my sandbox with the current OpenWrt repository and the feeds. The first not working build from 27.05. shows in Luci: OpenWrt SNAPSHOT r

Re: Luci->Network->Interfaces is broken

2021-05-29 Thread e9hack
Regards, Hartmut Am 29.05.2021 um 22:44 schrieb Hauke Mehrtens: On 5/29/21 10:25 PM, e9hack wrote: Hi, it looks like that Luci->Network->Interfaces is broken. It shows a NotFountError (Resource not found) message. My build from 22.05. forces me to convert something related to network confi

Luci->Network->Interfaces is broken

2021-05-29 Thread e9hack
Hi, it looks like that Luci->Network->Interfaces is broken. It shows a NotFountError (Resource not found) message. My build from 22.05. forces me to convert something related to network configuration. Afterwards, this dialogue shows the interface configuration. Starting with build from 27.05.

libgpg-err build error

2021-05-13 Thread e9hack
Hi, I've trouble to build libgpg-err since the update from 1.39 to 1.42. Compilation does fail because the auto generated file gpg-error.h contains wrong syntax in macro GPGRT_LOCK_INITIALIZER: #define GPGRT_LOCK_INITIALIZER {1,{{\c 0\c ,\0c 0\c ,\0c The sequence is generated by gen-lock

Re: Luci / Custom Commands

2021-04-16 Thread e9hack
Am 16.04.2021 um 08:49 schrieb Hannu Nyman: e9hack kirjoitti 16.4.2021 klo 8.37: Hi, I want like to add the following command to Luci/Custom Commands: echo "/" > /proc/net/xt_recent/SSH_BLOCK But I can only add: echo "> /proc/net/xt_recent/SSH_BLOCK" How can

Luci / Custom Commands

2021-04-15 Thread e9hack
Hi, I want like to add the following command to Luci/Custom Commands: echo "/" > /proc/net/xt_recent/SSH_BLOCK But I can only add: echo "> /proc/net/xt_recent/SSH_BLOCK" How can I do it? Regards, Hartmut ___ openwrt-devel mailing list openwrt-deve

  1   2   >