LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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, 01: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, 02:29 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
/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, 04:40 PM   #3
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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



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 12:23 PM
display out of ranges yenonn Fedora 3 01-19-2005 12:54 AM
802.11 Ranges akela General 7 09-27-2003 10:53 AM
Ranges in OpenOffice CRego3D Linux - Software 0 06-19-2003 12:00 PM
C number ranges nocturnal Programming 7 05-16-2003 05:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 PM.

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
Open Source Consulting | Domain Registration