LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 01-28-2010, 01:44 AM   #1
amolgupta
Member
 
Registered: Feb 2005
Location: agra,india
Distribution: FC2
Posts: 158

Rep: Reputation: 30
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
 
Old 01-28-2010, 02:37 AM   #2
zhjim
Senior Member
 
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,435
Blog Entries: 11

Rep: Reputation: 181Reputation: 181
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
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
when box converted to ldap client, it fails to allow any account to log in naivelinux Linux - General 1 08-15-2008 05:12 PM
server client application in c sarahnetworking Programming 4 03-02-2008 05:23 PM
create network access log, block application/domain r00tb33r Linux - Networking 3 02-04-2007 07:28 PM
how do i block an application from accessing network? firewall? hisnumber666isback Linux - Software 1 05-06-2006 10:45 PM


All times are GMT -5. The time now is 02:39 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration