Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 04-07-2009, 06:04 AM   #1
LQ Newbie
Registered: Oct 2008
Location: Hyderabad
Posts: 26

Rep: Reputation: 15
How to add a rule to firewall


I have syslog receiver running on my system.And it is not receiving messages if iptables are running.If i stop iptables i am able to receive messages in /var/log/messages. syslog is running at 514 port(udp).How to add a rule to tables so that i receive messages when firewall is running.

Old 04-07-2009, 06:13 AM   #2
Senior Member
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
May be that the port is blocked.
You can add rule to accept the particular port.

iptables -A INPUT --dport 514 -j ACCEPT
Old 04-07-2009, 06:18 AM   #3
LQ Newbie
Registered: May 2007
Posts: 23

Rep: Reputation: 0
Also give entry of this line to /etc/rc.local so that this rule persist after reboot.
Old 04-07-2009, 06:53 AM   #4
LQ Newbie
Registered: Oct 2008
Location: Hyderabad
Posts: 26

Original Poster
Rep: Reputation: 15


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
some firewall rule sang_froid Linux - Security 3 02-10-2009 10:36 AM
Add temporary rule to Iptables rickh Linux - Security 3 03-04-2008 10:10 AM
Firewall-Rule Net_Spy Linux - Networking 4 11-20-2007 11:06 AM
is this firewall rule safe? melinda_sayang Linux - Security 1 12-21-2004 07:44 AM
Need A Firewall Rule linuxboy69 Linux - Software 1 11-26-2003 04:29 PM

All times are GMT -5. The time now is 02:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration