LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-10-2011, 10:09 PM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Rep: Reputation: 0
iptable rule in Chain RH-Firewall-1


Gud day to all,

Can any one tell me the command for iptable rule to add in Chain RH-Firewall-1 to block ftp port & the ftp server was configured in public ip address,i searched in google but i did'nt get the exact command for iptables rule in Chain RH-Firewall-1.

Thanks,
Ram-ecare
 
Old 03-11-2011, 01:17 AM   #2
vishnu_sreekumar
Member
 
Registered: Jan 2006
Location: India
Distribution: Ubuntu, RHEL, Debian
Posts: 49

Rep: Reputation: 20
iptables -A RH-Firewall-1 -i eth0 -p tcp --dport 21 -j DROP

Check the man page of iptables for more details (and make that a habit :P).
 
1 members found this post helpful.
Old 03-11-2011, 07:29 AM   #3
rafatmb
LQ Newbie
 
Registered: Feb 2011
Posts: 27

Rep: Reputation: 3
If you are using the connection tracking, you should use:

iptables -A RH-Firewall-1 -p tcp --dport 21 -m state --state NEW,RELATED -j DROP
iptables -A RH-Firewall-1 -p udp --dport 20 -m state --state NEW,RELATED -j DROP



[]'s

Rafa
Linux, Linux and Linux! Suporte Linux
 
1 members found this post helpful.
Old 03-11-2011, 10:44 PM   #4
ramecare
Member
 
Registered: Feb 2011
Posts: 179

Original Poster
Rep: Reputation: 0
ip table rule for how to block a ftp port for a parthicular ip address in RH-Firewall-1 ?
 
  


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
Accept different source network address in iptable input chain kirukan Linux - Security 1 05-27-2010 02:09 AM
iptable how many rule iptable can manage toure32 Linux - Networking 1 05-13-2010 04:34 AM
[SOLVED] Setting Up a User Defined Redirect IPtable Chain Frank Ng'andwe Linux - Newbie 10 05-22-2009 04:46 AM
iptables chain rule specifation vlrk Linux - Newbie 1 12-04-2008 08:33 PM
Iptable-can we Set priority for rules in chain? Santoshkb Linux - Networking 5 12-26-2007 12:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:12 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