LinuxQuestions.org
Help answer threads with 0 replies.
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 01-06-2012, 12:37 AM   #1
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Rep: Reputation: Disabled
IPtables


Do we have any separate mailing list for IPTables rules in Linux machines?

-Sekar
 
Old 01-06-2012, 01:33 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,817

Rep: Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002Reputation: 1002
What do you mean by any separate mailing lists? Mailing lists for what? I don't fully understand your question.....
 
Old 01-06-2012, 04:36 AM   #3
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
Iptables

I want to add the IPtables rules to block the requests other than particular IP address/subnet.

What are the steps i have to do in a fresh linux box?

Thanks in Advance,
Sekar
 
Old 01-06-2012, 04:40 AM   #4
fukawi1
Member
 
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 190Reputation: 190
Read some tutorials on iptables for a start.

LQ isn't the place to go for step by step guides. We are happy to help you if you are experiencing a specific problem in something you are trying to do, but we wont do it for you. There are plenty of other sites out there that have good information on what you are trying to do, you just have to google for them..

I would recommend you start with the link below, and the man pages for iptables.

Since you have provided very little information about your query, this is a general guide to iptables, how it works, and how to use it.
http://www.linuxhomenetworking.com/w...Using_iptables
 
Old 01-09-2012, 02:06 AM   #5
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
Hi,

Thanks for the link.

I have prepared the iptables like to below. I want to block the requests other than particular IP/subnets.

iptables -A INPUT -i eth0 -s x.x.x.x/24 -j ACCEPT
iptables -A INPUT -i eth0 -j DROP

I have 3 more interfaces on the same server. Do i need to give these rules for each interfaces separately?

Thanks in Advacne,
Sekar
 
Old 01-09-2012, 08:36 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,411

Rep: Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397Reputation: 2397
Always best to treat each interface separately.
 
1 members found this post helpful.
Old 01-09-2012, 09:29 PM   #7
qweeak
LQ Newbie
 
Registered: Jan 2012
Posts: 24

Rep: Reputation: 2
hey,

just avoid -i option, it will be effective in all interfaces .. and what do you mean by request ? You can block protocols by -p option ( eg iptables -A INPUT -p tcp -j DROP )..
 
1 members found this post helpful.
Old 01-10-2012, 12:41 AM   #8
sekarlinux
Member
 
Registered: Dec 2011
Posts: 48

Original Poster
Rep: Reputation: Disabled
Thank you all
 
  


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 error in android: iptables-save and iptables-restore not working preetb123 Linux - Mobile 5 04-11-2011 02:56 PM
On what basis CHAIN integer values are generated in IPtables under iptables file? haariseshu Linux - Server 3 11-05-2009 05:25 AM
iptables v1.2.9: Unknown arg `/sbin/iptables' Try `iptables -h' or 'iptables --help' Niceman2005 Linux - Security 4 12-29-2005 09:20 PM
Iptables - Couldn't load target `ACCPET':/lib/iptables/libipt_ACCPET.so: z00t Linux - Security 3 01-26-2004 03:24 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 07:08 AM

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

All times are GMT -5. The time now is 05:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration