0

I have two ips on my machine, 193.70.80.99 and 51.68.55.231

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

And open port 25565 (tcp) for 51.68.55.231

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    193.70.80.99
[ 3] 22/tcp                     ALLOW IN    193.70.80.99
[ 4] 80/tcp                     ALLOW IN    193.70.80.99
[ 5] 25565/tcp                  ALLOW IN    51.68.55.231
[ 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.