Hi,
I want to open a port to this specific subnet 172.16.0.0/24.
I read the community doc.
This is the command to allow incoming connections from a subnet
But seems like the above ^^ command will open all ports to that subnet. I want to open only a single port.Allow by Subnet
You may use a net mask :
sudo ufw allow from 192.168.1.0/24
I tried this but didn't work
What is right command ?Code:sudo ufw allow from 172.16.0.0/24 any <port> ERROR: Wrong number of arguments
Bookmarks