* [LARTC] Route P2P on separate link @ 2004-05-30 0:08 Mihai Vlad 2004-05-31 5:42 ` Artūras Šlajus 0 siblings, 1 reply; 2+ messages in thread From: Mihai Vlad @ 2004-05-30 0:08 UTC (permalink / raw) To: lartc Hello, Is there a way to route p2p traffic on a separate ISP connection, just as you would choose a separate connection for http traffic? I tried all sorts of setups based on: http://www.braindump.dk/en/wiki/?wikipage=PolicyRouting but with no luck. Please help :) (ipp2p is up and running) _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] Route P2P on separate link 2004-05-30 0:08 [LARTC] Route P2P on separate link Mihai Vlad @ 2004-05-31 5:42 ` Artūras Šlajus 0 siblings, 0 replies; 2+ messages in thread From: Artūras Šlajus @ 2004-05-31 5:42 UTC (permalink / raw) To: lartc [-- Attachment #1: Type: text/plain, Size: 899 bytes --] Mihai Vlad wrote: > Hello, > > Is there a way to route p2p traffic on a separate ISP connection, just as > you would choose a separate connection for http traffic? > > I tried all sorts of setups based on: > http://www.braindump.dk/en/wiki/?wikipage=PolicyRouting but with no luck. > > Please help :) > > (ipp2p is up and running) you should MARK your packets in PREROUTING -t mangle, then identify them in iproute2 with fwmark. It's simmilar to this: table_syn=mytable $IPT -t mangle -I PREROUTING -i $LAN \ -m multiport -p udp --dports $INET_LOWLAT_UDP_PORTS -j MARK \ --set-mark 1 $IPT -t nat -I POSTROUTING -s $LAN_NET -o $INET_LOWLAT -j MASQUERADE ip rule del fwmark 1 lookup $table_syn &> /dev/null ip rule add fwmark 1 lookup $table_syn ip route del table $table_syn &> /dev/null inet_lowlat_gw=192.168.22.22 ip route add default via $inet_lowlat_gw dev $INET_LOWLAT table \ $table_syn [-- Attachment #2: x11.vcf --] [-- Type: text/x-vcard, Size: 250 bytes --] begin:vcard fn;quoted-printable:Art=C5=ABras =C5=A0lajus n;quoted-printable;quoted-printable:=C5=A0lajus;Art=C5=ABras email;internet:x11@h2o.pieva.net tel;cell:+37068958733 x-mozilla-html:FALSE url:http://h2o.sky.lt/ version:2.1 end:vcard ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-31 5:42 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-05-30 0:08 [LARTC] Route P2P on separate link Mihai Vlad 2004-05-31 5:42 ` Artūras Šlajus
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.