Commit Graph

4877 Commits (2021.1.070)
 

Author SHA1 Message Date
pedro b3c77924f3 multiwan: reduce and flush the route cache to ensure a more synchronous load-balancing across multiwan
The Tomato default route cache can create route affinity in a multi-wan environment.
Disparate devices to the same destination may follow the kernel route cache creating a lack of load-balancing
across the multi-wan environment. The proposed resolution is to adjust the route cache garbage collector to prune
the route cache and allow for proper load balancing across multiple WAN circuits.

Based on: https://bitbucket.org/pl_shibby/tomato-arm/issues/193/multiwan-route-cache-creates-route
5 years ago
pedro 7b902cfda7 openvpn: fix typo in commit 29474d4 (implement CRL file) 5 years ago
pedro 495e10f9d9 GUI: OpenVPN Server: allow empty string as a static key in case it's located elsewhere 5 years ago
pedro 431a2393b1 openvpn: masquerade all client outbound traffic regardless of source subnet
- ported from @Merlin
5 years ago
pedro f448f453d4 Bump version to 2021.1 5 years ago
pedro 9e38058ea5 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro 291cad4844 Update CHANGELOG to 2020.8 5 years ago
pedro 9f5f363232 patches: miniupnpd: cosmetic 5 years ago
pedro 4bb5858e82 httpd/rc: openvpn.c: use one version for ARM and MIPS branch 5 years ago
M_ars 428846ef9c SDK6: router: Makefile: fix path for WLAN_Common.mk
Note: no change for SDK6 BUT for SDK7 !!!

fix for SDK7 SRC path (SDK6 path was used to build the SDK7 utils for example --> not OK)
OLD: -I/home/tomato/tomato/release/src-rt-6.x.4708/shared/bcmwifi/include
NEW: -I/home/tomato/tomato/release/src-rt-7.x.main/src/shared/bcmwifi/include -I/home/tomato/tomato/release/src-rt-7.x.main/src/wl/olpc/include -I/home/tomato/tomato/release/src-rt-7.x.main/src/wl/ppr/include

Note: sync SDK6 and SDK7
5 years ago
M_ars 8225b1f38c SDK7: router: Makefile: fix path for WLAN_Common.mk
Note: no change for SDK6 BUT for SDK7 !!!

fix for SDK7 SRC path (SDK6 path was used to build the SDK7 utils for example --> not OK)
OLD: -I/home/tomato/tomato/release/src-rt-6.x.4708/shared/bcmwifi/include
NEW: -I/home/tomato/tomato/release/src-rt-7.x.main/src/shared/bcmwifi/include -I/home/tomato/tomato/release/src-rt-7.x.main/src/wl/olpc/include -I/home/tomato/tomato/release/src-rt-7.x.main/src/wl/ppr/include
5 years ago
pedro ee17877039 openvpn: add 'mode p2p' option to generated client config if auth mode is static 5 years ago
pedro 1ed89a1c96 build: fix latest merge 5 years ago
pedro 804f6ff0a2 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro a62475406b Revert "libcurl: update to 7.74.0"
- fucked up release...

This reverts commit c630e3a23b.
5 years ago
M_ars b6fb9591e3 SDK7: add wireless band steering feature (turned off by default)
Note: right now only On/Off at GUI (keep it simple). tested with dual-core arm and apple device (iOS 14)

Control parameter can be adjusted via nvram variables (no GUI yet, tbd.). For basic infos, have a look at https://www.smallnetbuilder.com/wireless/wireless-howto/32653-asus-rt-ac3200-smart-connect-the-missing-manual?start=0

For default config see (or nvram variables) // [Example from SDK6 router]
root@Tomato-ARM:/tmp/home/root# bsd -i
=== Basic info ===
max_ifnum: 2
mode: 2
role: 3
helper: 192.168.1.232[9877]
primary: 192.168.1.231[9878]
status_poll: 5
counter_poll: 0
idle_rate: 10
prefer_5g: 1
scheme: 2[3]
steer_timeout: 15
sta_timeout: 120
maclist_timeout: 3
probe_timeout: 3600
probe_gap: 30
poll_interval: 1
slowest_at_ratio: 40
phyrate_delta: 200

=== intf_info ===

idx: 0
idx=0 band=2 remote=0 enabled=1 steering_flags=0x2
Steer Policy:
max=0 period=5 cnt=3 rssi=-52 phyrate_high=110 phyrate_low=0 flags=0x22 state=3
Rule Logic: OR
RSSI: Greater than
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
STA NUM BALANCE: NO
PHYRATE (LOW): Less than
N ONLY: NO

Interface Qualify Policy:
min_bw=0 rssi=-75 flags=0x0
Rule Logic: OR
VHT: Allowed
NON VHT: Allowed

