LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   IPtables (https://www.linuxquestions.org/questions/linux-newbie-8/iptables-922327/)

sekarlinux 01-05-2012 11:37 PM

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

-Sekar

corp769 01-06-2012 12:33 AM

What do you mean by any separate mailing lists? Mailing lists for what? I don't fully understand your question.....

sekarlinux 01-06-2012 03:36 AM

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

fukawi1 01-06-2012 03:40 AM

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

sekarlinux 01-09-2012 01:06 AM

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

chrism01 01-09-2012 07:36 PM

Always best to treat each interface separately.

qweeak 01-09-2012 08:29 PM

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 )..

sekarlinux 01-09-2012 11:41 PM

Thank you all


All times are GMT -5. The time now is 07:59 PM.