Jarjar Apprentice
Joined: 21 Jul 2002 Posts: 265 Location: Sweden
|
Posted: Thu Mar 22, 2007 7:37 pm Post subject: Simple iptables matching question |
|
|
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] |
|