Networking Forums

Networking Forums > Computer Networking > Linux Networking > Redirect packets between interfaces.

Reply
Thread Tools Display Modes

Redirect packets between interfaces.

 
 
Tomek Jarzynka
Guest
Posts: n/a

 
      09-22-2004, 04:01 PM
Hej,
mam sobie taki problem, ze chce, aby czesc ruchu (glownie P2P)
rutowana byla przez interfejs ppp1. "Glowniejszy" defaultroute
jest na ppp0, na ppp1 nie dziala traceroute (ktos ma pomysl,
czemu?), ale polaczyc sie da, ustawiajac recznie regulke
ip route dla siakiegos ip.

Hi,
I have the following problem. I read iptables tutorials,
LARTC, without any clue for solution.
Anyway, I have two interfaces:
tun0 is reliable, fast, but has most P2P blocked on the other side
ppp0 is slower, but is totally non-firewalled.

I would like to use L7 to classify packets as P2P traffic and then
send them to ppp0 instead of tun0 (which is the default route with
higher priority).

Basically, if a packet matches a rule, its source IP should be changed
to one bound to ppp0 and then sent out through ppp0, not tun0.
Unfortunately, I have no idea how to do that.

The closest I got was:
iptables -t nat -A POSTROUTING -p tcp --dport 80 -o tun0 -j SNAT --to-source
1.1.1.1

But this doesn't redirect the packet to another interface, it only changes
the header causing the packet to never come back.

Any help would be appreciated,

--
tomasz k. jarzynka / 601 706 601 / tomee(a-t)kadu(d-o-t)net

"Dla niektórych ludzi wiara jest jedynym powodem aby być przyzwoitym
człowiekiem. (Anonim)"

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Redirect outgoing packets on SpeedTouch 580? Or replace it? alexd Home Networking 0 02-20-2009 11:43 PM
Re: Redirect outgoing packets on SpeedTouch 580? Or replace it? Rob Morley Home Networking 6 02-20-2009 07:01 PM
Re: Redirect outgoing packets on SpeedTouch 580? Or replace it? Denis McMahon Home Networking 0 02-19-2009 07:45 PM
Newbie wants to look at other people's packets (promiscuous mode fails to capture packets) George D. Wireless Internet 1 07-14-2007 07:09 AM
redirect without nat? Shahar Linux Networking 0 07-21-2004 06:19 AM



1 2 3 4 5 6 7 8 9 10 11