Internet Lines
The WAN tab on the Internet page is where the cafe's lines live. A cafe with one line sets it once and never comes back. A cafe that cannot afford to be offline adds a second.
Adding a line
Press Add WAN. Each line needs a network card of its own on the gateway PC and one of three Connection type choices:
- DHCP. The modem hands out the address. This is what most cafes have, and it needs nothing else from you.
- Static IP. Your provider gave you an address with its prefix and a gateway to type in.
- PPPoE. Your provider gave you a user name and a password. Common on DSL lines where the modem is in bridge mode.
Give each line a Monitor IP if you want the gateway to watch it closely. The gateway pings that address through the line to decide whether the line is really up, not just plugged in. Use a different public address for each line.
The WAN interfaces list shows each line's role, status, speed, latency and loss, and the traffic it carries now. A line that is up but losing packets or answering slowly shows Poor quality. The gateway steers traffic around a poor line while a healthy one is left. It still uses a poor line before one that is down. A poor line counts as healthy again only once it is clearly back under its limits, so a line sitting on the edge does not move traffic back and forth.
Order of preference
With sharing off, the first line in the list is the Main line and carries the traffic. The others are Backup 1, Backup 2 and so on: when the main line goes down traffic moves to the next one, and moves back when it recovers. A cafe with fibre and a mobile backup puts fibre first. The backup sits idle until the day it is needed.
Change the order from the line's row menu: Make this the main interface, Use as failover, Move up and Move down.
Sharing between lines
A cafe with two or more lines can let every line carry devices at once. The Sharing between lines card has two settings:
- Split traffic. Off keeps one main line with the others waiting as failover. Per device gives each device one line. The device keeps that line while it is on. Games and banks never see its address change. The setting needs at least two lines.
- Split automatically. On, the gateway splits the devices by each line's measured speed, or evenly. Off, each shared line gets a slider in the Share column and you set its percentage yourself.
With sharing on, each line's role is Shared or Backup. Use the row menu to move a line between them: Share traffic on this line or Use as failover. Backups take over only when every shared line is down. If a shared line goes down, its devices move to the other shared lines at once. A line that comes back takes new devices after one minute without problems.
Turning sharing on can make online devices lose their connection once while they are given a line.
Sending chosen traffic through a chosen line
A named device can be pinned to a line. Open the device's menu on the Devices tab and choose Choose internet line. The usual reasons:
- A console or a streaming station that should stay on the fast line even when it is busy.
- A till or an office PC that needs the address the second line carries.
The pinning follows the device, not the station it happens to be sitting at. See Devices and speed for how devices are named and grouped.
Traffic can also be routed by what it is rather than who sends it, for example a game that should not share the main line. Open the Firewall tab, choose the Policy routing filter and press Add rule. The Send a port to a line window asks for:
- Outgoing port. A port like 27015, a range like 27000-27500, or the name of a saved list from Game and app ports. The gateway comes with ready lists for well-known games, such as Steam, CS2, VALORANT and Fortnite. See Port forwarding and firewall.
- Use this line. Pick a line directly, or a Gateway groups entry. A group is a named line order: traffic uses the lowest tier that has a line up.
- Note, if you want one.
Advanced narrows the rule further by Protocol, Target IP and Source IP. Target IP also takes the name of a saved address list, including a From a list entry that the gateway downloads from a web address every 6 hours. The window sums up the rule in one sentence before you save it. It does not save a rule for traffic that another rule already sends to a line, because rules are checked from the top and the first one that matches wins.
The gateway learns which addresses the matching traffic goes to and sends traffic for those addresses out through the chosen line. The first packet to a new address can wait a moment while that is set up. An address sent this way uses that line for every device in the cafe, and it goes back to the normal line order after 30 minutes without traffic or when the chosen line goes down.
The Policy routing filter lists every rule that picks a line.
When a line drops
The Overview tab shows which line is carrying traffic right now and how long it has been. A line that went down and came back leaves a mark there, which is what to look at when a customer says the internet "went weird earlier".
Nothing on the cafe side has to be restarted when a line changes. Sessions carry on, and most downloads survive it.
What it cannot do
- It does not split one device's traffic across lines. With sharing on, each device uses one line at a time. A single download never gets the speed of two lines.
- Several lines in the same tier of a gateway group are not load balanced. The first one listed is used.
- A line that is plugged in but answering nothing can still look up to the gateway if it has no Monitor IP to test against. Give a backup line one.
- Line monitoring and gateway groups work only on the Windows gateway.