This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
basic-network [2022/03/25 08:34] – add recommendation for Wireless Ethernet Bridge m_ars | basic-network [2025/05/10 23:21] (current) – [Wireless (2.4 GHz / interface eth1)] -Formatting hogwild | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Network ====== | ====== Network ====== | ||
- | The Network | + | This page includes most basic settings needed to configure the network. It' |
===== MultiWAN ===== | ===== MultiWAN ===== | ||
- | {{: | + | {{: |
- | **Number of WAN ports**: This lets you select the number of WAN ports to be used on the device. On routers with only one physical WAN interface, options with WAN ports larger than one will be greyed out. This allows you to select only “1 WAN” on such devices. | + | \\ |
- | **Tune route cache**: for multiwan in load balancing mode - This is a suggested settings if two or more of your WANs have a weight higher than 0. Basically | + | **Number of WAN ports**: lets you select the number |
- | <code bash> | + | On models with 1 physical WAN interface, only “1 WAN” can be selected. Other options are greyed out. |
- | # 2018-01-19 | + | |
- | # Reduce and flush the route cache to ensure a more synchronous load-balancing across multi-wan | + | |
- | # https:// | + | |
- | /bin/echo 1 > / | + | \\ |
- | /bin/echo 1 > / | + | |
- | /bin/echo 0 > / | + | |
- | /bin/echo 1 > / | + | |
- | /bin/echo 1 > / | + | |
- | /bin/echo 1 > / | + | |
- | /bin/echo 1 > / | + | |
- | /bin/echo 0 > / | + | |
- | /bin/echo 1 > / | + | |
- | /bin/echo 1 > / | + | |
- | #Causes connectivity issues if this value is too small, use defaults or tune accordingly | + | **Tune |
- | /bin/echo 512 > / | + | |
- | </ | + | |
- | **Check Connections Every: **This is a quick way to make FreshTomato automatically test the reliability of your WAN connection. (Default: Disabled). Choosing any setting other than [Disabled] will execute the Watchdog script. The Watchdog script | + | Recommended when 2 or more WANs have weight larger |
- | This setting specifies how often you want the router to send ICMP ping packets to check that it is still connected to the Internet. Choosing any setting other than Disabled will make the Target 1 and Target 2 fields appear. | + | For details, see the [[basic-network# |
- | **Target 1: **Address of first host you want FreshTomato | + | **Check Connections Every: **makes FreshTomato |
- | ===== WAN Settings ===== | + | It sets how often the router tests its Internet connection. Any option but Disabled runs the Watchdog script. |
- | Settings in this section are used to configure the WAN interface. | + | Watchdog uses ping/ |
- | **Type: **This sets the connection mode the WAN interface uses to connect to your ISP. Depending on which Type you select, other configuration settings specific to that type of connection will be shown or hidden. See below. (Default: DHCP). The Type setting will depend on your ISP's setup. | + | Any option but Disabled makes " |
- | **DHCP**: A DHCP server at your ISP will dynamically assign a WAN IP lease to your FreshTomato router. DHCP uses no authentication. | + | \\ |
- | **PPPoE**: The router' | + | * Target 1 -** **the address of the first host to ping \\ (Default: Google.com) |
+ | * Target 2 - the address of the second host to ping \\ (Default: Microsoft.com)\\ | ||
- | Starting with release 2021.3, support for Baby Jumbo Frames (RFC 4638) was added. FreshTomato will try to increase the WAN interface MTU to 1508. That is a PPPoE MTU/MRU value of 1500 with an 8 byte overhead. (Default is 1492). | ||
- | To enable Baby Jumbo Frames: | + | ==== WAN(x) Settings ==== |
- | - Enable jumbo frame support in the [[: | + | Settings here are used to configure |
- | - Set MTU to 1500 for PPPoE. | + | |
- | - Clamping can be disabled manually if needed \\ (Type //nvram set tcp_clamp_disable=1// | + | |
- | Then verify (using ifconfig or ipconfig to ping with packet size 1472) that you have a working PPP MTU of 1500. Not all ISPs support RFC 4638. Usually, packet size will be 1492. | + | Depending on the selected type, specific connection settings |
- | **Static: **This choice will configure your WAN port with a static IP. You must manually enter the static IP, subnet mask, gateway address and DNS server addresses into FreshTomato. These settings are given to you by your ISP. Static mode is typically used for business accounts, when it's important the IP address doesn' | + | \\ |
- | **PPTP**: This configures | + | **Type: |
- | **L2TP: **Choosing this will configure your WAN port to connect using Cisco' | + | \\ |
- | **3G modem: | + | |
+ | * DHCP doesn' | ||
- | **4G/ | + | |
+ | * Usually used on DSL networks. | ||
+ | * FreshTomato stores the PPPoE username/password assigned by your ISP. | ||
+ | * If authentication succeeds, the PPPoE server allows logon to the ISP network, \\ and a DHCP server assigns you a WAN IP lease. | ||
+ | * Leave the //Service Name// field blank. | ||
+ | * Starting with release 2021.3, | ||
+ | * When using Baby Jumbo Frames, set MTU to 1500, to be consistent with the \\ Baby Jumbo Frames change. (See [[basic-network# | ||
- | **Disabled: | + | |
+ | * You must manually enter these settings in FreshTomato, from your ISP: | ||
+ | * Static IP address | ||
+ | * Subnet mask | ||
+ | * Gateway address | ||
+ | * DNS server addresses | ||
+ | * This mode is usually used for business, when an IP address mustn' | ||
- | **Wireless Client Mode: **This enables FreshTomato' | + | |
+ | * This section requires you to enter: | ||
+ | * a username | ||
+ | * password | ||
+ | * gateway server settings | ||
- | * **Disabled: | + | * **L2TP **- configures the WAN port to connect using Layer Two Tunneling Protocol. |
- | * **2.4 GHz**: | + | * FreshTomato |
- | * **5 GHz**: FreshTomato will enable Wireless Client mode on the 5 GHz interface. | + | * L2TP username |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
- | | + | |
+ | * To detect modems, enable USB and 3G/4G/5G modem support in [[nas-usb|USB Support]].\\ \\ | ||
- | **Modem device: | + | |
+ | * When using 4G, PIN code and APN fields appear. You must enter these settings. | ||
+ | * To detect modems, enable USB and 3G/4G/5G modem support | ||
- | You could also log on to FreshTomato via Telnet and use the lsusb or dmesg commands to get device info. When you set 3G modem or 4G/LTE as the WAN type, other fields will appear, prompting you for more information. | + | * **Disabled - **disables the physical WAN port on the router. |
+ | * This makes your device function only as a switch (if it has that function) and/or; | ||
+ | * It may effectively make your device function | ||
- | **PIN Code: **This is the 3-digit PIN code for the SIM card associated with your cell account. Leave this field blank if your SIM card code has been deactivated. | + | |
- | **Modem init string: **Here, you enter the modem' | + | This lets the router act as a client (WiFi adapter) to connect to another router/AP.\\ (For details, see Wireless Mode tables below). |
- | **APN: **The access point name (provided by your carrier). This specfies a gateway to route data between your cell carrier and the Internet. (Default: internet). | + | \\ |
- | **Username: **Here you enter the username to access your cell carrier' | + | |
+ | | ||
+ | * 5 GHz - wireless Client mode will enabled on the 5 GHz band. | ||
- | **Password: **Here you enter the password to authenticate to your cell carrier' | + | \\ |
- | **Network Type: **This menu appears when WAN type is set to 4G/LTE. (Default setting: 4G/3G/2G). The default setting configures FreshTomato to start negotiating with a 4G connection, and, if that fails, fall back to negotiating a 3G connection, and failing that, a 2G connection. | + | {{::basic-network-wan_settings-2024.1.png?627}} |
- | **DNS Server: ** | + | |
- | | + | **Load Balance Weight:** appears |
- | | + | |
- | * **DNS 1:** Enter the first DNS server address here. (only when DNS Server is set to Manual). | + | |
- | * **DNS 2:** Enter the second DNS server address here. (only when DNS Server is set to Manual). | + | |
- | \\ | + | {{: |
- | **MTU: | + | In a MultiWAN configuration, FreshTomato performs load sharing on the link traffic. Giving each interface a Load Balance Weight adjusts how it participates in MultiWAN activities. Load sharing |
- | * (Default: 1500), is typical for Ethernet devices, and is usually suitable. \\ When Default is selected, the number in the Manual field is greyed out \\ and can't be changed. | + | \\ |
- | * Manual: Selecting manual lets you to enter a custom number in the field \\ beside it. Jumbo Frame sizes typically begin at a size of 2000 bytes. | + | |
- | **Use DHCP: | + | - Real-time voice |
+ | - Video | ||
+ | - RDP. | ||
- | **Single Line MLPPP**: This is similar to Multilink PPP (MLPPP). Multilink PPP is a version of the Point-to-Point Protocol which allows you to bond two or more physical connections to increase the bandwidth available. Single Line MLPPP is a version which lets you use one modem, but bond the bandwidth of multiple PPPoE sessions. A side effect of using this is that it bypassed some Internet Providers' | + | \\ |
- | **Route Modem IP:** When using a separate modem and router, you typically use the modem in bridge mode, or PPPoE passthrough mode. That means you can' | + | Per-packet loadsharing isn' |
- | **Query Hilink Modem IP:** This function is specifically for Hilink brand modems. | + | \\ \\ //**Example: Load Balance Weight: 0 (Failover)**// |
- | **Call Custom Status Script: **TBD. | + | \\ \\ If " |
- | **Connect Mode: **This chooses which method is used to keep the FreshTomato router connected to the Internet provider. Selecting //Connect on Demand// | + | \\ |
- | Some Internet Providers drop a connection if their router sees no Internet activity. If you select //Keepalive, // | + | For example, let's say: |
- | (Default: Keepalive). | + | \\ |
- | **Redial Interval: ** When PPPoE dialling fails, the Redial Interval is used to delay each attempt for the defined number of seconds. (Default: 10 seconds). This allows more time for the PPPoE server or network infrastructure to start functioning properly again before attempting another PPPoE connection. | + | |
+ | | ||
+ | * WAN1=" | ||
- | **LCP Echo Interval: **The Link Control Protocol | + | \\ |
+ | |||
+ | In this example, routing would proceed as follows: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | - When the failure of WAN1 is detected, WAN0 will activate \\ (assigned with weight: " | ||
+ | - Later, WAN1 recovers its connectivity. As soon as FreshTomato \\ notices, (seconds/ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | Recovery back to the originally-active interface is called // | ||
+ | |||
+ | \\ Any value > " | ||
+ | |||
+ | A weight of " | ||
+ | |||
+ | A good way to understand this is: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * " | ||
+ | * " | ||
+ | * Thus, if WAN0=“weight 0” and WAN1=“weight 1”, WAN1 would handle 100% of the traffic. | ||
+ | |||
+ | \\ \\ // | ||
+ | |||
+ | \\ \\ Basically, an interface set to weight: " | ||
+ | |||
+ | * WAN0 = weight 0 | ||
+ | * WAN1 = weight 1 | ||
+ | * WAN2 = weight 5 | ||
+ | |||
+ | \\ \\ In this example, routing would proceed as follows: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | - WAN0 would be used only if WAN1 and WAN2 are failing/ | ||
+ | - WAN1 would handle the first new LAN client session through the router. | ||
+ | - WAN2 is set to handle the second, third, fourth, fifth and sixth sessions. | ||
+ | - The seventh new session would be treated as another, first new LAN client, \\ so would start again from WAN1. | ||
+ | - WAN2 would then handle the next five new sessions, (eighth through twelfth).\\ | ||
+ | |||
+ | \\ **These settings affect only outbound traffic.** Return traffic tries to return via the WAN interface it came from. | ||
+ | |||
+ | Allocation of a new session to a WAN is dynamic. You can set which traffic gets allocated to which Interface (" | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Modem device: **here, specify the 3G/4G/5G modem' | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * If unsure, check the modem is listed in [[dongle_compatibility|3G/ | ||
+ | * If it isn't detected, enable 3G/4G/5G modem and USB support in [[nas-usb|USB Support]]. | ||
+ | * If WAN type is 3G or 4G/LTE, fields appear asking for more information. | ||
+ | * The Default device filename is the first serial device on the first USB port: (/ | ||
+ | * The “tty” part of the filename represents a serial device. | ||
+ | * “USB0” in the filename means the device is connected to the first USB port. | ||
+ | * Devices listed as "/ | ||
+ | * “ACM” in the device name type means the device type is: “Abstract Control Model” | ||
+ | |||
+ | \\ | ||
+ | |||
+ | To get modem details, log on to FreshTomato via Telnet/SSH and use the " | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **PIN Code: **the 3-digit PIN code for the SIM card associated with your cell account. | ||
+ | |||
+ | * Leave this blank if your SIM card code was deactivated. \\ \\ | ||
+ | |||
+ | **Modem init string: **enter the modem' | ||
+ | |||
+ | * Your cellular provider or modem manufacturer gives you this. (Default: *99# | ||
+ | |||
+ | **APN: **the access point name (provided by your cell carrier). | ||
+ | |||
+ | * Sets a gateway to route data between the carrier and the Internet. (Default: internet).\\ | ||
+ | |||
+ | **Username: **the (carrier-provided) username to access your cell carrier' | ||
+ | |||
+ | * Some carriers don't require this. \\ \\ | ||
+ | |||
+ | **Password: **the (carrier-provided) password to authenticate to your cell carrier' | ||
+ | |||
+ | * Some carriers do not require this. \\ \\ | ||
+ | |||
+ | **Network Type: **appears when WAN type is set to 4G/LTE. (Default: 4G/ | ||
+ | |||
+ | * The default makes FreshTomato start negotiating with a 4G connection. \\ If that fails, it falls back to negotiating 3G. Finally, it tries a 2G connection. \\ \\ | ||
+ | |||
+ | **DNS Server:** | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * AUTO - FreshTomato uses DNS server addresses in your ISP' | ||
+ | * Manual - enables DNS server functions in dnsmasq. "DNS 1" \\ and "DNS 2" fields appear. | ||
+ | * DNS 1 - enter DNS server 1 address here. | ||
+ | * DNS 2 - enter DNS server 2 address here. | ||
+ | |||
+ | \\ Manually-set DNS servers can be helpful if your ISP's DNS servers are slow/ | ||
+ | |||
+ | **MTU: | ||
+ | |||
+ | This is for the WAN interface only and won't affect LAN traffic. | ||
+ | |||
+ | * (Default: 1500) - good for most Ethernet devices. \\ Choosing it \\ greys out the Manual field. | ||
+ | * Manual - Enter a custom value. Jumbo Frames \\ start at 2000 bytes. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | Different MTU sizes across devices may cause issues.\\ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Use DHCP: | ||
+ | |||
+ | * A few Internet providers separate addressing from PPPoE functions.\\ | ||
+ | |||
+ | **Single Line MLPPP:** is outdated, and rarely used now. | ||
+ | |||
+ | This Multilink PPP version lets a modem bond the bandwidth of multiple PPPoE sessions. | ||
+ | |||
+ | A side effect of it was that it bypassed some ISPs' bandwidth throttling.\\ \\ \\ | ||
+ | |||
+ | **Route Modem IP: **lets you access a modem " | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * When using separate modem and router, usually the modem is in bridge mode or \\ PPPoE passthrough mode. This makes it hard to access the modem' | ||
+ | * The router' | ||
+ | * Private addresses aren't routable, so by default, FreshTomato blocks any traffic\\ on a path of: LAN ---> WAN ---> (MODEM with PRIVATE IP). | ||
+ | * Route Modem IP adds a static route to the routing table, giving the modem a\\ private address on a /32 subnet. This makes the private address reachable via \\ the WAN interface, and thus via the LAN. | ||
+ | * The mask allows only one host, so only the modem is reachable on that subnet. | ||
+ | |||
+ | \\ . | ||
+ | |||
+ | (Default: Off)\\ | ||
+ | |||
+ | **Query Hilink Modem IP:** is for Huawei USB modems with Hilink mode. | ||
+ | |||
+ | It lets you communicate with a modem in Hilink mode connected to a LAN device other than the router. | ||
+ | |||
+ | It can be used to monitor modem statistics/ | ||
+ | |||
+ | **Call Custom Status Script: ** TBD. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Connect Mode: **chooses the method to keep the router connected to the Internet provider. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * Connect on Demand - makes the router disconnect from the ISP after \\ the //Max Idle Time//. FreshTomato reconnects to the Internet as soon as \\ a LAN client requests Internet access. | ||
+ | * Some ISPs drop a connection if their router detects no Internet activity. | ||
+ | * Keepalive * - makes FreshTomato send [[https:// | ||
+ | * Redial Interval - how often the router checks the Internet connection. \\ (Default: 10 seconds). This minimizes Internet connection response time, \\ since usually the connection will be up. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | (Default: Keepalive).\\ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Redial Interval: **if PPPoE dialing fails, this delays attempts for a defined number of seconds. | ||
+ | |||
+ | This allows more time for the PPPoE server/ | ||
+ | |||
+ | **LCP Echo Interval: **Link Control Protocol | ||
+ | |||
+ | * LCP Echo Interval is the time between these signals. | ||
+ | * Usually | ||
+ | * (Default: 10 seconds). | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **LCP Echo Link fail limit: **how many failed LCP echo requests between peers before link is deemed down. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * The client DSL modem will then drop the PPPoE link. | ||
+ | * LCP will then try to renegotiate a new PPPoE session. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Disable Watchdog: **disables the Watchdog function, for only the WAN connection in the menu. \\ (Default: Enabled/ | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Watchdog Mode: **regularly checks a given WAN connection is up. | ||
+ | |||
+ | This chooses the method used to test the connection. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * Traceroute * | ||
+ | * Ping | ||
+ | |||
+ | \\ | ||
+ | |||
+ | The Watchdog function supports connection types: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | - DHCP | ||
+ | - PPPoE | ||
+ | - PPTP | ||
+ | - L2TP | ||
+ | - 3G/4G/5G LTE | ||
+ | |||
+ | \\ | ||
- | **LCP Echo Link fail limit: **This is the number of times LCP echo request checks can fail between two LCP peers before the status is deemed to be dead. The client DSL modem will then drop the PPPoE link. When the link is terminated, LCP will try to renegotiate a new PPPoE session. | ||
===== LAN ===== | ===== LAN ===== | ||
+ | The LAN section includes information and settings to configure FreshTomato' | ||
+ | | ||
+ | {{:: | ||
- | The LAN section includes information and settings to configure FreshTomato' | + | \\ |
- | * LAN IP address and (sub)netmask | + | This includes: |
- | * Spanning Tree Protocol function | + | |
- | * DHCP server status and settings (through dnsmasq), such as scope and lease time | + | |
- | * Stubby (DNS-over-TLS) setting and WINS settings | + | |
- | \\ | + | |
+ | | ||
+ | - DHCP server status/ | ||
+ | - Stubby (DNS-over-TLS) setting and WINS settings | ||
- | **STP**: Checking or unchecking this enables or disables Spanning Tree Protocol. This is used primarily to prevent forwarding loops in switches. The recommended setting is off, unless you're very experienced with networks. (Default: Off). | + | \\ |
- | **IP Address: **Here you enter the IP Address you want to assign to the specified | + | **Bridge:** lets you selects |
- | **Netmask**: The (sub)netmask associated with FreshTomato' | + | **STP**: |
- | **DHCP**: Checking this box enables the DHCP server functions in dnsmasq. Unchecking this disables FreshTomato' | + | The default |
- | **IP Range // | + | **IP Address:** the IP Address to assign to the specified LAN interface. |
+ | |||
+ | FreshTomato supports Class A/B/C networks. (Default: 192.168.1.1).\\ \\ | ||
+ | |||
+ | **Netmask**: | ||
+ | |||
+ | (Default: 255.255.255.0 - class " | ||
+ | |||
+ | **DHCP**: | ||
+ | |||
+ | **IP Range // | ||
+ | |||
+ | In the top field, | ||
+ | |||
+ | **Lease Time (// | ||
+ | |||
+ | **Automatic | ||
+ | |||
+ | Since release 2022.6, this option is supported in: \\ | ||
+ | \\ | ||
+ | - AP Mode | ||
+ | - Wireless Ethernet Bridge (WEB) Mode | ||
+ | - Media Bridge Mode.\\ \\ | ||
+ | |||
+ | After saving settings, the router' | ||
- | **Lease Time (// | ||
===== Ethernet Ports State - Configuration ===== | ===== Ethernet Ports State - Configuration ===== | ||
- | [[https:// | + | Settings here are for the Ethernet Ports State graphic |
- | **Show Speed Info: | + | \\ |
+ | |||
+ | {{basic-network-ethernet_ports_state_configuration-2024.1.png? | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Enable Ports State:** enables the Ethernet Ports State graphic. (Default: On). \\ \\ | ||
+ | |||
+ | **Show Speed Info: | ||
+ | |||
+ | (Default: On). \\ \\ | ||
+ | |||
+ | **Invert ports order:** displays port icons in the opposite order from where they are on the hardware. | ||
+ | |||
+ | This is useful when the order of display icons doesn' | ||
- | **Invert ports order: | ||
===== Wireless Band Steering ===== | ===== Wireless Band Steering ===== | ||
- | [[https:// | + | This feature makes FreshTomato assess on which band a client device should connect, and then " |
- | Options: | + | \\ |
- | * Disable | + | {{:: |
- | * Enable | + | |
- | If you enable Wireless Band Steering, FreshTomato can decide, for each dual-band client device, on which band the client device should try to connect. To achieve this, enter the same SSID name, security settings, password, and other settings (see picture below) for all wireless interfaces (up to 3 on a Tri-Band-Router). | + | \\ |
- | Note: client devices can also try to switch bands on their own, without Wireless Band Steering' | + | When enabled, these settings are saved to NVRAM, then replicated from the first WiFi radio to all other radios: |
- | This example shows the default parameters to steer clients from the 2.4 GHz band to the 5 GHz band: \\ | + | \\ |
- | < | + | |
- | Steer Policy: | + | - Broadcast |
- | max=0 period=5 cnt=3 rssi=-52 phyrate_high=110 phyrate_low=0 flags=0x22 state=3 | + | - KEY1-4 |
- | Rule Logic: OR | + | - Shared Key |
- | RSSI: Greater than | + | - Encryption |
- | VHT: Allowed | + | - Radius Key |
- | NON VHT: Allowed | + | - Radius Port |
- | NEXT RF: NO | + | - Radius IP |
- | PHYRATE (HIGH): Greater than or Equal to | + | |
- | LOAD BALANCE: NO | + | |
- | STA NUM BALANCE: NO | + | |
- | PHYRATE (LOW): Less than | + | |
- | N ONLY: NO | + | |
- | </ | + | |
- | \\ | + | \\ |
- | <code -> | + | (Visibility depends on the wireless security selected) |
- | 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 | + | |
- | LOAD BALANCE: NO | + | |
- | STA NUM BALANCE: NO | + | |
- | PHYRATE (LOW): Less than | + | |
- | N ONLY: NO | + | |
- | </ | + | |
- | \\ | + | Among the wireless settings that will NOT be replicated are: |
+ | |||
+ | \\ | ||
+ | |||
+ | * Channel | ||
+ | * Channel Width | ||
+ | * Wireless Network Mode | ||
+ | * Band (2.4 / 5 GHz) | ||
+ | * Country Code/Rev | ||
+ | * Beamforming | ||
+ | |||
+ | \\ | ||
+ | |||
+ | Client devices also may try to switch bands on their own, without the influence of Wireless Band Steering. | ||
+ | |||
+ | This feature is available since release 2020.8 (for ARM hardware only). See the [[https://wiki.freshtomato.org/doku.php/basic-network# | ||
+ | |||
+ | \\ | ||
- | Wireless Band Steering is available starting with release 2020.8 . | ||
===== Wireless (2.4 GHz / interface eth1) ===== | ===== Wireless (2.4 GHz / interface eth1) ===== | ||
- | The Wireless (2.4 GHz) section displays information and settings for the wireless network interface on the 2.4 GHz WiFi band. | + | The Wireless (2.4 GHz) section displays information and settings for the 2.4 GHz wireless interface. |
- | Your device may show a different device name than eth1. Note: FreshTomato hardware | + | Your device may show a different device name than eth1. Hardware |
- | **Enable Wireless:** When checked, this turns on the 2.4 GHz WiFi network interface. When unchecked, the 2.4 GHz WiFi interface is off. | + | The first Ethernet device might be called " |
- | **MAC Address:** This displays the MAC address of the 2.4 GHz WiFi radio interface. Clicking on it takes you to the [[: | + | \\ |
- | **Wireless | + | **Enable |
- | ^ Wireless | + | **MAC Address:** displays the MAC address of the 2.4 GHz WiFi interface. |
- | | \\ Access Point | \\ The (default) setting, | + | |
- | | \\ Access Point WDS | \\ Sets the router in " | + | Clicking this takes you to the [[: |
- | | \\ Wireless Client | + | |
- | | \\ Wireless Ethernet Bridge | + | **Wireless Mode:** here, choose the wireless mode (function) of the 2.4 GHz WiFi interface. |
- | | \\ Media Bridge Mode | \\ Configures FreshTomato to connect to another router/ | + | |
+ | \\ | ||
+ | |||
+ | ^ ^ | ||
+ | | **Wireless Mode** | ||
+ | | \\ Access Point | \\ The (default) setting, | ||
+ | | \\ Access Point WDS | \\ Sets the router in " | ||
+ | | \\ Wireless Client | ||
+ | | \\ Wireless Ethernet Bridge | ||
+ | | \\ Media Bridge Mode | \\ Configures FreshTomato to connect to another router/ | ||
| \\ WDS | \\ Serve as a [[https:// | | \\ WDS | \\ Serve as a [[https:// | ||
| //Table derived from (Creative Commons) Wikibooks - “Tomato Firmware/ | | //Table derived from (Creative Commons) Wikibooks - “Tomato Firmware/ | ||
- | \\ | + | \\ |
- | | + | **Wireless Network Mode: **selects which 802.11 WiFi protocols |
- | | + | |
- | * G Only: This allows | + | |
- | * B/G Mixed: This allows clients | + | |
- | * N only: This allows | + | |
- | These apply only to the 2.4 GHz band interface. Separate Wireless Network Mode settings exist for any 5 GHz band interface. | + | The network modes available here will depend on your hardware. |
- | (Default: Auto) | + | \\ |
- | **SSID:** This is the network name for the 2.4 GHz WiFi interface (Service Set IDentifier). For security purposes, it's recommended | + | |
+ | * Recommended, unless | ||
+ | * Incompatibilities may exist. | ||
+ | * The best settings may not be obvious. | ||
+ | * B Only - allows WiFi clients | ||
+ | * G Only - allows WiFi clients to connect using only 802.11n. | ||
+ | * B/G Mixed - allows clients to connect using 802.11b/ | ||
+ | * N only - allows clients to connect using only the 802.11n. | ||
- | **Broadcast: | + | \\ |
- | **Channel: **Selects the channel on which the 2.4 GHz radio interface will operate. Generally, it's a good idea to choose a different channel than the one your neighbours are using. (Default: Auto). | + | These apply only to the 2.4 GHz interface. Any 5 GHz interface will have separate Mode settings. |
- | * Auto: This default setting is generally safe unless there is significant interference | + | \\ |
- | FreshTomato chooses and uses the channel it believes has the least interference. | + | **SSID: |
- | * Channel: This menu lets you manually choose available WiFi channels \\ on the band. Unavailable channels will not appear here. | + | For security, don't include personal identity/ |
- | **Channel | + | (Default: FreshTomatoXX, |
+ | |||
+ | **Broadcast: | ||
+ | |||
+ | This “announces” the SSID, so it's easy to find and connect to. | ||
+ | |||
+ | Common software can easily sniff SSIDs. Contrary to claims, disabling Broadcast provides little security increase.\\ \\ | ||
+ | |||
+ | **Channel: **the channel on which the 2.4 GHz interface operates. | ||
+ | |||
+ | Generally, choose a different channel than your neighbours' | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * Auto* - this default is generally safe unless there' | ||
+ | * Channel - lets you manually | ||
+ | |||
+ | **Channel Width:** lets you choose | ||
+ | |||
+ | \\ | ||
* 20 MHz | * 20 MHz | ||
* 40 MHz | * 40 MHz | ||
- | 802.11n can use 40 MHz channel width, but to maintain | + | \\ |
+ | |||
+ | 802.11n can use 40 MHz channel width, but to maintain legacy | ||
+ | |||
+ | **Control Sideband:** lets you choose whether the sideband channel used is above (Upper) or below (Lower) the main channel. | ||
+ | |||
+ | (Default: Upper). This is only available If 20 or 40 Channel Width is selected. | ||
+ | |||
+ | * Upper * | ||
+ | * Lower\\ \\ | ||
+ | |||
+ | **Security**: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * Disabled - disables all security, leaving the network open to anyone. \\ Avoid using this. It is a basically an unlimited security risk. | ||
+ | |||
+ | * WEP - enables Wired Equivalent Privacy protocol. Avoid this. It's obsolete \\ due to serious vulnerabilities, | ||
+ | |||
+ | * WPA Personal - enables WiFi Protected Access Protocol 1.x. | ||
+ | * Uses the RC4-based TKIP protocol. | ||
+ | * Lets hosts exchange pre-shared keys, for more security. | ||
+ | * More secure than WEP, but has weaknesses like lower encryption standards. | ||
+ | * WPA2 is strongly encouraged instead. | ||
+ | |||
+ | * WPA Enterprise: (AKA: WPA-802.1X) - is similar to WPA Personal, \\ but each user has his/her own username/ | ||
+ | * No common pre-shared key is used. | ||
+ | * Doesn' | ||
+ | * Is more secure against dictionary attacks on short passwords. | ||
+ | * Is suitable for larger, more formal networks. | ||
+ | |||
+ | * WPA2 Personal - WiFi Protected Access version 2 uses parts of 802.11i. | ||
+ | * Supports mandatory AES encryption, so much more secure than old protocols. | ||
+ | * Recommended for small- to mid-sized, informal networks. | ||
+ | |||
+ | * WPA2 Enterprise - enables the Enterprise version of WPA2. | ||
+ | * Uses WPA2, but each user has their own WiFi username/ | ||
+ | * Is based on parts of 802.11i. | ||
+ | * Doesn' | ||
+ | * Appropriate for larger, more structured networks. | ||
+ | |||
+ | * WPA / WPA2 Personal - enables both protocols. \\ The router will communicate \\ via whatever it detects from the client. | ||
+ | |||
+ | * WPA / WPA2 Enterprise - enables both protocols. \\ The router will communicated \\ via whatever it detects from the client. | ||
+ | |||
+ | * RADIUS - enables Remote Access Dialup User Service. | ||
+ | * Designed for larger organizations. | ||
+ | * Uses a separate server to authenticate/ | ||
+ | * Supports authentication via certificates. | ||
+ | * Is usually only for advanced users. \\ \\ | ||
+ | |||
+ | **Shared Key: | ||
+ | |||
+ | **Group Key Renewal: | ||
- | **Control Sideband: | + | \\ |
- | * Upper | + | The following limits apply to adjusting key rotation interval: |
- | * Lower | + | |
- | **Security**: | + | \\ |
- | * Disabled: disables security entirely, leaving the network open to anyone. \\ Avoid using this, as it is an almost unlimited security risk. | + | * Release 2023.5 and later: From 1 second |
- | * WEP: enables Wired Equivalent Privacy protocol. Avoid using this. It's obsolete \\ due to serious vulnerabilities, | + | |
- | * WPA Personal: enables WiFi Protected Access Protocol (1.x). WPA uses the \\ RC4-based | + | |
- | * WPA Enterprise: Also known as WPA-802.1X, this is similar to WPA Personal, \\ but each user has their own username/password, instead of the same pre-shared key. \\ WPA2 Enterprise does not requires a RADIUS server. However, often one is used \\ anyway for compatibility and security purposes. WPA Enterprise is more secure against \\ dictionary attacks on short passwords. Suitable for larger, more formal networks. | + | |
- | * WPA2 Personal: WiFi Protected Access version 2 uses elements of the\\ 802.11i standard, like mandatory support for AES encryption. This makes it\\ much more secure than older protocols. WPA2 Personal is recommended for small-\\ to mid-sized, informal networks. | + | |
- | * WPA2 Enterprise: This enables the Enterprise version of WPA2. This uses WPA2, but\\ each user has their own WiFi username/ | + | |
- | * WPA / WPA2 Personal: | + | |
- | * WPA / WPA2 Enterprise: | + | |
- | * RADIUS: Enables FreshTomato' | + | |
- | **Shared Key:** Here, enter the shared key which authenticates the WiFi client on the network. The field shows only asterisks until you click your cursor in it. Then, the characters become visible. | + | |
- | **Group Key Renewal: | ||
===== Wireless (5 GHz / interface eth2) ===== | ===== Wireless (5 GHz / interface eth2) ===== | ||
- | The Wireless (5 GHz) section displays information | + | The Wireless (5 GHz) section displays |
- | Your device may show a different device name than eth1. Note: FreshTomato hardware device numbers begin at 0. \\ For example, the first Ethernet device might be called eth0. The second wireless device might be called wl1. | + | Your device may show a different device name than eth1. FreshTomato hardware device numbers begin at 0. |
- | Typically, the 5 GHz WiFi band has higher bandwidth, but shorter distance propagation than the 2.4 GHz band. | + | \\ |
- | **Enable Wireless: | + | For example, |
- | **MAC Address: | + | |
+ | | ||
- | **Wireless Mode: | + | \\ |
- | ^ Wireless Mode ^ Description | + | Typically, the 5 GHz WiFi band has higher bandwidth, but shorter range than the 2.4 GHz band. |
+ | |||
+ | \\ | ||
+ | |||
+ | **Enable Wireless: | ||
+ | |||
+ | **MAC Address: | ||
+ | |||
+ | **Wireless Mode: | ||
+ | |||
+ | ^ ^ | ||
+ | | **Wireless Mode** | ||
| \\ Access Point | \\ The (default) setting, which allows clients to connect to FreshTomato' | | \\ Access Point | \\ The (default) setting, which allows clients to connect to FreshTomato' | ||
- | | \\ Access Point WDS | \\ Sets the router in " | + | | \\ Access Point WDS | \\ Sets the router in " |
- | | \\ Wireless Client | + | | \\ Wireless Client |
- | | \\ Wireless Ethernet Bridge | + | | \\ Wireless Ethernet Bridge |
- | | \\ Media Bridge Mode | \\ Configures FreshTomato to connect to another router/ | + | | \\ Media Bridge Mode | \\ Configures FreshTomato to connect to another router/ |
- | | \\ WDS | \\ Serve as a [[https:// | + | | \\ WDS | \\ FreshTomato will act only as a [[https:// |
| //Table derived from (Creative Commons) Wikibooks - “Tomato Firmware/ | | //Table derived from (Creative Commons) Wikibooks - “Tomato Firmware/ | ||
- | | + | |
- | | + | **Wireless Network Mode: **Select |
- | | + | |
- | * N Only: allows | + | |
- | Note that releases before 2021.8 do NOT have a separate setting for 802.11ac. That only arrived with 2021.8 . | + | \\ |
- | Separate Wireless Network Mode settings will exist for any 2.4 GHz band interface. See the 2.4 GHz section. \\ (Default: Auto) | + | * Auto - FreshTomato/ |
+ | * Recommended unless you're highly experienced with WiFi. | ||
+ | * Compatibility issues may occur. The “logical” setting isn't always | ||
+ | * A Only - allows WiFi clients to connect using only 802.11a. | ||
+ | * N Only - allows WiFi clients to connect using only 802.11n. | ||
+ | * N/AC mixed - allows WiFi clients to connect using only 802.11ac or 802.11n. | ||
+ | * AC Only - allows WiFi clients to connect using only 802.11ac. | ||
- | **SSID: | + | \\ (Default: |
- | **Broadcast: | + | Only releases 2021.8 and later have have a separate setting for 802.11ac. |
- | **Channel: **Selects the channel on which the 5 GHz radio interface will operate. Generally, it's a good idea to choose a different channel than the one your neighbours are using. | + | Any 2.4 GHz band interface will have separate Mode settings. See the 2.4 GHz section.\\ \\ |
- | | + | **SSID:** |
- | * Channel: This menu lets you manually choose available | + | |
- | (Default: | + | For security, don't include personal words/ |
- | **Channel Width:** This menu allows you to choose the width of the channel (in terms of frequency). | + | **Broadcast: **enables SSID broadcasting. |
- | * 20 MHz | + | This “announces” the SSID, so it's easy to find. Contrary to claims, SSIDs are easily sniffed with common software. Disabling SSID Broadcast offers little security improvement. \\ \\ |
- | * 40 MHz | + | |
- | * 80 MHz | + | |
- | * 160 MHz | + | |
- | The 20 MHz channels on the 5 GHz band have no overlap. Therefore, the 5GHz band is less prone to interference and noise. Larger | + | **Channel: **selects |
- | 802.11N can use 40 MHz channel width, but to maintain compatibility with legacy systems, it uses one main 20 MHz channel plus a free adjacent | + | Generally, you should choose |
- | **Control Sideband: | + | \\ |
- | * Upper | + | * Auto: This default is usually safe unless there' |
- | * Lower | + | * FreshTomato selects/ |
+ | * Channel: lets you manually choose from available channels on the band. \\ Unavailable channels won't appear. | ||
- | **Security** | + | \\ |
- | | + | **Channel Width: |
- | | + | |
- | | + | |
- | | + | |
- | * WPA2 Personal: WiFi Protected Access version 2 uses elements of the\\ 802.11i standard, like mandatory support for AES encryption. This makes it\\ much more secure than older protocols. WPA2 Personal is recommended for small-\\ to mid-sized, informal networks. | + | |
- | * WPA2 Enterprise: This enables the Enterprise version of WPA2. This uses WPA2, but\\ each user has their own WiFi username/ | + | |
- | * WPA / WPA2 Personal: | + | |
- | * WPA / WPA2 Enterprise: | + | |
- | * RADIUS: Enables FreshTomato' | + | |
- | **Shared Key: | + | \\ |
+ | |||
+ | | ||
+ | | ||
+ | * 80 MHz | ||
+ | * 160 MHz (not yet supported. May be supported on some SDK714 models) | ||
+ | |||
+ | | ||
+ | |||
+ | Larger channel widths provide more speed/ | ||
+ | |||
+ | The 5GHz band is less prone to interference and noise, because on that band, 20 MHz channels don't overlap. Interference is more common on the 2.4 GHz band. | ||
+ | |||
+ | Usually, it's fine to choose a larger channel width. However, if you see slow traffic, or clients having trouble authenticating/ | ||
+ | |||
+ | 802.11n can use 40 MHz channel width. However, for legacy compatibility, | ||
+ | |||
+ | **Control Sideband: | ||
+ | |||
+ | This is available only if 40/80/160 MHz Channel Width is selected. (Default: Upper).\\ \\ | ||
+ | |||
+ | **Security: | ||
+ | |||
+ | \\ | ||
+ | |||
+ | * Disabled - disables all security, leaving | ||
+ | * Avoid using this. It's basically an unlimited security risk. | ||
+ | |||
+ | * WEP - enables Wired Equivalent Privacy protocol. Avoid using this. | ||
+ | * Obsolete due to serious vulnerabilities, | ||
+ | |||
+ | * WPA Personal - enables WiFi Protected Access 1.x (with RC4-based TKIP protocol). | ||
+ | * Lets hosts exchange pre-shared keys, for more security. | ||
+ | * More secure than WEP, but problems include low encryption standards. | ||
+ | * Strongly encouraged instead of WPA. | ||
+ | |||
+ | * WPA Enterprise (or: " | ||
+ | * No common pre-shared key is used. | ||
+ | * Doesn' | ||
+ | * Is more secure against short-password dictionary attacks. | ||
+ | * Is suitable for larger, more formal networks. | ||
+ | |||
+ | * WPA2 Personal - uses elements of the 802.11i standard. | ||
+ | * Supports mandatory use of AES encryption. More secure than old protocols. | ||
+ | * Is recommended for small/ | ||
+ | |||
+ | * WPA2 Enterprise - enables the Enterprise version of WPA2. | ||
+ | * Uses WPA2, but each user has their own username/ | ||
+ | * Is based on parts of 802.11i. | ||
+ | * Doesn' | ||
+ | * Is appropriate for larger, more structured networks. | ||
+ | |||
+ | * WPA / WPA2 Personal - uses WPA2 Personal, and if that fails, WPA security. | ||
+ | |||
+ | * WPA / WPA2 Enterprise - uses WPA2 Enterprise, and if that fails, WPA . | ||
+ | |||
+ | * RADIUS - enables Remote Access Dialup User Service. | ||
+ | * Is designed for larger organizations. | ||
+ | * Uses a separate server | ||
+ | * Supports authentication via certificates. | ||
+ | * Suitable for advanced users. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | **Shared Key: | ||
+ | |||
+ | **Group Key Renewal: | ||
+ | |||
+ | This is part of the WPA protocol. See the first wireless radio unit for more details. | ||
+ | |||
+ | (Default: 3600 seconds). | ||
+ | |||
+ | |||
+ | ===== Network Notes and Troubleshooting ===== | ||
+ | |||
+ | ==== Tune Route Cache ==== | ||
+ | |||
+ | Specifically, | ||
+ | |||
+ | \\ | ||
+ | |||
+ | <code bash> | ||
+ | # 2018-01-19 | ||
+ | # Reduce and flush the route cache to ensure a more synchronous load-balancing across multi-wan | ||
+ | # https:// | ||
+ | |||
+ | /bin/echo 1 > / | ||
+ | /bin/echo 1 > / | ||
+ | /bin/echo 0 > / | ||
+ | /bin/echo 1 > / | ||
+ | /bin/echo 1 > / | ||
+ | /bin/echo 1 > / | ||
+ | /bin/echo 1 > / | ||
+ | /bin/echo 0 > / | ||
+ | /bin/echo 1 > / | ||
+ | /bin/echo 1 > / | ||
+ | |||
+ | #Causes connectivity issues if this value is too small, use defaults or tune accordingly | ||
+ | /bin/echo 512 > / | ||
+ | </ | ||
+ | |||
+ | | ||
+ | |||
+ | ==== Baby Jumbo Frames ==== | ||
+ | |||
+ | Support for Baby Jumbo Frames is included since release 2021.3. It works only on gigabit routers. Not all ISPs support Jumbo Frames for PPPoE. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | To enable Baby Jumbo Frames: | ||
+ | |||
+ | * Go the [[advanced-misc|Miscellaneous]] menu. Check //Enable jumbo frame support// . \\ The router | ||
+ | * In the [[basic-network|Network]] menu, Set MTU to manual. For PPPoE operation, | ||
+ | * Clamping can be manually disabled, if needed. At a FreshTomato\\ command prompt: type: "nvram set tcp_clamp_disable=1" | ||
+ | * Ping with packet size of 1472 to verify a working PPP MTU of 1500. | ||
+ | |||
+ | \\ | ||
+ | |||
+ | |||
+ | ==== Wireless Band Steering ==== | ||
+ | |||
+ | | ||
+ | |||
+ | <code -> | ||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | | ||
+ | |||
+ | This example shows default parameters to steer clients from the 5 GHz band to the 2.4 GHz band: \\ \\ | ||
+ | |||
+ | <code -> | ||
+ | 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 | ||
+ | </ | ||
- | **Group Key Renewal: | + | \\ |