Skip to contentSkip to conversation

"Transparent" shapping

LARTC Esteban Maringolo 4 participants 7 messages Sep 2, 2002 – Sep 5, 2002

lore
Share & tools
lore
#0 lore raw

Hello,

I want to do some traffic shapping with a PC in the same IP subnet that
the "shaped" PC's.

	Graphically:

              ________              __________
             |        |            |          |
Internet-eth0| NAT/GW |eth1----eth0|  TC BOX  |eth1 --- SUBNET PC's...
             |________|            |__________|

NAT GW (Nat Gateway) Specs:
eth0 IP: AAA.BBB.CCC.DDD Public Address
eth1 IP: 192.168.0.1/24

TC BOX (Traffic Shaper):
eth0 IP: 192.168.0.2/24
eth1 IP: 192.168.0.3/24

SUBNET PCs:
Netblock: 192.168.0.10/24 - 192.168.0.254/24
Default GW IP: 192.168.0.1

Is possible to make that my TC BOX acts transparently for the subnet PCs without redefine the default GW to 192.168.0.3 (the TC inner interface).

The intention is not add another Hop to the network, and lower the CPU usage of the TC BOX (i don't want to do NAT on it).

Thanks.

Signature · 1 line
Esteban A. Maringolo
#1 lore raw
Quoted 4 lines · Esteban Maringolo thus

I want to do some traffic shapping with a PC in the same IP subnet that
the "shaped" PC's.
The intention is not add another Hop to the network, and lower the CPU usage of the TC BOX (i don't want to do NAT on it).

Sorry i haven't read u're full mail yet, as i'm in a hurry to go home :-) But plz check out the proxy-arp option I have deployed this successfully using proxy-arp on a linux box with same network and tc

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

#2 lore raw
In reply to Esteban Maringolo
Quoted 24 lines · Esteban Maringolo

Hello,

I want to do some traffic shapping with a PC in the same IP subnet that
the "shaped" PC's.

	Graphically:

              ________              __________

Internet-eth0| NAT/GW |eth1----eth0| TC BOX |eth1 --- SUBNET PC's...

             |________|            |__________|

NAT GW (Nat Gateway) Specs:
eth0 IP: AAA.BBB.CCC.DDD Public Address
eth1 IP: 192.168.0.1/24

TC BOX (Traffic Shaper):
eth0 IP: 192.168.0.2/24
eth1 IP: 192.168.0.3/24

SUBNET PCs:
Netblock: 192.168.0.10/24 - 192.168.0.254/24
Default GW IP: 192.168.0.1

Quoted 5 lines

Is possible to make that my TC BOX acts transparently for the subnet PCs without redefine the default GW to 192.168.0.3 (the TC inner interface).

The intention is not add another Hop to the network, and lower the CPU usage of the TC BOX (i don't want to do NAT on it).

You can put the box in bridge mode and use the u23 filter. There is a patch floating around to enable iptables on the bridged box. You can asign the box an ip-address so you can reach it, but all traffic passes thru and is shaped.

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#3 lore raw
In reply to Esteban Maringolo

Hello Stef,

Quoted 13 lines · Stef Coene
Quoted 12 lines · Esteban Maringolo

Hello,

I want to do some traffic shapping with a PC in the same IP subnet that
the "shaped" PC's.

	Graphically:

              ________              __________

Internet-eth0| NAT/GW |eth1----eth0| TC BOX |eth1 --- SUBNET PC's...

             |________|            |__________|
Quoted 7 lines
Quoted 2 lines

Is possible to make that my TC BOX acts transparently for the subnet PCs without redefine the default GW to 192.168.0.3 (the TC inner interface).

You can put the box in bridge mode and use the u23 filter. There is a patch floating around to enable iptables on the bridged box. You can asign the box an ip-address so you can reach it, but all traffic passes thru and is shaped.

I've worked a little with bridging on linux, but you're trying to say "u32" filter, right? Because i've never heard about u23 filter (google doesn't say anything).

I'll keep trying.

Thanks.

Signature · 2 lines
Esteban A. Maringolo
Buenos Aires, Argentina
#4 lore raw
In reply to Esteban Maringolo
Quoted 3 lines

I've worked a little with bridging on linux, but you're trying to say "u32" filter, right? Because i've never heard about u23 filter (google doesn't say anything).

Indeed u32 :)

Quoted 1 line

I'll keep trying.

Good luck :)

Stef

Signature · 8 lines
[email protected]
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
#5 lore raw
In reply to Esteban Maringolo
Quoted 6 lines · Rohan Almeida
Quoted 4 lines · Esteban Maringolo thus

I want to do some traffic shapping with a PC in the same IP subnet that
the "shaped" PC's.
The intention is not add another Hop to the network, and lower the CPU usage of the TC BOX (i don't want to do NAT on it).

Quoted 6 lines

Sorry i haven't read u're full mail yet, as i'm in a hurry to go home :-) But plz check out the proxy-arp option I have deployed this successfully using proxy-arp on a linux box with same network and tc

I dosn't see it as a solution, perhaps i misunderstand the concept.

The search keeps going...

Does anybody knows where to find the "Bridger Filter" patch for kernel 2.4.18?

I want to be able to use bridging and netfilter (with iptables) capabilities simultaneously in my linuxbox.

Thanks.

Signature · 2 lines
Esteban A. Maringolo
Buenos Aires, Argentina
#6 lore raw
In reply to Esteban Maringolo

Esteban,

I think this is the stuff you need (but I'm not positive!):

http://bridge.sourceforge.net/

http://bridge.sourceforge.net/devel/bridge-nf/bridge-nf-0.0.7-against-2.4.18.diff

-Martin

: > > I want to do some traffic shapping with a PC in the same IP subnet that
: > > the "shaped" PC's.
: > > The intention is not add another Hop to the network, and lower the CPU : > > usage of the TC BOX (i don't want to do NAT on it).
: >
: > Sorry i haven't read u're full mail yet,
: > as i'm in a hurry to go home :-)
: > But plz check out the proxy-arp option
: > I have deployed this successfully using
: > proxy-arp on a linux box with same network
: > and tc
:
: I dosn't see it as a solution, perhaps i misunderstand the concept. :
: The search keeps going...
:
: Does anybody knows where to find the "Bridger Filter" patch for kernel : 2.4.18?
:
: I want to be able to use bridging and netfilter (with iptables) : capabilities simultaneously in my linuxbox.
:
: Thanks.
:
:

Signature · 6 lines
Martin A. Brown --- SecurePipe, Inc. --- [email protected]


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