Indoor Routers
HomeShop
EZR26-5G
EZR26-5G
  • EZR26 - 5G Router WiFi6
  • 📗Manual
    • Hardware Overview
      • Package
      • Physical Interfaces
      • Indicators
    • Installation
      • Choose Location
      • Insert SIM Card
      • Install Antennas
      • Power Supplies
    • Firmware
      • Connect And Login
      • Dashboard
      • System Admin
      • Network Interfaces
        • Local Networks
      • Mobile Modem
      • WiFi Hotspots
      • Firmware Operations
      • Recovery
    • Advanced
      • Internet & IP
      • Firewall Settings
      • Remote Access
      • Command Sets
      • Bootloader
    • Troubleshootings
  • 🧭Links
    • OutdoorRouter Store
    • Knowledge Base
    • Video Tutorials
Powered by GitBook
On this page
  • Firewall Zones
  • Port Forwards
  • i. General Settings
  • ii. Port Forward (WAN)
  • iii. Local Forwards
  • Add A New Port
  1. Manual
  2. Advanced

Firewall Settings

Last updated 3 months ago

The router firewall controls the forward packet streams from incoming network interfaces to outgoing network interfaces. It adds another layer of granularity to what can be forwarded across interfaces and which packets can be inputted and outputted.

Firewall Zones

The firewall collects interfaces into zones to filter traffic logically. A zone can be configured to any set of interfaces. This simplifies the firewall rule logic somewhat by conceptually grouping the interfaces:

  • A rule for a packet originating in a zone must enter the router on one of the zone's interfaces,

  • A rule for a packet being forwarded to a zone must exit the router on one of the zone's interfaces.

To configure the firewall zones, go to "Network > Firewall" after accessing the router. The prime tab of "General Settings" allows the modification of the firewall zones. You can use the default firewall zone settings as shown below in most conditions.


Port Forwards

Port forwarding is an application of network address translation (NAT) that redirects a communication request from one address and port number combination to another. It allows remote computers to connect to the outdoor router within a private local-area network (LAN).

i. General Settings

To enable port forwards, "Forward" options must be allowed under the "General Settings" tab of the firewall zones. Then click the "Save & Apply" button to take effect.

➀ Replace "Forward" with "Accept" in the general settings section. ➁ Scroll down to the "Zones" section and update the Forward column in the WAN row to "Accept."

ii. Port Forward (WAN)

Click the second tab labeled "Port Forwards" to configure port forwarding rules. You can refer to the preset port forward rules. Below is the step-by-step guidance for setting a new port forward rule.

  1. Name – Enter your custom reference name. e.g., Test

  2. Protocol – Select from TCP, UDP, or both. Note: If you don't know the exact protocol, choose TCP+UDP. Please select TCP or UDP if you know whether it is TCP or UDP. It can effectively reduce resource consumption.

  3. External Port – Set the port number you want to access from the external network Note: Suggest selecting the WAN port between 1025~25534. Do not use the standard ports occupied by the other services such as 23, 80, 433, 3389, 7700, 10080, etc.

  4. Destination Zone – Select LAN

  5. Internal IP Address – Select from the list of connected intranet hosts. If you can not find the host on the list, please recheck the IP settings on the host.

  6. Internal Port – Choose the port number that needs to be forwarded from the intranet host

  7. Click the "Save" button and then the "Save & Apply" button on the firewall page to execute the new settings.

Advanced Settings > NAT Loopback

NAT Loopback is turned on as the default setting. It allows intranet terminals to access local hosts using the public IP address of the routed external network interface. If you need to reduce the consumption of router resources, you can disable this function.

​

iii. Local Forwards

The 5G router supports access to another connected host through the router's IP address and port number. You can set up intranet local forwarding using iptables.

To configure local forwarding, go to the last "Custom Rules" tab to add new iptable rules. Below are example codes to forward 192.168.20.113:80 to the router's IP 192.168.20.1:1138.

Example Scripts

iptables -t nat -A PREROUTING -d 192.168.20.1 -p tcp --dport 1138 -j DNAT --to-destination 192.168.20.113:80

iptables -t nat -A POSTROUTING -d 192.168.20.113 -p tcp --dport 80 -j SNAT --to 192.168.20.1


Add A New Port

The 5G router has no port restrictions in default settings. You may need to open a new port and configure custom rules in specific applications. Here is an essential guide for that.

Go to "Network > Firewall > Tab: Traffic Rules" after accessing the router.

  • Name – Enter your custom reference name.

  • Protocol – Choose from TCP or UDP.

  • Source Zone – Leave the default WAN value unchanged.

  • Source Address – Enter the IP according to your requirements.

  • Destination Zone – Leave the default LAN value unchanged.

  • Destination Address – Enter the IP according to your requirements.

  • Destination Port – Enter the port according to your requirements.

  • Action – Choose from "Accept" or "Reject".

After inputting the above parameters, click the "Save" button. Then click "Save & Apply". After that, you will find the newly created port on the "Traffic Rules" list.

📗
Default Firewall Zone Settings on Cellular Router
i – Enable Forward Options on Cellular Router Firewall
ii – Add New Port Forward Rule on Firewall
Custom Firewall Rules of Local Forwards
5G Router Firewall Traffic Rules - Add New Port