Hello,
it is not possible for me to use ampfirewall service.
I already followed all steps on https://github.com/CubeCoders/AMP/wiki/AMP-systemd-script-(Linux)
root@server:~# /opt/cubecoders/amp/ampinstmgr updatefirewall amp
[Info] AMP Instance Manager v2.3.0.6 built 02/12/2021 15:38
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using UFW firewall.
[Info] No new firewall rules to add
[Info] No existing firewall rules to remove
What do I need to do that amp will add automatically firewall rules?
Some Information:
OS: Ubuntu 20.04.3 LTS
AMP: v2.3.0.6
Firewall: UFW
AMP-User: amp
Troubleshooting:
root@server:~# systemctl status ampfirewall.timer
● ampfirewall.timer - AMP Instance Manager Firewall
Loaded: loaded (/etc/systemd/system/ampfirewall.timer; enabled; vendor preset: enabled)
Active: active (waiting) since Fri 2021-12-10 10:10:47 CET; 4h 39min ago
Trigger: Fri 2021-12-10 14:51:12 CET; 44s left
Triggers: ● ampfirewall.service
Docs: https://github.com/CubeCoders/AMP/wiki/AMP-systemd-script-(Linux)
Dec 10 10:10:47 server systemd[1]: Started AMP Instance Manager Firewall.
root@server:~# systemctl status ampfirewall.service
● ampfirewall.service - AMP Instance Manager Firewall
Loaded: loaded (/etc/systemd/system/ampfirewall.service; enabled; vendor preset: enabled)
Active: inactive (dead) since Fri 2021-12-10 14:46:13 CET; 4min 18s ago
TriggeredBy: ● ampfirewall.timer
Docs: https://github.com/CubeCoders/AMP/wiki/AMP-systemd-script-(Linux)
Process: 284913 ExecStart=/opt/cubecoders/amp/ampinstmgr --silent updatefirewall amp (code=exited, status=0/SUCCESS)
Main PID: 284913 (code=exited, status=0/SUCCESS)
Dec 10 14:46:12 server systemd[1]: Starting AMP Instance Manager Firewall...
Dec 10 14:46:13 server systemd[1]: ampfirewall.service: Succeeded.
Dec 10 14:46:13 server systemd[1]: Finished AMP Instance Manager Firewall.
root@server:~# /opt/cubecoders/amp/ampinstmgr updatefirewall amp
[Info] AMP Instance Manager v2.3.0.6 built 02/12/2021 15:38
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using UFW firewall.
[Info] No new firewall rules to add
[Info] No existing firewall rules to remove
server:~# su - amp
amp@server:~$ ampinstmgr -l | grep -e Module -e URL
Module │ McMyAdmin
URL │ http://127.0.0.1:8080/
Module │ Minecraft
URL │ http://127.0.0.1:8081/
Module │ Minecraft
URL │ http://127.0.0.1:8083/
Module │ srcds
URL │ http://127.0.0.1:8084/
Module │ srcds
URL │ http://127.0.0.1:8085/
Module │ srcds
URL │ http://127.0.0.1:8086/
Module │ ADS
URL │ http://127.0.0.1:8082/
Module │ srcds
URL │ http://127.0.0.1:8087/
Module │ Minecraft
URL │ http://127.0.0.1:8088/
Edit
root@server:~# ampinstmgr dumpfirewall
[Info] AMP Instance Manager v2.3.0.6 built 02/12/2021 15:38
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using UFW firewall.
[Info] No firewall rules to display.
amp@server:~$ ampinstmgr dumpfirewall
[Info] AMP Instance Manager v2.3.0.6 built 02/12/2021 15:38
[Info] Release spec: Release - built by CUBECODERS/buildbot on CCL-DEV
[Info] Using UFW firewall.
[Info] No firewall rules to display.