I have two ips on my machine, 188.8.131.52 and 184.108.40.206
I want to open port 22, 80 and 17071 (tcp) for 220.127.116.11
And open port 25565 (tcp) for 18.104.22.168
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 22.214.171.124 [ 3] 22/tcp ALLOW IN 126.96.36.199 [ 4] 80/tcp ALLOW IN 188.8.131.52 [ 5] 25565/tcp ALLOW IN 184.108.40.206 [ 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.