LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-15-2007, 07:18 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Rep: Reputation: 31
iptables: how to take a whole network in account?


Hi!

in order to allow an IP to to everything, I do this:
Quote:
iptables -I INPUT 1 -s zzz.yyy.zzz.xxx -j ACCEPT
now I would like to allow all computers of a network to do anything. But doing this
Quote:
iptables -I INPUT 1 -s zzz.yyy.zzz. -j ACCEPT
isn't accepted.
how should I write it?
 
Old 03-15-2007, 07:30 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
specify the network subnet, like:
Code:
iptables -I INPUT -s 192.168.1.0/24 -j ACCEPT
or alternatively, specify an IP range, like:
Code:
iptables -I INPUT -m iprange --src-range \
192.168.1.1-192.168.1.254 -j ACCEPT
 
Old 03-15-2007, 08:12 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 524

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by win32sux
specify the network subnet, like:
Code:
iptables -I INPUT -s 192.168.1.0/24 -j ACCEPT
or alternatively, specify an IP range, like:
Code:
iptables -I INPUT -m iprange --src-range \
192.168.1.1-192.168.1.254 -j ACCEPT
thanks a lot for the very clear and very quick answer!
 
  


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
is it legitimate and allowed and can be done to make another user account set uid and gid to null 0 to make another root account with different name and possibly not damage the debian system creating and using that new account BenJoBoy Linux - Newbie 12 01-29-2006 10:02 AM
cyrus email account linux account nobu Linux - Enterprise 0 10-31-2005 03:16 AM
FC3 Red Hat Network Alert Icon dosnt work under user account animehair Fedora 3 11-17-2004 09:12 PM
samba - creating network user account dclark Linux - Networking 5 04-10-2004 09:13 PM
cross network backup account needed alfy Linux - Security 1 06-01-2003 10:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 03:55 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
Open Source Consulting | Domain Registration