Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple iptables matching question
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
Jarjar
Apprentice
Apprentice


Joined: 21 Jul 2002
Posts: 265
Location: Sweden

PostPosted: Thu Mar 22, 2007 7:37 pm    Post subject: Simple iptables matching question Reply with quote

Long stort short: I've got two external interfaces, two different ISPs. I want to use one (eth0) for all traffic except bittorrent. The bittorrent traffic needs to go on the other external interface, eth2.
I think I have everything set up except the packet marking, so...

All bittorrent traffic will be on port 49000. How do I mark all such traffic (using -j MARK --set-mark)? I'm clueless when it comes to prerouting, postrouting et. al, so this should be easy.

Edit: Doohh... I figured it out, using a packet sniffer. The packets were of course leaving using random ports, so I didn't catch any of the outgoing traffic.
I solved it using L7-filter, now everything matches up just fine. Onto the next problem...
_________________
[Server etc. | C2D 2.2 @ 3.0 GHz / 4 GB RAM / 3x1 TB + 1x2 TB SATA disks + 1.5 TB ext. | Gentoo]
[Laptop | Macbook Pro 15" / Core i7 (Sandy) Quad 2.2 GHz / 16 GB RAM / Samsung 840 250 GB SSD + 1 TB + 2 TB HDD / 6750M 1 GB / OS X, Win 7]
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