Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Shorewall & Layer7-Support
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Pette
n00b
n00b


Joined: 14 Feb 2004
Posts: 46
Location: Hamburg / Germany

PostPosted: Sat Aug 12, 2006 11:40 am    Post subject: Shorewall & Layer7-Support Reply with quote

Hey there.
Is there anyone who has shorewall running with layer7-support?
Is there a good howto on this somewhere? I found some howtos for layer7 and some for shorewall, but not one for both.

Any help appreciated.

Greetz, Pette.
Back to top
View user's profile Send private message
Pette
n00b
n00b


Joined: 14 Feb 2004
Posts: 46
Location: Hamburg / Germany

PostPosted: Mon Aug 14, 2006 4:03 pm    Post subject: Reply with quote

Has noone really ever made an attempt on this? I would be very interested!
Back to top
View user's profile Send private message
thepustule
Apprentice
Apprentice


Joined: 22 Feb 2004
Posts: 212
Location: Toronto, Canada

PostPosted: Mon Aug 14, 2006 8:27 pm    Post subject: Reply with quote

A little more specific example of what you are trying to do would help.
Back to top
View user's profile Send private message
-Craig-
Guru
Guru


Joined: 03 Jun 2004
Posts: 333

PostPosted: Mon Aug 14, 2006 9:17 pm    Post subject: Reply with quote

I guess things like filtering a website that contains a certain word?
Or filtering outgoing HTTPS (HTTP CONNECT) to port 443 that contains something like "SSH-2.0-OpenSSH_4.3" ?
Well, iptables is capable of filtering strings since 2001: http://www.securityfocus.com/infocus/1531

Or check this out: http://l7-filter.sourceforge.net/
Back to top
View user's profile Send private message
Pette
n00b
n00b


Joined: 14 Feb 2004
Posts: 46
Location: Hamburg / Germany

PostPosted: Mon Aug 14, 2006 9:53 pm    Post subject: Reply with quote

-Craig- wrote:
Or check this out: http://l7-filter.sourceforge.net/

Thats exactly what I ment. Sorry I didn't mention it in my first post already...

On http://l7-filter.sourceforge.net/HOWTO#Doing they show an example of Bandwidth-Restriction:
Code:
iptables -t mangle -A POSTROUTING -m layer7 --l7proto imap -j MARK --set-mark 3

then
Code:
tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle 3 fw flowid 1:3


Thats kind of what I want to accomplish using shorewall, instead of using iptables and tc directly.

Hope this makes it a little more clear.

Greetz, Pette.
Back to top
View user's profile Send private message
thepustule
Apprentice
Apprentice


Joined: 22 Feb 2004
Posts: 212
Location: Toronto, Canada

PostPosted: Mon Aug 14, 2006 10:58 pm    Post subject: Reply with quote

I'd be worried about how much this might slow your network throughput or raise cpu during high traffic
Back to top
View user's profile Send private message
-Craig-
Guru
Guru


Joined: 03 Jun 2004
Posts: 333

PostPosted: Tue Aug 15, 2006 10:44 am    Post subject: Reply with quote

I'd have a try at least...
Back to top
View user's profile Send private message
assaf
Apprentice
Apprentice


Joined: 14 Feb 2005
Posts: 152
Location: http://localhost

PostPosted: Tue Aug 15, 2006 10:45 am    Post subject: Reply with quote

I used the l7-filter package a while back to do some traffic shaping. It worked okay I guess, until a kernel upgrade broke it. Also in the meantime a newer shorewall version was released that has internal traffic shaping and allows you to write rules for user/group. So I started using that instead (I run file sharing progs under p2p user, so I use that for shaping).
Back to top
View user's profile Send private message
Pette
n00b
n00b


Joined: 14 Feb 2004
Posts: 46
Location: Hamburg / Germany

PostPosted: Tue Aug 15, 2006 6:49 pm    Post subject: Reply with quote

assaf wrote:
I used the l7-filter package a while back to do some traffic shaping. It worked okay I guess, until a kernel upgrade broke it.

Did you use shorewall with the l7-filters? If so, can you tell me how?
Back to top
View user's profile Send private message
assaf
Apprentice
Apprentice


Joined: 14 Feb 2005
Posts: 152
Location: http://localhost

PostPosted: Tue Aug 15, 2006 8:05 pm    Post subject: Reply with quote

Pette wrote:
assaf wrote:
I used the l7-filter package a while back to do some traffic shaping. It worked okay I guess, until a kernel upgrade broke it.

Did you use shorewall with the l7-filters? If so, can you tell me how?


Well, not directly. I had a custom script run from shorewall as tcstart. Basically copied it from some iptables how-to.
Back to top
View user's profile Send private message
Pette
n00b
n00b


Joined: 14 Feb 2004
Posts: 46
Location: Hamburg / Germany

PostPosted: Fri Aug 18, 2006 9:33 pm    Post subject: Reply with quote

assaf wrote:
Well, not directly. I had a custom script run from shorewall as tcstart. Basically copied it from some iptables how-to.


Hm, so it seems like its not possible to include l7-filters in shorewall directly at the moment, right? Or does anybody else have an idea how to accomplish this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum