LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 05-04-2005, 03:58 PM   #1
gnomey4321
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
Unhappy Unable to see packets at firewall and beyond


I have a syslog server logging to another server, but the other server is not getting the messages. There is a service listening on the correct interface and port. If I tcpdump at the interface I see the packets getting to the machine, but past the interface I cannot see the packets. There is an iptables firewall on the machine. The firewall has a rule set up to allow the packets in, but the packets are not reaching the firewall ( that is, not being accepted, denied, or logged). Dropping the firewall, the app still does not see the packets. Removing the app and just listening with netcat does not see the packets. I tried moving the wire to another machine, and the other machine received the messages just fine. I tried a different interface card, but still the same problem. This leaves the operating system and environment. I checked sysctl fields I am familiar with, but there are a lot of them. Any ideas welcome!

Thanks
Gnomey
 
Old 05-05-2005, 09:39 AM   #2
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Just a quick thought, is there another service, possibly in (x)inetd, that is listening on the same port and taking in all the data? I was going to ask also if you had a firewall rule that drops the packets before it gets to the accept rule, but you said it worked without the firewall so that's probably not it either.
 
Old 05-05-2005, 10:16 AM   #3
gnomey4321
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Netstat confirms no other apps are listening on the port. Good suggestion though. I am positive the firewall is not the problem since I have tried it with the firewall off.
 
Old 05-06-2005, 04:37 AM   #4
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
Since it sounds like it should be working, just to be sure I think you can set up a simple log rule for iptables. Take the accept line for these packets and right above it in your firewall script add a line to log, kind of like this:
Code:
/sbin/iptables -A FORWARD -i eth1 -p TCP -o eth0 --dport 80 -j LOG
/sbin/iptables -A FORWARD -i eth1 -p TCP -o eth0 --dport 80 -j ACCEPT
(I belive that's the right syntax, my iptables knowledge is still a bit skimpy.)

And then check logfiles to make sure the packets are at least getting to the firewall.
 
  


Reply



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
Phantom firewall blocking packets kwc5811 Linux - Security 5 10-04-2005 03:53 PM
How can I set my firewall to log all dropped(rejected) packets? abefroman Linux - Security 4 06-14-2005 09:37 PM
What process sent packets dropped by firewall? cherylchase Linux - Security 4 03-18-2005 09:36 AM
unable to send packets cranium2004 Linux - Networking 2 02-05-2005 10:28 PM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:54 AM.

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