Commit Graph

5617 Commits (2022.1)

Author SHA1 Message Date
pedro 866f6bc4a8 sqlite: update to 3.37.2 4 years ago
pedro 3e98055ae1 nginx: update to 1.21.6 4 years ago
pedro 8b561cbc8e nano: update to 6.2 4 years ago
pedro e576d6f48f libxml2: update to 2.9.13 4 years ago
pedro e72635523f libsodium: update to latest 1.0.18-stable 4 years ago
pedro de305748bc libcurl: update to 7.81.0 4 years ago
pedro 322902bc20 libcurl: update CA certificate bundle as of 2022-02-01 4 years ago
pedro 1b0679bbca GUI: USB and NAS: BitTorrent Client: correct drop down list description 4 years ago
snowman58 da3a274428 Add flagspec for 512M DRAM, seperate build for xr300/r6700v3 with 512M DRAM 4 years ago
pedro dd02fa0e8d Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro 5e0ddb0b6f Revert "kernel: make xt_recent built-in instead of module"
This reverts commit 26d50f097b.
4 years ago
pedro 50062dedc0 kernel: netfilter: x_table: speedup compat operations
One iptables invocation with 135000 rules takes 35 seconds of cpu time
on a recent server, using a 32bit distro and a 64bit kernel.

We eventually trigger NMI/RCU watchdog.

INFO: rcu_sched_state detected stall on CPU 3 (t=6000 jiffies)

COMPAT mode has quadratic behavior and consume 16 bytes of memory per
rule.

Switch the xt_compat algos to use an array instead of list, and use a
binary search to locate an offset in the sorted array.

This halves memory need (8 bytes per rule), and removes quadratic
behavior [ O(N*N) -> O(N*log2(N)) ]

Time of iptables goes from 35 s to 150 ms.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ref: 255d0dc340
4 years ago
pedro 05c0112727 kernel: netfilter: xt_hashlimit: fix namespace destroy path
recent_net_exit() is called before recent_mt_destroy() in the
destroy path of network namespaces. Make sure there are no entries
in the parent proc entry xt_recent before removing it.

Signed-off-by: Vitaly E. Lavrov <lve@guap.ru>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ref: 32263dd1b4
4 years ago
pedro c5b6db62a2 Revert "kernel: make xt_recent built-in instead of module"
This reverts commit 3f84abd6ca.
4 years ago
pedro b6d6faf712 kernel: netfilter: x_table: speedup compat operations
One iptables invocation with 135000 rules takes 35 seconds of cpu time
on a recent server, using a 32bit distro and a 64bit kernel.

We eventually trigger NMI/RCU watchdog.

INFO: rcu_sched_state detected stall on CPU 3 (t=6000 jiffies)

COMPAT mode has quadratic behavior and consume 16 bytes of memory per
rule.

Switch the xt_compat algos to use an array instead of list, and use a
binary search to locate an offset in the sorted array.

This halves memory need (8 bytes per rule), and removes quadratic
behavior [ O(N*N) -> O(N*log2(N)) ]

Time of iptables goes from 35 s to 150 ms.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ref: 255d0dc340
4 years ago
pedro 94753c6b21 kernel: netfilter: xt_hashlimit: fix namespace destroy path
recent_net_exit() is called before recent_mt_destroy() in the
destroy path of network namespaces. Make sure there are no entries
in the parent proc entry xt_recent before removing it.

Signed-off-by: Vitaly E. Lavrov <lve@guap.ru>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>

Ref: 32263dd1b4
4 years ago
pedro 2a9df96d08 mssl: Makefile: add missing condition for commit 9995b3c 4 years ago
M_ars 7c5c62e6cb GUI: admin-access.asp: add option to enable/disable the brute force mitigation rule on port defined for GUI remote access (resolves #199) 4 years ago
pedro 6d5f2f0f49 Merge branch 'arm-master' into arm-sdk7 4 years ago
M_ars 05f9c72817 PPTP Server: bypass CTF (if enabled) (part 3) 4 years ago
pedro b66d5067c3 httpd: check key and cert pair, if they are mismatched, regenerate key and cert 4 years ago
pedro 9995b3c327 mssl: use logmsg() 4 years ago
pedro c506b9798b kernel SDK7: drivers: net: usb: ipheth: fix iOS14 tethering issues 4 years ago
pedro 581c73faac kernel SDK7: drivers: net: usb: update ipheth module 4 years ago
pedro faf1bb7a19 kernel SDK6: drivers: net: usb: ipheth: fix iOS14 tethering issues 4 years ago
pedro a3681a4b6d kernel SDK6: drivers: net: usb: update ipheth module 4 years ago
pedro ede5027e56 Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro 38d623b9ea GUI: change the menu labels: WOL -> WoL, Trace -> Traceroute, IPerf -> iPerf 4 years ago
M_ars e407e31045 rc: buttons.c - increase button sample time (now 500 ms) and improve robustness (resolves #205)
see arm issue 205:
https://bitbucket.org/pedro311/freshtomato-arm/issues/205/when-pushed-for-0-2-seconds
4 years ago
pedro a2cdaf9804 log: watchdog/mwan: stick to our new naming convention for WANs PREFIX; additionally add some minor fixes in mwan.c 4 years ago
pedro 8d2915b40d GUI: IP Traffic: Last 24 Hours: fix initialization of 'IPs currently on graphic' dropdown list when loading the page; cosmetic 4 years ago
pedro 84068b12c5 nginx: change default server name to 'FreshTomato' 4 years ago
pedro af85f2950e build: Makefile: build dnsmasq with DUMPFILE option for ARM routers 4 years ago
pedro f925c91031 uqmi: update to 2022.02.02 (f254fc5) snapshot
- fix build break (added as a patch)
4 years ago
pedro 0a712f15f3 libubox: update to f2d6752 (2022-02-11) snapshot
- move files to main router directory
- use cmake instead of autotools (required)
- fix build break on MIPS
4 years ago
M_ars c6da4a3da6 PPTP Server: bypass CTF (if enabled) (part 2)
adjust the following commit:
1b51d9f986
4 years ago
M_ars b41890583b Linksys EA6350v2: adjust partition and JFFS space
Serial Boot Log:
****************

...
pflash: found no supported devices
bcmsflash: found no supported devices
The first offset=200000, 2nd offset=1f00000
Boot partition size = 524288(0x80000)
lookup_nflash_rootfs_offset: offset = 0x200000
nflash: squash filesystem with lzma found at block 31
lookup_nflash_rootfs_offset: offset = 0x1f00000
nflash: squash filesystem with lzma found at block 263
Creating 6 MTD partitions on "nflash":
0x000000000000-0x000000080000 : "boot"
0x000000080000-0x000000200000 : "nvram"
0x000000200000-0x000001f00000 : "linux"
0x0000003e6098-0x000001f00000 : "rootfs"
0x000001f00000-0x000003c00000 : "linux2"
0x0000020e60a8-0x000003c00000 : "rootfs2"
PPP generic driver version 2.4.2
PPP MPPE Compression module registered

...
...

Creating 1 MTD partitions on "brcmnand":
0x000003c00000-0x000008000000 : "brcmnand"
VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
devtmpfs: mounted
Freeing init memory: 200K
Failed to execute /sbin/preinit.  Attempting defaults...
*********************************************************************************
              _        _  __    _    __ _____ __   __ _____
             | |      | ||  \  | |  / // ____]\ \ / // ____]TM
             | |      | ||   \ | | / /| (___   \ V /| (____
             | |      | || |\ \| |\ \  \____ \  \ /  \____ \
             | |_____ | || | \   | \ \  ____) | | |   ____) |
             |_______||_||_|  \__|  \_\[____ /  |_|  [_____/

 (c) 2013 Belkin International, Inc. and/or its affiliates. All rights reserved.
 Booting r8v2 (firmware version 2.1.2.184309)
*********************************************************************************
4 years ago
pedro fd3b4ea364 avahi: do not disable timeout cleanup on watch cleanup
This was causing timeouts to never be removed from the linked list that
tracks them, resulting in both memory and CPU usage to grow larger over
time.

Ref: https://github.com/lathiat/avahi/pull/366
4 years ago
pedro 694dfc0ec4 avahi: use internal type for timers
Changes avahi to use a new internal type for timers instead of struct
timeval. This prevents accidental mixing between a time value from
gettimeofday() and a time value from avahi_now(), as the latter may be
from the monotonic clock instead of gettimeofday()

Ref: https://github.com/lathiat/avahi/pull/96
4 years ago
pedro 42a1e25b18 avahi: use monotonic timer when possible
Use clock_gettime() + CLOCK_MONOTONIC as the clock source on platforms
that support it. This allows the various timers used within Avahi to
function correctly even when the system clock is changed. This is
especially important when the system clock is set backward by a
significant amount of time, as this can cause responses and queries in
their respective history queues to prevent future responses and queries
from being sent for an extended period of time.

Ref: https://github.com/lathiat/avahi/pull/96
4 years ago
pedro cd56baed95 avahi: fixed dns_sd segfaults, initialization issues, and added NDEBUGs
* Corrected a segfault in the code on shutdown.
* Fixed memory initialization error which caused problems with shutdown; see above.
* Added NDEBUG calls around debugging fprintfs.

Ref: https://github.com/lathiat/avahi/pull/17
4 years ago
pedro c860b45859 avahi: cleanup: ensure entries are dead for at least 1s
If a dead AvahiEntry cleanup is scheduled, and we try to schedule
another one, defer the existing callback by 1s. Also remove other calls
to avahi_cleanup_dead_entries.

This is done to ensure that an entry stays in the dead state for at
least 1 second, so that if we receive a copy of our own probe we don't
think it's a conflict.

This should resolve issues where on startup the server spuriously
conflicts with itself and renames to hostname-2, hostname-3, etc. This
typically happens as addresses are rapidly added and removed, e.g. when
IPv6 global addresses cause the link local address to be revoked.

Ideally to prevent excess memory usage we would track the age of the
entries and expire them sooner to prevent the schedule being deferred
forever on a busy server.

Ref: https://github.com/lathiat/avahi/pull/366
4 years ago
pedro 5f958cfc3e GUI: VPN Tunneling: OpenVPN Server Configuration: enlarge 'Common Name' text area to 30 chars 4 years ago
pedro 16510b1cdf getdns/stubby: rdata not correctly written for validation for certain RR types
- fix from the upstream: 45683d3cfe
4 years ago
pedro 4000153d4b adblock: filter also ipv6 addresses (resolves #200) 4 years ago
pedro c6c69a4744 Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro fda56b69db www: tomato.js: add placeholder support for <textarea> and <input> (resolves #197) 4 years ago
pedro aa0373986e adblock: add needed variables for next release 4 years ago
pedro ba1450384c mdu: cloudflare: use new API token instead of email/globalAPIkey for auth 4 years ago
M_ars ead579242f rc: network.c - apply dhd_msg_level for SDK7 at load_wl() 4 years ago
M_ars dde377ae54 Adjust Linksys EA6350v2 support - WORK IN PROGRESS
see https://www.linksysinfo.org/index.php?threads/linksys-6530-v2-help-needed.77105/#post-333047
4 years ago
Not Sure 7c66c991ef Merged in qos-improvements (pull request #90)
QoS Features
4 years ago
notsure2 948849d27e Add ability to run custom script with start and stop of QoS: /etc/wan_qos.custom start|stop wannum 4 years ago
notsure2 f11a1c16df Add more QoS overhead options for PPPoE in PTM mode and with VLAN (VDSL2) 4 years ago
Don Bushway faa666f78e Merged in arm-master (pull request #89)
Use TCONFIG_AC3200 for tri-band instead of TCONFIG_DHDAP
4 years ago
M_ars 76a51c0832 build: add Linksys EA6350v2 support
Note: needs to be tested; EA6350v1 upgrade to dual-core ==> EA6350v2

Detection Infos:
boardflags2=0x00000000
boardflags=0x00000110
boardnum=20150309
boardrev=0x1200
boardtype=0xE646
4 years ago
snowman58 19687dc0b5 Use TCONFIG_AC3200 for tri-band instead of TCONFIG_DHDAP 4 years ago
M_ars 3d7b85e51b rc: init.c - one version for ARM and MIPS branch (sync latest Belkin F5D/F7D Series changes) 4 years ago
pedro 3f7b2ef25e Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro b0ab41aaf8 avahi: update to 0.8
- also added fix from the upstream: 9d31939e55
4 years ago
pedro a3071c6900 www: tomato.js: improve halt sentence 4 years ago
pedro f2c0fa8a56 Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro f54d047ae2 GUI: Advanced: Firewall: add smart MTU black hole detection and enable it by default (resolves #193) 4 years ago
pedro 2fe9aa114c GUI: Advanced: Firewall: add 'Allow DHCP responses' option; also correct name of nvram variable/value 4 years ago
pedro 5422def785 GUI: rename everywhere 'shutdown' to 'halt' 4 years ago
pedro a801cc9607 www: tomato.js: use already existing function MyName() in wikiLink() 4 years ago
pedro 6b25ff076a GUI: Admin: Debugging: improvements to the Debugging page (resolves #184) 4 years ago
pedro dcaafff8fe GUI: About: update copyright dates 4 years ago
M_ars 15076b8391 GUI: advanced-vlan.asp - add Asus RT-AC56S (single-core (NOSMP) clone of RT-AC56U)
Note: was missing so far
4 years ago
M_ars 8d04e6a26a GUI: status-overview - improve ethstate if WAN port is moved to primary LAN (part 2) 4 years ago
pedro 51f1067f34 GUI: Advanced: Routing: correct display of interfaces in Static Routing Table 4 years ago
snowman58 bfce1b8e9e Move DHD folder align with merlin/asuswrt 4 years ago
pedro 5f1c0dd487 Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro f3c01e9a07 miniupnpd: update to 2.3.0
- refresh patches
4 years ago
pedro 00116fc209 rc: init.c: do not use syslog when it is obvious that it's turned off 4 years ago
pedro 6775507b40 rc: init.c: on halt/reboot, stop syslog before removing storage/usb to avoid problems 4 years ago
pedro 932a024723 GUI: link wiki documentation to each relevant page - resolves #172 4 years ago
M_ars 12bbd38ac5 rc: init.c - one version for ARM and MIPS branch (sync latest changes) 4 years ago
snowman58 7861ba8683 include sdk6 prebuilt in sdk7 branch 4 years ago
snowman58 34211431ba Use same config.in file for both SDK6 and SDK7 4 years ago
snowman58 8e2bb9e582 Use same config_base file for both SDK6 and SDK7 4 years ago
snowman58 42e9e36696 Use same TUXERA MAKEFILE for SDK6 and SDK7 4 years ago
pedro 082be6cba5 httpd: openvpn.c: fix tls-auth error in auto-generated client config file
- see: https://www.linksysinfo.org/index.php?threads/openvpn-server-bug-tls-auth-error-in-auto-generated-client-config-file.77110/
4 years ago
M_ars 928398e309 IPv6: rc: services.c - add check for SLAAC and/or DHCPv6 before using global address and not link-local address for IPv6 DNS - fixes #191
adjust the following commit
20094cd65b

see issue
https://bitbucket.org/pedro311/freshtomato-arm/issues/191/fresh-tomato-unconditionally-adds-dhcp
4 years ago
pedro 690c051f10 Merge branch 'arm-master' into arm-sdk7 4 years ago
M_ars 3b9f9719ec WL: add roaming assistant (see GUI advanced-wireless.asp) as an option - fixes #77
see: https://bitbucket.org/pedro311/freshtomato-arm/issues/77/freshtomato-needs-a-asuswrt-merlin-like

Note: disabled by default; disabled for wireless client, wireless ehternet bridge and media bridge mode

Recommendation: Do not use bandsteering and roaming assistant features at the same time (similar functionality)
4 years ago
snowman58 4ec77eb7ce Remove CONFIG_NV128 use only CONFIG_NVRAM_128K on both sdk6 and sdk7 4 years ago
pedro 338697d062 Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro 601e5949ff rc: one version for ARM and MIPS branch 4 years ago
pedro 3cc65875c4 GUI: Advanced: Firewall: fix IGMP proxy custom configuration textarea bahaviour 4 years ago
pedro 6ff8ee883c GUI: USB and NAS: USB Support: disable drop-down lists of NTFS and HFS/HFS+ Drivers, when support for these file systems is not checked 4 years ago
pedro 210be054f7 Merge branch 'arm-master' into arm-sdk7 4 years ago
pedro 859e460965 nvram 'script_brau' variable/value is only needed in MIPS branch 4 years ago
pedro 2b6a964943 rc: remove (not used) restore_defaults_module() function 4 years ago
Kurt Fitzner 32c2335c59 Add "route <netaddr> <netmask>" directive to downloaded OpenVPN
config file when static keys are in use (because the route
cannot be pushed from the "server" when using static keys)
4 years ago
Not Sure 541d1f333d Merged in change-snmp-iftable-cache-interval (pull request #82)
Change IFTABLE_CACHE_TIMEOUT in snmp to get more realtime stats
4 years ago
pedro cc1b1e4b8e usbmodeswitch: fix for Novatel USB730L modem 4 years ago
pedro 60de469c3d kernel sdk7: HID: ignore Novatel USB730L modem
Ignore the Novatel USB730L modem - otherwise,
a kernel that is compile with a static HID driver
will not allow a USB mode switch of the modem from the default
user mode (product ID: 9030) into enterprise mode (producr ID: 9032).
4 years ago
pedro a72222bdc2 kernel: HID: ignore Novatel USB730L modem
Ignore the Novatel USB730L modem - otherwise,
a kernel that is compile with a static HID driver
will not allow a USB mode switch of the modem from the default
user mode (product ID: 9030) into enterprise mode (producr ID: 9032).
4 years ago
notsure2 3e17ff7166 Add patch to change snmp interface cache timeout to 1 second for realtime monitoring. 4 years ago