Skip to contentSkip to conversation

IMQ and GRE

LARTC Alexey Talikov 2 participants 3 messages Jul 2, 2002 – Jul 3, 2002

lore
Share & tools
lore
#0 lore raw

This question mainly for Patrick McHardy
As I understand problem about IMQ and GRE all been working fine, if I send packets from tunnel to another IMQ. I'm right ?

My configuration
eth2 - main link
ppp0 - PPTP (tcp control connection on port 1723-over eth2 and GRE tunnel ppp0 ) I'm not sure that only GRE packets flowing through ppp0, can somebody corect me if not so ?

modprobe imq numdevs=2
..... ( queue config for imq0 and imq1 ) iptables -t mangle -A PREROUTING -i eth2 -j IMQ --todev 0 iptables -t mangle -A PREROUTING -i ppp0 -j IMQ --todev 1 ip link set imq0 up
ip link set imq1 up

Thank for any answer !!
-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw

hi.

Quoted 4 lines · Alexey Talikov

This question mainly for Patrick McHardy
As I understand problem about IMQ and GRE all been working fine, if I send packets from tunnel to another IMQ. I'm right ?

right. the problem is when sending packets to a device which encapsulates them and both the non-encapsulated and the encapsulated go to the same imq device.

Quoted 14 lines

My configuration
eth2 - main link
ppp0 - PPTP (tcp control connection on port 1723-over eth2 and GRE tunnel ppp0 ) I'm not sure that only GRE packets flowing through ppp0, can somebody corect me if not so ?

modprobe imq numdevs=2
..... ( queue config for imq0 and imq1 ) iptables -t mangle -A PREROUTING -i eth2 -j IMQ --todev 0 iptables -t mangle -A PREROUTING -i ppp0 -j IMQ --todev 1 ip link set imq0 up
ip link set imq1 up

Quoted 8 lines

Thank for any answer !!
-----------------------------------
mailto:[email protected]
BR
Alexey Talikov
FORTEK
-----------------------------------

hmm sorry i don't really get your configuration. gre tunnel is going through ppp0 which is pptp over eth2 ?
you can just try out if it works, your computer won't crash if it doesn't. you'll see some messages about
imq beeing deadlooped in the ringbuffer if it doesn't ...

Bye
Patrick

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/