Sophos Remote Ethernet Device (RED) is a small network appliance, designed to be as simple to deploy as possible. Its main purpose is to provide a secure tunnel from its deployment location to a Sophos XG Firewall.
There is no user interface on the RED appliance. It is designed to be fully configured and managed from a Sophos Firewall. RED devices can be shipped to a remote site, connected to any DHCP connection to the internet, and be fully configured by a remote administrator with no prior knowledge of the site, and no need to walk local personnel through technical setup steps.
This guide details how to set up Sophos RED in each of its operational modes, and outlines common troubleshooting steps to resolve connection issues.
The following sections are covered:
Applies to the following Sophos products and versions Sophos FirewallSophos RED
When a RED is configured on a Sophos XG Firewall, the configuration options chosen by the administrator are uploaded to the Sophos provisioning servers. The configuration is little more than the following items:
The unlock code is not stored on the RED appliance, but is used to prevent a RED that is in use from being accidentally or maliciously redirected. The correct unlock code must be supplied for the provisioning servers to accept new configuration for a RED. Initially, the unlock code is blank, until a RED has been connected to a Sophos XG Firewall once. The first time you configure a RED device on the firewall, the unlock code should be left blank. Every time a RED connects to a new firewall, the old unlock code must be entered to move the RED. Once the settings push to the provisioning server, it issues a new unlock code and displays in the Admin Console of the Sophos XG Firewall.
The provisioning servers store the configuration provided by the administrator, on a centrally reachable set of servers. RED devices are centrally configured due to this mechanism. When a RED device has no configuration or the configuration it has is unsuccessful, it looks to the provisioning servers for updated instructions. A DNS lookup of red.astaro.com returns the closest provisioning server, which it will then securely connect to, and check for new instructions from the provisioning servers. As long as a RED has a working configuration, it does not connect to the provisioning servers again.
RED can operate in several modes. This section helps to understand how each of these modes operates, and help you to decide which modes are best suited to which circumstances.
These scenarios reference two different Sophos devices. One is the RED appliance, which sits at the remote location. The other is the Sophos XG Firewall with which the RED establishes a tunnel. Both have a connection to the internet, as shown in figure 1.
Figure1: General RED layout
Standard/Unified is the commonly used mode. In this mode, we expect that the remote network is fully managed by the Sophos XG Firewall, through the RED. DHCP can be offered for the remote LAN by the Sophos XG Firewall, and the RED may be the only device connecting the LAN to the Internet. While another router may sit in front of the RED, there is not a parallel path around the RED to the internet.
Figure 2: RED Used in Standard/Unified mode
Figure 2 illustrates the flow of data in this operational mode. All traffic from the remote LAN passes through the RED tunnel, whether it is heading for the local LAN or the internet. This allows the Sophos XG Firewall to allow or deny requests in the same manner as it does for traffic coming from the Local LAN. Traffic between local and remote LANs can be blocked or allowed by using firewall rules. Web traffic can be filtered using the web security module, and applications such as Skype or BitTorrent can be controlled for remote LAN users, just as they can be for LAN users. This provides the highest level of security and manageability for remote networks. Its biggest drawback is the increased bandwidth requirements it may place on the Sophos XG Firewall’s internet link. Since all internet traffic from the remote LAN also uses internet bandwidth at the Sophos XG Firewall, the bandwidth at the Sophos XG Firewall must be large enough to service requests from both its local users and all remote RED users. The RED 10 appliance is capable of tunneling data at up to 30 Mbps.
If the RED loses contact with the Sophos XG Firewall, and the tunnel fails, the RED stops routing traffic. Remote LAN users lose access to the internet the Sophos XG Firewall’s internal networks until the tunnel can reconnect.
Standard / Split mode is physically similar to Standard / Unified. We expect that the remote network may be managed by the Sophos XG Firewall, and can provide DHCP to the remote LAN. The RED is likely the only device between the LAN and the internet, only traffic for selected networks is sent through the tunnel. All other traffic is sent directly out the local internet connection. The RED masquerades outbound traffic to come from its public IP address. This feature minimizes bandwidth usage over the tunnel and lightens the bandwidth requirements on the Sophos XG Firewall, but it also reduces the manageability of the remote network substantially. Traffic to or from the internet cannot be filtered or protected from threats. Security can only be applied between the remote and local LANs.
Figure 3: RED used in Standard/Split mode
If the RED loses contact with the Sophos XG Firewall, and the tunnel fails, the RED stops routing traffic. Remote LAN users lose access to the internet and the Sophos XG Firewall’s internal networks until the tunnel can reconnect.
In this mode, the Sophos XG Firewall is not expected to manage the remote network. It is connected to the remote LAN and the remote LAN’s gateway and expects to receive an address on the remote LAN via DHCP. Similar to the Standard/Split option, only traffic destined for certain networks transmits down the tunnel. In this case, the RED does not act as the gateway, but it is in-line with the gateway and can transparently redirect packets down the tunnel.
This option requires no reconfiguration of the remote network and does not allow any management of the remote LAN. It provides security between the remote LAN and any local subnets which are accessible through the tunnel. If the RED tunnel fails, the internet is inaccessible for any devices behind the RED. This is because the RED device continues to reboot to bring the tunnel up and all traffic passing through the RED is dropped until the tunnel is re-established.
This section outlines the basic steps required to add a new RED to a Sophos XG Firewall manually. In some cases, more detailed setup options are needed, but this is outside of the scope of this document.
Before we add the RED, we need to activate the RED service. Navigate to System services > RED and enable RED status. You are required to fill out an Organization name, City, Country, and Email. Click Apply to activate the RED service.
In this tab, you may also enable Force TLS 1.2 for extra security or activate Automatic device deauthorization. Automatic device deauthorization is a feature that allows for a RED appliance to disassociate from the firewall after a period of inactivity; this is to prevent someone from moving a RED device to another location without the system administrator's knowledge. A device that loses its connection from the Sophos XG Firewall after the Deauthorize after period has elapsed needs someone with Administrator access to reactivate the RED before using it.
Adding RED to the Sophos XG Firewall
Configure the RED interface
Follow this section for all operation modes.
On the Sophos XG Firewall, all traffic is routed and allowed or disallowed by firewall rules. The RED devices are controlled based on which zones they are members of and can be further refined by firewall rules for networks within each zone.
When creating a RED and setting it to be a member of the LAN network, it may seem as if firewall rules were created automatically, but this is not the case. The firewall identified that the RED was a member of the LAN Zone and then applied the same rules to it as it did the rest of the LAN. To maintain more separation between the LAN and the RED networks, you could use an existing zone such as VPN or WiFi or create a new one called RED to give a more logical separation of zones.
Previously created firewall rules determine how traffic is routed if using an existing zone. Double check to make sure the rules that apply to the zone do not break security for your internal networks. Be careful when selecting existing zones since some of them, like the VPN zone, do not allow DNS to be resolved by the XG and instead must use DHCP to distribute a different DNS server.
Here we have created a new firewall rule to use with the new RED zone we created earlier.
There is no one way to build RED firewall rules. The advantage of the RED device is the freedom to treat it like any other network interface on a firewall and configure it the same way.
Note: In Standard/Unified or Standard/Split mode, when accessing internet resources you need a RED to WAN rule with Masquerading enabled. You may want to keep two separate firewall rules, one for RED to LAN and one for RED to WAN to be more secure.
The RED establishes a connection between RED_WAN1 and SFOS_WAN1.
If SFOS_WAN1 is down: RED_WAN1 will connect to SFOS_WAN2
If SFOS_WAN1 and RED_WAN1 is down: RED_WAN2 will connect to SFOS_WAN2
The RED establishes a connection between RED_WAN1 and SFOS_WAN1 / SFOS_WAN2
If RED_WAN1 is down: RED_WAN2 will connect to SFOS_WAN1 / SFOS_WAN2
The RED establishes a connection between RED_WAN1 / RED_WAN2 and SFOS_WAN1
If SFOS_WAN1 is down: RED_WAN1 / RED_WAN2 will connect to SFOS_WAN2
The RED establishes a connection between RED_WAN1 / RED_WAN2 and SFOS_WAN1 / SFOS_WAN2
If any interfaces go down, the interface will be checked until it is working again. The connection will be restored to the original interface if it becomes available again.
Manual/Split setup is not an option that can be chosen when configuring the RED but is implemented mostly through physical configuration. This mode is not unlike Transparent/Split mode, but it allows the tunnel to go down without also disabling local internet access. In this scenario, the RED is configured in Standard/Unified mode but is not placed in front of the remote LAN. It is connected to an alternate gateway on the remote LAN, and routes must then be added on the existing default gateway to access remote networks behind the RED.
The WAN port is plugged into the same LAN switch that LAN clients are connected to, and once the RED receive its mode configuration, you then connect a LAN port to the same LAN switch.
The setup is physically more complex than other modes, but is logically simpler, and allows for a tunnel or RED hardware failure, without disrupting normal internet traffic.
When dealing with a large number of RED devices, it may be simpler to treat all remote RED networks as a single LAN. The Sophos XG Firewall supports creating a single bridge interface, bridging any number of NICs. If you have not set up a bridge interface already, you may bridge more than one RED connection together, to effectively treat all remote RED connections as a single LAN. Firewall rules can still control access from RED to RED, so security need not diminished in this setup.
To setup bridging, follow the Adding RED to the Sophos XG Firewall instructions for at least two RED devices. Then, in the Sophos XG Firewall Admin Console, browse to Network > Interfaces. Click Add interface and then select Add bridge. Now fill out the name and then choose the RED devices under Member interfaces as well as the zone to which this bridge belongs. Click Save to apply the settings.
Follow the remaining RED setup steps, but choose the Bridge hardware interface, instead of a reds# interface. Additional REDs can be added to the bridge under Network > Interfaces and then edit the bridge. Select the new RED interface and click Save to apply the changes. All rules set up for one RED, will immediately also apply to the newly added RED device.
As of version 16, you may now use a Sophos XG Firewall to create a RED tunnel with another Sophos XG Firewall or Sophos UTM. This increases the possible number of ways a RED tunnel can be utilized. This guide covers the setup of the tunnel and the general operating principles of the Sophos XG Firewall client tunnels. Once a tunnel is created, configuring traffic between two Sophos XG Firewalls becomes a matter of routing and creating firewall rules. This tunnel type is best suited for environments that:
To set up a Sophos XG Firewall-to-Sophos XG Firewall RED tunnel, first, choose one firewall to be the server. The server role is not related to how traffic flows through the tunnel, only on which side listens, and which side initiates the connection. The server waits for connections from the client.
To set up a RED client connection,
On the Server Sophos XG Firewall:
The firewall then generates a provisioning file for the remote Sophos XG Firewall. Click the Edit icon next to the RED interface and then click on Download provisioning file, to save the .red provisioning file to disk.
On the Client Sophos XG Firewall:
At this point, the tunnel should connect automatically, and each Sophos XG Firewall has a virtual RED interface that may be configured in whatever manner required. For split tunnel operation, simply route the selected destination networks to the Sophos XG Firewall IP at the other end of the RED tunnel.
Please see Sophos XG Firewall: How to configure Site-to-Site RED Tunnels for further details & instructions on configuring site-to-site RED tunnels.
The LEDs in front of the RED device are the most valuable source of information when troubleshooting a RED. When first plugged in, the power light should be lit solidly. The device then loads its current firmware.
RED 10 Revision 2 (RED Rev. 2) appliance status LEDs are different from RED Rev. 1 status LEDs.
RED 15 uses an additional port than the RED10. The UDP port 3410 and TCP port 3400 need to be allowed. The appliance status LEDs are the same as the RED 10 Rev. 2/3 status LEDs.
Connect the RED appliance to the power supply. Plug the power supply into the electrical outlet. The Power LED will light and the system will boot. The LCD will show the message “Starting RED” and the RED-ID.
The RED 50 will now automatically retrieve its configuration from the Internet and establish a tunnel to your central office. After successfully establishing the tunnel, the LCD will show the message “Tunnel is up (wan1)” and either the IP address or the hostname of the UTM appliance to which the RED 50 is connected.
The following menu entries are available
Important note: Do not unplug the power while the firmware is updating. Otherwise the RED appliance will be rendered inoperable and must be returned to the reseller.
Tunnel keeps disconnecting
If you see the tunnel constantly going up and down you may need to disable hardware acceleration.
Sign in to the console of the XG and issue the following commands.
console> system firewall-acceleration show
console> system firewall-acceleration disable
Troubleshooting static address assignments
Problem: If a RED is deployed to a location that only supports a static public IP address and the RED was not configured with a static IP through the Sophos XG Firewall before shipping.
Solution: RED requires a DHCP connection with access to the Internet at least once, before being deployed with a static IP address. If RED is replacing an existing firewall, and that firewall distributes DHCP addresses to internal clients, first try to connect the RED WAN port to the existing internal network. Watch the front LEDs to see that the RED connects to the Internet. It connects to the Internet, obtains its settings, then reboots. After reboot, it should fail to connect to its gateway, or to the Internet. This indicates that it has loaded its configuration and static IP settings.
If there is not a DHCP connection available locally, a DHCP connection to the Internet needs to be found, before the RED can be configured.
Problem: RED has been correctly configured with a static IP address, but it is not connecting to the Internet.
Solution: The most straightforward method to validate that the static address settings applied to the RED are valid, is to test those same settings on another device. For instance, configure the ethernet port of a laptop to use the same configuration, then unplug the ethernet cable from the RED WAN port, and connect it to the laptop. Before connecting the laptop, be sure that it has a firewall enabled, and ensure that other connections such as wireless, or mobile broadband are disabled. Once the laptop is configured and connected, both IP connectivity to the internet, as well as DNS resolution should be tested. To test these settings manually, perform the following steps:
Open a command prompt (In Windows, ÿ + r, then type “cmd.exe” and click Ok.)
First, test that the internet is reachable. This can easily be done by “pinging“ an IP address. An easy address to test with is Google’s public DNS servers – 184.108.40.206.
Type the following command, then hit enter:
If the command fails completely, it may look like this:
Pinging 220.127.116.11 with 32 bytes of data: Request timed out. Request timed out. Request timed out. Request timed out. Ping statistics for 18.104.22.168: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss)
It is also possible that it may fail only partially. In this case, one or more of the replies may be Request timed out, as shown above. If either is true, this may be why the RED is failing, and the location’s IPS may need to be consulted to verify that the address settings are correct.
Request timed out
If the above test does not fail, then type
If it succeeds, it resolves www.sophos.com to an IP address, then attempts to ping it.
Once you are aware of the blink codes, what error code the RED is displaying, it may be useful to collect some additional information about your REDs configuration. Gather the following information from your Sophos XG Firewall, under Network > Interfaces and edit the device that is not functioning correctly.
The RED model, which also indicates the hardware revision, is listed on the sticker on the bottom of the appliance.
If you need to contact Sophos Support for assistance, the above information may be useful to have ready. Also, be aware of any devices such as switches, routers or other firewalls which may sit between both endpoints and their connections to the internet.
Make sure the internet type and settings of each end are recorded and available. What kind of internet connection exists at the remote office? How is that connection provided to the site?
If you've spotted an error or would like to provide feedback on this article, please use the section below to rate and comment on the article. This is invaluable to us to ensure that we continually strive to give our customers the best information possible.
Every comment submitted here is read (by a human) but we do not reply to specific technical questions. For technical support post a question to the community. Or click here for new feature/product improvements. Alternatively for paid/licensed products open a support ticket.