5

I would like to allow access from IP address based upon wildcards

e.g.

64.201.52*

How can this be done with UFW?

Have tried sudo ufw allow from 64.201.52.*

Franco
  • 163
  • 1
  • 4
  • Something similar was covered at Ask Ubuntu: [UFW - allow range of IP addresees?](http://askubuntu.com/questions/646424/ufw-allow-range-of-ip-addresees) – Paul Nov 18 '15 at 06:03

1 Answers1

9

The jargon is not an ip-address wildcard but typically you grant/deny access to a network range or a (group of) subnet(s).

The equivalent to 64.201.52.* formatted as a subnet is then either 64.201.52.0/24 or 64.201.52.0/255.255.255.0

HBruijn
  • 77,029
  • 24
  • 135
  • 201