System Information
Field | Value |
---|---|
Operating System | Linux - Ubuntu 24.04.1 on x86_64 |
Product | AMP ‘Phobos’ v2.6.0.0 (Mainline) |
Virtualization | None |
Application | Application Deployment |
Module | ADSModule |
Running in Container | No |
Current State | Indeterminate |
Task
Tell AMP to update Firewall rules for all instances.
Problem Description
Issue
Suddenly wasn’t able to connect to file manager using sftp (this is affecting all my instances, both sftp and game port). I was able to narrow it down to the firewall settings and tried to run the command “sudo ampinstmgr updatefirewall”. The command listed all the ports to add but fails to add them reported a syntax error.
X@X:~$ sudo ampinstmgr updatefirewall
[Info/1] AMP Instance Manager v2.6 built 23/10/2024 20:50
[Info/1] Stream: Mainline / Release - built by CUBECODERS/buildbot on CCL-DEV
[Info/1] Release stream for instance FearNightfall01 changed from NotSpecified to Mainline
[Info/1] Using UFW firewall.
[Info/1] Adding 17 new firewall rules
[Info/1] Firewall rule to add: TCP/2223 (AMP:ADS01:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info/1] Firewall rule to add: UDP/12820 (AMP:ADS01:ADSModule.Network.MetricsServerPort)
[Info/1] Firewall rule to add: TCP/2225 (AMP:RAD201:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info/1] Firewall rule to add: TCP/2226 (AMP:Dawncraft01:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info/1] Firewall rule to add: TCP/2227 (AMP:RLCraftDregora01:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info/1] Firewall rule to add: TCP/2224 (AMP:test01:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info/1] Firewall rule to add: TCP/2228 (AMP:FearNightfall01:FileManagerPlugin.SFTP.SFTPPortNumber)
[Info/1] Firewall rule to add: TCP/25566 (AMP:RAD201:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: UDP/25566 (AMP:RAD201:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: TCP/25567 (AMP:Dawncraft01:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: UDP/25567 (AMP:Dawncraft01:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: TCP/25565 (AMP:RLCraftDregora01:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: UDP/25565 (AMP:RLCraftDregora01:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: TCP/25568 (AMP:test01:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: UDP/25568 (AMP:test01:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: TCP/25569 (AMP:FearNightfall01:MinecraftModule.Minecraft.PortNumber)
[Info/1] Firewall rule to add: UDP/25569 (AMP:FearNightfall01:MinecraftModule.Minecraft.PortNumber)
[Info/1] No existing firewall rules to remove
ERROR: Invalid syntax
For now, I only added sftp for one instance manually to the firewall settings. I would like for the AMP software to manage the firewall settings itself, but it fails doing so. Any advice on how to fix this would be great!
Reproduction Steps
- Ran command sudo ampinstmgr updatefirewall
- Checked firewall rules with ampisntmgr dumpfirewall, no rules were added
- Added port manually as a workaround
- Ran command to repair AMP
- Ran command to fix permissions