how to add rule by UFW that will allow connect to let's say SSH from ip range 10.0.0.10-10.0.0.20 ?
does UFW supports --src-range function like iptables?
how to add rule by UFW that will allow connect to let's say SSH from ip range 10.0.0.10-10.0.0.20 ?
does UFW supports --src-range function like iptables?
Referring to this question:
https://askubuntu.com/questions/646424/ufw-allow-range-of-ip-addresees
One way to do it is to split it into several rules (not exhaustively listing out all IP addresses though):
Considering that 10.0.0.10-20: (I only list out
...
...
You would need 4 rules:
ufw allow from 10.0.0.10/31
ufw allow from 10.0.0.12/30
ufw allow from 10.0.0.16/30
ufw allow from 10.0.0.20