ifidx=0 bssidx=0 ifnames=eth1 valid=1:
prefix=wl0_ ssid=MM24-Test idx=0x0 bssid=f0:70:60:7f:50:01 rclass=0x4 chanspec=0x1001 prio=0x0 video_idle=0
steer_prefix=wl1_ [1][0]
policy=3[6]
algo=0[2]
Sta Select Policy: defined=YES:
idle_rate=10 rssi=-52 phyrate_high=110 phyrate_low=0 wprio=0 wrssi=1 wphy_rate=1 wtx_failures=0 wtx_rate=0 wrx_rate=0 flags=0x122
Rule Logic: OR
RSSI: Greater than
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
SINGLE BAND: No Preference
DUAL BAND: Prefered
ACTIVE STA: Can't be Selected
PHYRATE (LOW): Less than
N ONLY: NO

bssinfo to list:
ifname=eth1, intf_info->idx=0
ifidx=1 bssidx=0 to_ifidx=1 ifnames=eth2 prefix=wl1_

idx: 1
idx=1 band=1 remote=0 enabled=1 steering_flags=0x0
Steer Policy:
max=80 period=5 cnt=3 rssi=-82 phyrate_high=0 phyrate_low=0 flags=0x20 state=2
Rule Logic: OR
RSSI: Less than or Equal to
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
STA NUM BALANCE: NO
PHYRATE (LOW): Less than
N ONLY: NO

Interface Qualify Policy:
min_bw=60 rssi=-75 flags=0x0
Rule Logic: OR
VHT: Allowed
NON VHT: Allowed

ifidx=1 bssidx=0 ifnames=eth2 valid=1:
prefix=wl1_ ssid=MM24-Test idx=0x0 bssid=f0:70:60:7f:50:04 rclass=0x7 chanspec=0xe06a prio=0x0 video_idle=0
steer_prefix=wl0_ [0][0]
policy=2[6]
algo=0[2]
Sta Select Policy: defined=YES:
idle_rate=10 rssi=-82 phyrate_high=0 phyrate_low=0 wprio=0 wrssi=1 wphy_rate=1 wtx_failures=0 wtx_rate=0 wrx_rate=0 flags=0x20
Rule Logic: OR
RSSI: Less than or Equal to
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
SINGLE BAND: No Preference
DUAL BAND: No Preference
ACTIVE STA: Can't be Selected
PHYRATE (LOW): Less than
N ONLY: NO

bssinfo to list:
ifname=eth2, intf_info->idx=1
ifidx=0 bssidx=0 to_ifidx=0 ifnames=eth1 prefix=wl0_
root@Tomato-ARM:/tmp/home/root#

Further Note: to save nvram space --> feature turned off for dir868l
5 years ago
M_ars da557f4fd1 SDK7: prepare for band steering update 5 years ago
M_ars e28e477194 SDK6: add wireless band steering feature (turned off by default)
Note: right now only On/Off at GUI (keep it simple). tested with dual-core arm and apple device (iOS 14)

Control parameter can be adjusted via nvram variables (no GUI yet, tbd.). For basic infos, have a look at https://www.smallnetbuilder.com/wireless/wireless-howto/32653-asus-rt-ac3200-smart-connect-the-missing-manual?start=0

For default config see (or nvram variables)
root@Tomato-ARM:/tmp/home/root# bsd -i
=== Basic info ===
max_ifnum: 2
mode: 2
role: 3
helper: 192.168.1.232[9877]
primary: 192.168.1.231[9878]
status_poll: 5
counter_poll: 0
idle_rate: 10
prefer_5g: 1
scheme: 2[3]
steer_timeout: 15
sta_timeout: 120
maclist_timeout: 3
probe_timeout: 3600
probe_gap: 30
poll_interval: 1
slowest_at_ratio: 40
phyrate_delta: 200

=== intf_info ===

idx: 0
idx=0 band=2 remote=0 enabled=1 steering_flags=0x2
Steer Policy:
max=0 period=5 cnt=3 rssi=-52 phyrate_high=110 phyrate_low=0 flags=0x22 state=3
Rule Logic: OR
RSSI: Greater than
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
STA NUM BALANCE: NO
PHYRATE (LOW): Less than
N ONLY: NO

Interface Qualify Policy:
min_bw=0 rssi=-75 flags=0x0
Rule Logic: OR
VHT: Allowed
NON VHT: Allowed

ifidx=0 bssidx=0 ifnames=eth1 valid=1:
prefix=wl0_ ssid=MM24-Test idx=0x0 bssid=f0:70:60:7f:50:01 rclass=0x4 chanspec=0x1001 prio=0x0 video_idle=0
steer_prefix=wl1_ [1][0]
policy=3[6]
algo=0[2]
Sta Select Policy: defined=YES:
idle_rate=10 rssi=-52 phyrate_high=110 phyrate_low=0 wprio=0 wrssi=1 wphy_rate=1 wtx_failures=0 wtx_rate=0 wrx_rate=0 flags=0x122
Rule Logic: OR
RSSI: Greater than
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
SINGLE BAND: No Preference
DUAL BAND: Prefered
ACTIVE STA: Can't be Selected
PHYRATE (LOW): Less than
N ONLY: NO

bssinfo to list:
ifname=eth1, intf_info->idx=0
ifidx=1 bssidx=0 to_ifidx=1 ifnames=eth2 prefix=wl1_

idx: 1
idx=1 band=1 remote=0 enabled=1 steering_flags=0x0
Steer Policy:
max=80 period=5 cnt=3 rssi=-82 phyrate_high=0 phyrate_low=0 flags=0x20 state=2
Rule Logic: OR
RSSI: Less than or Equal to
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
STA NUM BALANCE: NO
PHYRATE (LOW): Less than
N ONLY: NO

Interface Qualify Policy:
min_bw=60 rssi=-75 flags=0x0
Rule Logic: OR
VHT: Allowed
NON VHT: Allowed

ifidx=1 bssidx=0 ifnames=eth2 valid=1:
prefix=wl1_ ssid=MM24-Test idx=0x0 bssid=f0:70:60:7f:50:04 rclass=0x7 chanspec=0xe06a prio=0x0 video_idle=0
steer_prefix=wl0_ [0][0]
policy=2[6]
algo=0[2]
Sta Select Policy: defined=YES:
idle_rate=10 rssi=-82 phyrate_high=0 phyrate_low=0 wprio=0 wrssi=1 wphy_rate=1 wtx_failures=0 wtx_rate=0 wrx_rate=0 flags=0x20
Rule Logic: OR
RSSI: Less than or Equal to
VHT: Allowed
NON VHT: Allowed
NEXT RF: NO
PHYRATE (HIGH): Greater than or Equal to
LOAD BALANCE: NO
SINGLE BAND: No Preference
DUAL BAND: No Preference
ACTIVE STA: Can't be Selected
PHYRATE (LOW): Less than
N ONLY: NO

bssinfo to list:
ifname=eth2, intf_info->idx=1
ifidx=0 bssidx=0 to_ifidx=0 ifnames=eth1 prefix=wl0_
root@Tomato-ARM:/tmp/home/root#

Further Note: to save nvram space --> feature turned off for dir868l
5 years ago
pedro 67e8d02d1d Revert "build: openvpn 2.5: use (built-in) netlink support instead of iproute2"
- netlink support still with bugs

This reverts commit fabb11a051.
5 years ago
Lorian Coltof c9dd13571f www: fix escapeCGI to properly encode unicode 5 years ago
Lorian Coltof 5adaae7957 httpd: use UTF-8 decoding for SSIDs 5 years ago
pedro b82c6962f1 dropbear: libtommath: enable fixed cutoffs as size-optimization
- ported from @Merlin
5 years ago
pedro ce12690f09 dropbear: use common random source for ltm
- ported from @Merlin
5 years ago
pedro cc6378d3f5 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro 47d7689bdd wsdd2: update to 2020.11.19 (e0cf50d) snapshot 5 years ago
pedro 4af2ab4918 uqmi: update to 2020.11.22 (0a19b5b) snapshot 5 years ago
pedro c8e2f35246 udpxy: update to 1.0-25.1 5 years ago
pedro 6772e75c88 sqlite: update to 3.34.0 5 years ago
pedro 7c6e2d1579 openssl-1.1: update to 1.1.1i 5 years ago
pedro bdcedbee9f nginx: update to 1.19.5 5 years ago
pedro 5adeefc3d8 nano: update to 5.4 5 years ago
pedro 298559aa27 gmp: update to 6.2.1 5 years ago
pedro c630e3a23b libcurl: update to 7.74.0 5 years ago
pedro a6d63a1bbb adminer: update to 4.7.8 5 years ago
pedro 525d8b13f9 rc/shared: fix compiler warnings 5 years ago
M_ars 80e7d75958 rc: ppp.c: - set nvram "wan_iface" also in case IPv6 link up (function ip6up_main())
fix for: ipup_main() not yet (or later) called --> nvram variable "wan_iface" needed for function start_dhcp6c()

Note: see mips Issue #43
5 years ago
pedro fe2f26fd13 www: basic-network.c: code clean-up, cosmetic
- stay as close as possible to MIPS branch
5 years ago
pedro 070fb130fe www: move eventHandler() to tomato.js 5 years ago
Not Sure 9ade2fd970 Merged in fix-miniupnp-build (pull request #42)
Fix miniupnp build credits to st_ty_
5 years ago
notsure2 cbbcd14616 Fix miniupnp build 5 years ago
M_ars d4152b9304 SDK7: update emf / igs
Note: GPL 300438252287 / only blob
5 years ago
M_ars d6e4899a40 SDK7: update wl util
Note: GPL 300438252287 / only blob
5 years ago
pedro 34bf621eb6 Merge branch 'arm-master' into arm-sdk7 5 years ago
pedro 7dbad49593 build: fix logmsg() (2nd try...) 5 years ago
pedro e99887a28c rc: mwan.c: fix error in checkConnect() 5 years ago
pedro f4dee70c6e build: fix compiler warnings 5 years ago
pedro 4657487a38 build: fix compiler warnings 5 years ago
pedro b126822877 watchdog: always add check if mwanJob is added to cru in case of problems on first attempt 5 years ago
pedro 051629598e watchdog: change some options for traceroute checker 5 years ago
M_ars 4ae6df364e firewall: adjust limit connection attempts (ssh/telnet) for IPv6 (and align to IPv4 --> remove incoming device, apply to all)
Note: see arm issue 75
5 years ago