Every firewall port rule on a red or black box Amphion now has a Direction: Inbound, Outbound or Both. Until now an open port worked both ways, so a device could be reached on that port and could also start its own connections out on it. Direction lets you open a port only the way it is actually needed.

Port rules run on the machine’s Amphion: a red box, or a black box when one Amphion does both the network and machine jobs. A Greenbox serves the network and isn’t covered here.

Ports are opened at three levels, and Direction can be set at each one:

  1. Master list: applies to all Amphions, managed by the Super Admin. See How to Define Amphion MRFD Red and Black Box Default Configuration TCP/IP Ports.
  2. Machine level: applies to the Amphions on one machine. See How To Add Machine Ports.
  3. Device level: applies to one device. See How To Add Device Ports.

Existing master and machine port rules have been set to Both, and existing device ports to Inbound, which is how each already worked. Nothing changes on your machines until you edit a rule.

What Each Direction Does

Direction controls who is allowed to start a new connection on the port.

Direction Who can start a new connection Typical use
Inbound Remote Service or your factory network, connecting in to the device Reaching an HMI, PLC or OPC UA server during a SERVICE session. Default for new device ports.
Outbound The device, connecting out to your factory network A device that pushes data to a server on your LAN
Both Either side Same as before this change for master and machine ports. Default for new master and machine port rules.

Replies on a connection that is already open are always allowed. An Inbound only port still lets the device answer a session that came in, it just cannot dial out on that port by itself.

An Outbound rule opens the Amphion side only. Your own network, switch or firewall must also allow the device to reach its destination. ei3 does not control that part.

Port Direction covers traffic on your factory network. To control which internet destinations a device can reach on an S14 Greenbox, see How To Restrict Device Internet Access With an Egress Allowlist (Amphion S14).

Instructions

Machine ports

  1. Log into SERVICE and go to Admin > Machines.
  2. Search for the machine and select the Machine Ports icon.
  3. To add a port, select the + icon next to Action. To change one, select Edit on its row.
  4. Fill in Name, Description, Port number and protocol as before, then choose Inbound, Outbound or Both from the Direction dropdown.
  5. Select the Save icon. The Machine Ports list now shows a Direction column for every rule.

New Red Box Machine Port form with the Direction dropdown

The new port form, with Direction set to Inbound.

Port list with the Direction column

The Machine Ports list, with the Direction column.

Device ports

Allowed TCP Ports is now a list of rows instead of one comma separated text box, so each port can have its own Direction.

  1. Log into SERVICE and open the device, either from Admin > Machines (Devices icon in the Configure column) or from Admin > Devices.
  2. Select the Edit icon in the Action column to open Edit Device Information.
  3. Under Allowed TCP Ports, type the port or range (for example 4840 or 4840:4849) in the empty row and choose its Direction (Inbound unless you change it), then select the + icon to add it. Use the trash icon to remove a row. Up to 15 entries are allowed.
  4. Leave Data TCP Port as it is.
  5. Save the device.

Allowed TCP Ports on Edit Device Information, with a Direction on each row

Allowed TCP Ports with a Direction on each row. Add a new port in the empty row at the bottom.

Your existing device ports have already been moved into rows and set to Inbound, which is how they already worked.

Master list (Super Admin only)

  1. Log into SERVICE and go to Admin > Amphion Default Ports.
  2. Select the + icon, or Edit on an existing entry.
  3. Choose the Direction, then select Save.

New Red Box Default Port form with the Direction dropdown

The new default port form. Direction starts at Both.

Applying and Checking the Change

A new Direction takes effect only after a new Amphion configuration is generated and applied to the box. See How to remotely update your Amphion’s network configuration.

After the update, the Firewall Ports tab in the Amphion web UI lists every open port with its Device, Tool, Protocol, Port, Source and Direction. Device ports now appear there too, with Device Port in the Source column alongside Master Port and Machine Port.

To add a temporary rule, fill in Device name, Tool, protocol and Port in the row at the bottom of the table, choose a Direction, and select Add port. It shows Temporary Port as its Source and is removed on the next reboot.

Temporary port row with the Direction dropdown and Add port button

Adding a temporary port in the Amphion web UI.

Firewall Ports tab on the Amphion S14 showing the Source and Direction columns

The Firewall Ports tab, with the Source and Direction columns.

Every Direction change is recorded in the audit log with the old and new value. Open it from the History icon at the top of the Machine Ports page.

Important Notes

  • Check before you restrict. Before changing a rule from Both to Inbound or Outbound, confirm which side starts the connection. If you choose the wrong one, that traffic is blocked after the next configuration update. A port is only restricted when it is set that way at every level where it appears.
  • Black box (hybrid) networks. On a black box, a port set to Both still opens inbound only, as it always has. Choosing Both does not open outbound traffic to the internet.

FAQ

Do I need to change anything after this release? No. Every existing rule keeps the direction it already worked in: Both for master and machine ports, Inbound for device ports.

What happens if the same port is set at two levels with different Directions? The most open setting wins. For example, if the master list sets a port to Both and a device sets the same port to Inbound, the port stays open both ways. If one level sets Inbound and another sets Outbound, the port opens as Both. To restrict a port, set it the same way at every level where it appears.

Availability: Some features may require specific configurations or permissions. Contact your ei³ representative for details.

Related Articles

Related articles: