Commit Graph

7017 Commits (2024.2)

Author SHA1 Message Date
pedro b4fbf52fd5 httpd: httpd.c: check if pid file is writable 1 year ago
pedro a5dbacfd72 httpd: config.c: do not close temp file created by mkstemp before using it; cosmetic 1 year ago
pedro a62c6a5812 www: cosmetic 1 year ago
pedro 3b4266dd59 build: rc: sync to MIPS branch 1 year ago
pedro 64e75a2ab8 services.c: haveged logs to syslog on its own 1 year ago
pedro 1f1c1a1cd0 others: switch4: fix PIN status recognition on some modems 1 year ago
pedro 118a48add5 others: improve cru locking to prevent concurrent updates
There are reported cases of cron jobs being lost under heavy cru
activity (concurrent executions). Protect against concurrent add
or deletes with a more robust locking mechanism using flock.

File descriptor 278 is used as it represents the letters C-R-U
on a telephone keypad.

Ref: ac1badcd0b
1 year ago
pedro 1dc55282e6 busybox: always add flock applet 1 year ago
pedro 3a106c019c rc: services.c: block Apple private relay 1 year ago
pedro 7a76c78b20 openvpn_plugin_auth_nvram: Makefile: add -fPIC to CFLAGS 1 year ago
pedro 313f4a0fde build: sync to MIPS branch 1 year ago
pedro 1114d7c13b toolchain: refresh toolchain on Debian 12 with newer version of gmp, m4 and mpfr 1 year ago
pedro f508ae40a7 build: add TOR again to the o (Custom) target 1 year ago
pedro e54974b307 build: Makefile: sync to MIPS branch 1 year ago
pedro 2120955e10 build: Makefile: remove MEDIA_SERVER_STATIC; correct INSTALL_ZLIB and INSTALL_SQLITE 1 year ago
pedro 608f8a5dcc build: fix IPT_LIB_DIR variable on Debian 12 1 year ago
pedro 58abcb9df0 build: Makefile: mysql: at last build it with system zlib; do not waste time for mysql-test, support-files, sql-bench and man subdirs 1 year ago
pedro cc7f6db019 build: Makefile: tune getdns recipe 1 year ago
pedro 42561410b3 build: Makefile: tune transmission recipe 1 year ago
pedro 5fc6a2f36e build: Makefile: tune libid3tag recipe 1 year ago
pedro 07b8b0c190 build: Makefile: add prefix to libevent recipe 1 year ago
pedro e6d4cad0ee build: Makefile: fix iproute entry in roldconf target 1 year ago
pedro d84eb59d84 build: Makefile: clean-up 1 year ago
pedro 07ed34a854 build: Makefile: tune apcupsd recipe (smaller size) 1 year ago
pedro 86ee4a178e build: Makefile: tune libcurl recipe (remove not used stuff - smaller size) 1 year ago
pedro eeee730749 build: Makefile: cosmetic in dnsmasq recipe 1 year ago
pedro 15784aa5a2 build: cstats/httpd/mdu/rc/rstats: fix link order in Makefile 1 year ago
pedro 1231541fd2 rc: add haveged as a service 1 year ago
pedro 5d6347bdcd rc: services.c: irqbalance: add pid file, remove unneeded subdir 1 year ago
pedro 781ac46402 build: implement haveged
- based on @RMerlin work - thanks
1 year ago
pedro 06898b2eaf haveged: add build recipes and patch
- based on @RMerlin work - thanks
1 year ago
pedro 83e314450d build: add haveged-1.9.18 to the tree 1 year ago
pedro 24cd272f85 nvram: fix compiler warning 1 year ago
pedro 751bbc2444 build: Makefile: fixes for glib2/pcre2 1 year ago
pedro 4f07181036 build: shared: Makefile: fix typo 1 year ago
pedro 198ebcd89c build: cstats/httpd/mdu/mssl/nvram/rstats/shared: some improvements to Makefile 1 year ago
lancethepants 7d9b0c95e5 busybox: ntpd: increase "periodic" script minimum run frequency to 60s.
rc: services.c: use safe_getenv()
1 year ago
pedro 541fd150c4 patches: busybox: cosmetic in 150 patch 1 year ago
pedro 0db93b038c build: Makefile: update some recipes 1 year ago
pedro c22a82fc26 libpng: update to 1.6.43 1 year ago
lancethepants 5af29144a4 www: basic-time.asp: Show ntp info 1 year ago
M_ars 18fe58a885 kernel: mtd: nand: Add Winbond manufacturer
Solve/Adjust "Unknown NAND" for Netgear R7000 (v1.0.27 CFE and nvram "winbond_flash" variable) and Tenda AC18
Jan  1 01:00:04 FT-Router kern.info kernel: Northstar brcmnand NAND Flash Controller driver, Version 0.1 (c) Broadcom Inc. 2012
Jan  1 01:00:04 FT-Router kern.info kernel: NAND device: Manufacturer ID: 0xef, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)

