LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to add a rule to firewall (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-a-rule-to-firewall-717391/)

surya_prakash 04-07-2009 06:04 AM

How to add a rule to firewall
 
Hi,


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.


Thanks
prakash

linuxlover.chaitanya 04-07-2009 06:13 AM

May be that the port is blocked.
You can add rule to accept the particular port.

iptables -A INPUT --dport 514 -j ACCEPT

hasan_sust 04-07-2009 06:18 AM

Also give entry of this line to /etc/rc.local so that this rule persist after reboot.

surya_prakash 04-07-2009 06:53 AM

thanks


All times are GMT -5. The time now is 05:37 AM.