LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to check firewall log, a network application fails if client and server are on (https://www.linuxquestions.org/questions/linux-networking-3/how-to-check-firewall-log-a-network-application-fails-if-client-and-server-are-on-785268/)

amolgupta 01-28-2010 01:44 AM

How to check firewall log, a network application fails if client and server are on
 
How to check firewall log, a network application fails if client and server are on different machine are but works when the two application are on same the machine. I can ping between those two machine. I just wanted to ensure if the issue is because of firewall. I want to know what all connections were attempted recently and which were allowed and which weren't

zhjim 01-28-2010 02:37 AM

You could use tcpdump or if you have a gui installed use wireshark.
If you're brave you could write some iptables rules and tail -f on /var/log/syslog

Code:

iptables -I INPUT -s remote.host.ip.1 -j LOG --log-ip-options
iptables -I OUTPUT -d remote.host.ip.1 -j LOG --log-ip-options

Also make sure that the services are listening on the outbound interface and not localhost. Use netstat -tulpn to see where and which process are listening.

Cheers Zhjim


All times are GMT -5. The time now is 03:38 PM.