LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   syntax for ranges of ip's (https://www.linuxquestions.org/questions/linux-newbie-8/syntax-for-ranges-of-ips-172136/)

wedgeworth 04-19-2004 01:56 PM

syntax for ranges of ip's
 
what is the syntax for a ip's.

exactly how do i set up ranges using the ip's inside the ipchains. explain how to write 192.168.1.0 -> 192.168.1.255 as a range, and why exactly so that i could write any range i needed. thnx....

Tinkster 04-19-2004 02:29 PM

/me welcomes the last of the Mohikans:"A kernel 2.2 user!"

As for the IP ranges - that's nothing specific to ipchains/iptables,
but rather has to do with subnetting.
http://www.linuxjournal.com/article.php?sid=6287



Cheers,
Tink

Mara 04-19-2004 04:40 PM

Re: syntax for ranges of ip's
 
Quote:

Originally posted by wedgeworth
explain how to write 192.168.1.0 -> 192.168.1.255 as a range, and why exactly so that i could write any range i needed. thnx....
192.168.1.0 -> 192.168.1.255 is 192.168.1.0/255.255.255.0 or 192.168.1.0/24
255.255.255.0 or /24 means 24 bits from the beginng of the address must match.


All times are GMT -5. The time now is 05:26 PM.