LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-19-2004, 02:56 PM   #1
wedgeworth
Member
 
Registered: Aug 2003
Posts: 234

Rep: Reputation: 30
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....
 
Old 04-19-2004, 03:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
/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
 
Old 04-19-2004, 05:40 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,568

Rep: Reputation: 164Reputation: 164
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPTables - Multiple Public IP's to private IP's matneyc Linux - Security 8 05-27-2005 01:23 PM
display out of ranges yenonn Fedora 3 01-19-2005 01:54 AM
802.11 Ranges akela General 7 09-27-2003 11:53 AM
Ranges in OpenOffice CRego3D Linux - Software 0 06-19-2003 01:00 PM
C number ranges nocturnal Programming 7 05-16-2003 06:24 PM


All times are GMT -5. The time now is 04:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration