Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Calculate IP address


  • Please log in to reply
3 replies to this topic

#1 Attila001122

Attila001122

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:05:57 AM

Posted 23 May 2017 - 03:03 PM

Hi, I am new in networking.

 

We providing medical informations to online users.

We giving access to given IP addresses. No problem with the single IP, but I can not find a way to convert different IP ranges used in the .htaccess file.

 

For example how can I write 198.162.*.* ?

 

And IP-s from 198.162.152.0  to 198.162.200.0 ?

 

Is anyone can help me?

 

Thanks

 

 



BC AdBot (Login to Remove)

 


#2 toofarnorth

toofarnorth

  • Members
  • 367 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:05:57 AM

Posted 30 May 2017 - 02:36 PM

Hello

 

Maybe this helps?

 

tfn

 

A partial IP address

Example:

Allow from 10.1
Allow from 10 172.20 192.168.2

The first 1 to 3 bytes of an IP address, for subnet restriction.

A network/netmask pair

Example:

Allow from 10.1.0.0/255.255.0.0

A network a.b.c.d, and a netmask w.x.y.z. For more fine-grained subnet restriction.

A network/nnn CIDR specification

Example:

Allow from 10.1.0.0/16

Similar to the previous case, except the netmask consists of nnn high-order 1 bits.



#3 GoofProg

GoofProg

  • Banned
  • 224 posts
  • OFFLINE
  •  
  • Gender:Male
  • Local time:08:57 PM

Posted 30 May 2017 - 03:17 PM

You may try a subnet calculator.



#4 Attila001122

Attila001122
  • Topic Starter

  • Members
  • 2 posts
  • OFFLINE
  •  
  • Local time:05:57 AM

Posted 30 May 2017 - 03:50 PM

Hello

 

Maybe this helps?

 

tfn

 

A partial IP address

Example:

Allow from 10.1
Allow from 10 172.20 192.168.2

The first 1 to 3 bytes of an IP address, for subnet restriction.

A network/netmask pair

Example:

Allow from 10.1.0.0/255.255.0.0

A network a.b.c.d, and a netmask w.x.y.z. For more fine-grained subnet restriction.

A network/nnn CIDR specification

Example:

Allow from 10.1.0.0/16

Similar to the previous case, except the netmask consists of nnn high-order 1 bits.

Thanks, that is great !






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users