I have two ips on my machine, and

I want to open port 22, 80 and 17071 (tcp) for

And open port 25565 (tcp) for

So that the 51.X ip cant be used to ssh in or access the web server, only the game server.

Here is my current ufw status, however this does not work, tested via trying to access web server from both ips, both unreachable.

Status: active

 To                         Action      From
 --                         ------      ----
[ 1] 22/tcp                     ALLOW IN    Anywhere
[ 2] 17071/tcp                  ALLOW IN
[ 3] 22/tcp                     ALLOW IN
[ 4] 80/tcp                     ALLOW IN
[ 5] 25565/tcp                  ALLOW IN
[ 6] 22/tcp (v6)                ALLOW IN    Anywhere (v6)

When running: sudo ufw allow 80/tcp (To accept from anywhere) Both ip's will resolve correctly to the web server and load the page to confirm there are multiple ip's on the server.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.