see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4077ce5871304f8a78f80b74b18b6052a410f1a
1 year ago
M_ars 29ede4d50f kernel: mtd: nand: add Macronix manufacturer
Solve/Adjust "Unknown NAND"
Jan  1 01:00:04 FT-Router kern.info kernel: Northstar brcmnand NAND Flash Controller driver, Version 0.1 (c) Broadcom Inc. 2012
Jan  1 01:00:04 FT-Router kern.info kernel: NAND device: Manufacturer ID: 0xc2, Chip ID: 0xf1 (Unknown NAND 128MiB 3,3V 8-bit)

see https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c1257b4798d48b73ad1a9ca359504cd49caefa0d
1 year ago
M_ars 126bc0cfa8 SDK6 / SDK7 / SDK714: nand: Adjust/fix Winbond manufacturer ID
Note: see Netgear SRC for example or google or https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a4077ce5871304f8a78f80b74b18b6052a410f1a
1 year ago
pedro 936dc02b1e www: Makefile: move nginx checker for web-nginx.asp before its possibly deletion 1 year ago
pedro 376356c750 build: update glib to 2.74.7 with openwrt patches; add/change recipes; integrate updated/added glib and pcre2
- now we need something newer instead of crappy nocatsplash to get rid of the old glib
1 year ago
pedro bf004c12d2 build: add pcre2-10.37 to the tree 1 year ago
pedro ef338ea25a openvpn: update to 2.6.9 1 year ago
pedro d41fca8630 libffi: update to 3.4.6 1 year ago
pedro cc12612af9 build: Makefile: tune gettext-tiny recipe 1 year ago
pedro 823e077265 build: Makefile: tune nocat recipe 1 year ago
pedro a5aa20a728 build: Makefile: tune libffi recipe 1 year ago
pedro 2aed643a84 build: Makefile: tune tinc recipe 1 year ago
pedro 6f902f8b1f meson: update to 1.3.2 1 year ago
pedro 23c2c5da68 build: Makefile: we need libid3tag static library for libfoo.pl in MIPS 2 years ago
pedro 0caaf6b4ac dnsmasq: update to b8ff4bb (2024-02-22) snapshot 2 years ago
pedro 6feea3321f nginx: update to 1.25.4 2 years ago
pedro 66490cf2fd patches: nginx: fix little endian recognition, solve other issues 2 years ago
pedro 3a4876462f build: Makefile: tune nginx recipe; cosmetic 2 years ago
pedro f9979c9a86 www: web-nginx.asp: correction in notes 2 years ago
pedro 637703138c php8: use php-fpm instead of spawn-fcgi 2 years ago
pedro f65db9ac0e www: admin-access.asp: add placeholder to TTB save folder 2 years ago
pedro 1a3629c931 www: adminer.php: fix error message "Trying to access array offset on null" on php 8 2 years ago
pedro 0c76d7ad0a patches: php: rename and tune 101 -> 1011 patch 2 years ago
pedro abb92ebec8 build: Makefile: php: do not build phpdbg module 2 years ago
pedro d5c3c8cd5b php: update to 8.3.3 2 years ago
pedro 6a2430139b build: Makefile: php: do not build opcache module 2 years ago
pedro dbb5f38293 php-8.3.1: add openwrt patches 2 years ago
pedro d4fc727844 build: Makefile: tune php recipe again 2 years ago
pedro 85601da0a4 build: Makefile: sync to MIPS branch 2 years ago
pedro ff7b8d8c17 spawn-fcgi: update to 1.6.5 2 years ago
pedro cb6b954e2f rc: nginx.c: always try to kill php-cgi at nginx stop 2 years ago
pedro c4119a4375 build: Makefile: ysnc to MIPS branch 2 years ago
pedro 59000113e4 build: Makefile: fix pcre recipe 2 years ago
pedro 47cb9029b6 build: switch to php-8.3.1 2 years ago
pedro d3ce8d3893 build: add php-8.3.1 to the tree 2 years ago
pedro 11757effcd build: Makefile: tune pcre/php/nginx/glib2/irqbalance recipes 2 years ago
pedro 06154368d1 build: Makefile: tune libxml2 recipe 2 years ago
pedro c51c797842 build: move php-7.2.34 to php7 directory 2 years ago
pedro 5a07bb3672 build: Makefile: use libzip for php compilation 2 years ago
pedro 0251e90de9 build: add libzip-1.10.1 to the tree 2 years ago
pedro dd51026dfe GUI: Advanced: DHCP/DNS/TFTP: fix url to dnsmasq manual page 2 years ago
pedro 0c97357f68 busybox: update form the upstream
- time: fix max resident set size unit: https://git.busybox.net/busybox/commit/?id=01e80ff9ebaf42f2fb9b4ddddc75d37bc9a403aa
2 years ago
pedro 9bc8aefae2 busybox: update from the upstream
- util-linux/lsusb.c: print manufacturer/product strings if available: https://git.busybox.net/busybox/commit/?id=5e0e54827fb0fa80d2c894eb67e8696921095935
2 years ago
lancethepants b8eb7240eb Merged in services (pull request #149)
rc: services.c: start_ipv6_tunnel(): Fix undefined behavior in snprintf.
2 years ago
pedro 79a0e2c20c others: sysinfo: fix WL adapter name for 3rd wireless 2 years ago
lancethepants 25a2b0f9cd rc: services.c: start_ipv6_tunnel(): Fix undefined behavior in snprintf.
ip cannot be used as both a parameter and destination in snprintf.
Create instead a temporary variable to fix UB.
2 years ago
pedro b97a1a72f1 Merge branch 'arm-master' of https://bitbucket.org/pedro311/freshtomato-arm into arm-master 2 years ago
lancethepants 57832c80f3 Merged in openvpn (pull request #148)
rc: openvpn.c: start_ovpn_client(): Initialize route_mode variable.
2 years ago
lancethepants 7fd7aa0659 rc: openvpn.c: start_ovpn_client(): Initialize route_mode variable.
It may be uninitialized during the compare on line #374.
Found by cppcheck.
2 years ago
pedro 38a0e87d9f dnsmasq: update to 2.90 2 years ago
pedro cac0841f65 build: expat: fix build break - revert upstream commit 7384c88 2 years ago
lancethepants 1cd9c00b50 Merged in nfs (pull request #147)
rc: nfs.c: Also free(buf) when returning on failed fopen.
2 years ago
lancethepants d58892779f rc: nfs.c: Also free(buf) when returning on failed fopen.
Detected by cppcheck as a memory leak.
2 years ago
lancethepants 0b0ad0e78a rc: ftpd.c: close *fp before bailing when *f fails to open.
Detected by cppcheck as a resource leak.
2 years ago
lancethepants 66aa7a7840 Merged in arm-master (pull request #145)
rc: mysql.c: Don't attempt to stop mysql if it's not running.
2 years ago
pedro d91fc0e605 dnsmasq: update to 2.90test4 2 years ago
pedro 83dd396afd build: Makefile: fix avahi recipe
- thanks @WildFireSG
2 years ago
pedro 714df28feb expat: update to 2.6.0 2 years ago
pedro 0b1c6b1be7 build: libxml2: fix build break 2 years ago
lancethepants 3b1e29bca0 rc: mysql.c: Don't attempt to stop mysql if it's not running. 2 years ago
pedro 8b2e583dbe dnsmasq: update to 762a3f2 (2024-01-07) snapshot 2 years ago
pedro e28c080cf3 tinc: update to 7eeb292 (2024-01-22) snapshot 2 years ago
pedro 7de3b2cc4f libxml2: update to 2.12.5 2 years ago
pedro 95d2b1b241 libpng: update to 1.6.42 2 years ago
pedro a043590970 libcurl: update to 8.6.0 2 years ago
pedro 30e63b279d zlib: update to 1.3.1 2 years ago
pedro d78344aa60 build: Makefile: libcurl requires zlib to properly buid init files 2 years ago
pedro 0f19f68b34 Bump version to 2024.1 2 years ago
pedro 254a1a71d5 www: tools-shell.asp: fix missing closing bracket for termOpen() function
- thanks @lancethepants / @WildFireSG
2 years ago
pedro 452a551f7d www: tomato.css: fix upgrade page 2 years ago
pedro 590156fd7f www: vpn-wireguard.asp: fix for commit 26f7e85 2 years ago
pedro 085349ab51 www: tools-shell.asp: switch to our addEvent() function for better compatibility 2 years ago
pedro 26f7e85dd6 www: vpn-wireguard.asp: fix some issues again 2 years ago
pedro 273de48d50 www: move escapeText() function to tomato.js script 2 years ago
pedro 4ecd7c3c4d GUI: VPN: Tinc: tune a little status page 2 years ago
pedro 7ed83f3afd www: tomato.js: cosmetic 2 years ago
pedro 0c117a646e ntfs-3g: update to 75dcdc2 (2023-06-13) snapshot 2 years ago
pedro 422a2102ab libjpeg-turbo: update to 3.0.2 2 years ago
pedro 414a41d2d2 libpng: update to 1.6.41 2 years ago
pedro 581d1f0c20 sqlite: update to 3.45.1 2 years ago
pedro b28c8e07e2 GUI: VPN: Wireguard: Status: fix display on Advanced themes 2 years ago
pedro b4f913fda0 www: vpn-wireguard.asp: cosmetic
- thanks @rs232
2 years ago
pedro 7418dac73d rc: wireguard.c: convert functions to static 2 years ago
pedro 6daa4555ce www: vpn-wireguard.asp: improve the display of the peer table by shortening the public key 2 years ago
pedro 570843c69d www: vpn-wireguard.asp: fix importing endpoint and dns from the config file 2 years ago
pedro 4ef310d838 www: vpn-wireguard.asp: cosmetic
- thanks @rs232
2 years ago
pedro b170ce6aa1 kernel: wireguard: update module to 1.0.20220627
- some changes of course needed, because we can't port all functions/structures to FreshTomato
2 years ago
pedro 85df37672c httpd: wireguard.c: fix compiler warnings 2 years ago
pedro 9ff6ee6b04 build: Makefile: fix typo 2 years ago
pedro db1d3d7195 rc: wireguard.c: fix an issue with the generated configuration for server - the endpoint did not include a port causing errors when starting it 2 years ago
pedro 07dc2973bd www: vpn-wireguard.asp: fix an issue with the generated configuration for peers - the endpoint did not include a port causing errors when starting them 2 years ago
pedro 856a974652 build: Makefile: on %-clean, do not forget to remove staged dirs 2 years ago
pedro c8fa8c5c00 www: vpn-wireguard.asp: cosmetic 2 years ago
pedro 6f34e46f82 build: Makefile: sync to MIPS branch 2 years ago
pedro 5ff0469d29 rc: wireguard.c: clean-up 2 years ago
pedro 0e090a75b8 rc: wireguard.c: fix firewall rules 1/2
- every time on restart of firewall the wireguard rules was rejected, so this has been fixed
- default routing (route-default.sh) also needs improvement, but since it is not currently used (until kernel changes) it will be fixed later
2 years ago
pedro dd03153ed0 libubox: update to 6339204 (2023-12-18) snapshot 2 years ago
pedro 3ab46cba31 iproute2: add VERSION file (for the record only) 2 years ago
pedro c7946b176c www vpn-wireguard.asp: cosmetic 2 years ago
pedro 8ec79d221d others: clean-up, cosmetic 2 years ago
pedro 44a8f75920 rc: wireguard.c: do not try to add firewall rules if wg-quick fails (because of bad custom config file) - stop immediately 2 years ago
pedro 3ff01f1746 rc: wireguard.c: fix route-default.sh script one more time 2 years ago
pedro 6c33656f78 www: vpn-wireguard.asp: fix IP calculated from 'Interface IP' for 'Peer IP' and Netmask regarding 'Peer Communication' type 2 years ago
pedro e12892563c www: vpn-wireguard.asp: fix 'Respond to DNS' value, which was doubled on every save of the page 2 years ago
pedro 8c4bb351d6 www: vpn-wireguard.asp: cosmetic 2 years ago
pedro a954433c09 rc: wireguard.c: tune the call of route-default.sh script 2 years ago
pedro 2f58c5b499 rc: wireguard.c: fix logs in stop_wireguard() 2 years ago
pedro 3227b86ed4 rc: wireguard.c: optimize start_wireguard() function 2 years ago
pedro 88f131648f rc: wireguard.c: tune stop_wg_all() a little 2 years ago
pedro 727416f652 rc: wireguard.c: add start/stop event of wireguard to syslog 2 years ago
pedro 77d3e830c2 rc: wireguard.c: fix use of wg-quick with additional config file, convert two functions to one to save some space; cosmetic 2 years ago
pedro 5cee20bd6c rc: snmpd.c: log start/stop events 2 years ago
pedro 35d5d3ae17 dnsmasq: update to aa9e965 (2024-01-21) snapshot 2 years ago
pedro 9019424bd0 wireguard-tools: update to 1.0.20210914
- also apply fixes:
https://git.zx2c4.com/wireguard-tools/commit/?id=13f4ac4cb74b5a833fa7f825ba785b1e5774e84f
https://git.zx2c4.com/wireguard-tools/commit/?id=b4f6b4f229d291daf7c35c6f1e7f4841cc6d69bc
https://git.zx2c4.com/wireguard-tools/commit/?id=71799a8f6d1450b63071a21cad6ed434b348d3d5
https://git.zx2c4.com/wireguard-tools/commit/?id=e6888dd74ee4215449517f43aba9c11a1633ea4e
2 years ago
pedro 224f2607a3 www: vpn-wireguard.asp: one more typo fix 2 years ago
pedro acf5549a62 www: vpn-wireguard.asp: fix typos 2 years ago
pedro aca48229ab rc: wireguard.c: fix condition for check if interface exists 2 years ago
pedro 6a238d0856 www: vpn-client.asp: try not to use eval() 2 years ago
pedro 8ff0c373e4 www: vpn-server.asp: try not to use eval() 2 years ago
pedro 3fe10e8bec www: vpn-wireguard.asp: try not to use eval(); cosmetic 2 years ago
pedro e963ae5193 mwwatchdog: tune cktracert() checker once again - it needs max hop value set to ~10 2 years ago
pedro c4b4a293cd GUI: VPN: Wireguard: Scripts: add note they not working yet 2 years ago
pedro 878f8b174b rc: wireguard.c: clean-up, cosmetic, use define for wg subdirs 2 years ago
pedro 47ebc3c4fe libsodium: update to latest 1.0.19-stable 2 years ago
pedro 51bcd236a4 libxml2: update to 2.12.4 2 years ago
pedro 67e49e6660 sqlite: update to 3.45.0 2 years ago
pedro d96da37055 switch4g/wwansignal: add timeouts to uqmi calls 2 years ago
pedro 27fe11c339 uqmi: update to c3488b8 (2024-01-16) snapshot 2 years ago
pedro 5a9fb22ebe rc: openvpn.c: we do not use stop_ovpn_eas() now at all, so comment it 2 years ago
pedro b33a5fbfcc rc: update how wireguard is called on router start/reboot 2 years ago
pedro e6e5414759 rc: do not expose wireguard functions elsewhere if we don't need them 2 years ago
pedro ce3f03dcf0 wsdd2: update from the upstream
- Fix interface selection: 50f97a909d
2 years ago
pedro 0d352c5e7a patches: busybox: cosmetic 2 years ago
pedro f317cfeb64 busybox: updates from the upstream
- syslogd: decrease stack usage, ~50 bytes: https://git.busybox.net/busybox/commit/?id=02378ce20c6d2df062357b6d60fc440609d203be
- udhcp: Avoid leaking uninitialized/stale data: https://git.busybox.net/busybox/commit/?id=e265c8d4c039729f2a68f3b1fb589c13c38d86f8
2 years ago
pedro 53d2169a15 busybox: updates from the upstream
- libiproute: fix filtering ip6 route by table id: https://git.busybox.net/busybox/commit/?id=6ce1dc2e91398145633ceaff7a6fecc786826277
- awk: fix use-after-realloc (CVE-2021-42380), closes 15601: https://git.busybox.net/busybox/commit/?id=5dcc443dba039b305a510c01883e9f34e42656ae
- shell: avoid segfault on ${0::0/0~09J}. Closes 15216: https://git.busybox.net/busybox/commit/?id=d417193cf37ca1005830d7e16f5fa7e1d8a44209
2 years ago
pedro 02b92f2f94 build: kernel: fix kernel warnings at generated shared_ksyms.c 2 years ago
M_ars 92784511c3 mdu: use libcurl for all ARM images
Note: VPN image size + ~200 KByte

Note 2: use the same code for all arm images
see https://www.linksysinfo.org/index.php?threads/ddns-does-not-work-on-tomato-2023-5-dnsomatic.78367/page-2#post-347322
2 years ago
M_ars 11b90a17c9 GUI: advanced-wireless.asp - add Inactivity Timer option for Media Bridge Mode (60 up to 3600 sec)
Note: Only visible with Media Bridge Mode (the only use-case); Default is 0 (disabled/Off)

Note 2: only for ARM branch
2 years ago
pedro 556bb0facb rc: wireguard.c: enable wg_flush_iface_addr(); it looks like everything's fine 2 years ago
pedro 6ebe5b78e8 rc: wireguard.c: cosmetic 2 years ago
pedro 46fbcf6453 rc: wireguard.c: also fix port for FW script on WG stop 2 years ago
pedro e2bec5b842 rc: wireguard.c: fix port for FW script 2 years ago
pedro 4d9a2236b1 rc: wireguard.c: fix if/fi condition in fw-del.sh script 2 years ago
pedro 25cd081c15 rc: wireguard.c: properly implement conversion character %s in fprintf of route-default.sh script 2 years ago
pedro e07ea524a3 build: Makefile: fix compilation on Debian 12 2 years ago
pedro 20351f5518 Revert "GUI: VPN: PPTP Server: increase the number of possible simultaneously connected pptp clients to 20"
This reverts commit 65b39a6aa7.
2 years ago
pedro 65b39a6aa7 GUI: VPN: PPTP Server: increase the number of possible simultaneously connected pptp clients to 20 2 years ago
pedro 8664ab8f5d GUI: Administration: Bandwidth Monitoring: cosmetic 2 years ago
pedro 663936513e GUI: About: update copyright date 2 years ago
pedro f1fbf46a1c miniupnpd: update to 2.3.4 2 years ago
pedro 8fa2f986df dropbear: update to 41a6abc (2023-12-31) snapshot 2 years ago
pedro c118ede3ce wireguard: wg-quick: fix syntax error
- see: https://www.linksysinfo.org/index.php?threads/wireguard-on-freshtomato.76295/page-19#post-347565
2 years ago
pedro 94bcc5c170 rc: wireguard.c: fix compiler warning 2 years ago
pedro 8a62c64265 www: advanced-firewall.asp: cosmetic in Notes 2 years ago
lancethepants 3bf5519f51 rc: restrict.c: web netfilter module not supported for IPv6 on arm. 2 years ago
pedro b85ffa73bb build: Makefile: tune minidlna recipe 2 years ago
pedro b8675dd287 libid3tag: delete no more needed patches 2 years ago
pedro 677eea4399 libid3tag: update to 0.16.3
- maintained updated source: https://codeberg.org/tenacityteam/libid3tag
2 years ago
pedro e1aa6944c3 build: libxml2: fix build break 2 years ago