Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: FB <register@flintz.de>
To: lartc@vger.kernel.org
Subject: [LARTC] Layer 7 packet classifier doesn't recognize packets sent by the router
Date: Sat, 22 Jan 2005 20:58:52 +0000	[thread overview]
Message-ID: <41F2BE8C.9050101@flintz.de> (raw)

Hi there,

I have a little problem. I had this some months ago but didn't solve it 
back then. I have patched my kernel with Layer 7 support and patched my 
iptables to support it, too.
Now I inserted this line in my firewall script on my router for testing 
purpose:

  $IPTABLES -t mangle -A POSTROUTING -o $INET_IFACE -p tcp -m layer7 
--l7proto http -j DROP

It works, BUT only if the connection is established by a pc BEHIND the 
router (the connection is blocked). If I try to establish a http 
connection from the router itself it works completely (layer 7 is NOT 
working, the connection is working, thats what I wanted to say *g*.
Now I changed the line above to this:

  $IPTABLES -t mangle -A POSTROUTING -o $INET_IFACE -p tcp --dport 80 -j 
DROP

and see, it works in BOTH cases. But thats no solution as I need Layer 7 
also for router-connections. I also tried ftp als layer7 protocol, same 
thing.

Anyone has an idea why this is happening?

Thanks in advance.

-FB
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

             reply	other threads:[~2005-01-22 20:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-22 20:58 FB [this message]
2005-01-23  8:31 ` [LARTC] Layer 7 packet classifier doesn't recognize packets sent by the router itself George Alexandru Dragoi
2005-01-24 18:45 ` [LARTC] Layer 7 packet classifier doesn't recognize packets sent FB

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41F2BE8C.9050101@flintz.de \
    --to=register@flintz.de \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox