FireBrick Traffic Shaping: Difference between revisions
Appearance
Content deleted Content added
mNo edit summary |
|||
| (12 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[File:2700-small.png|link=:Category:FireBrick]] |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
*FireBrick are being used to traffic shape tenants in a serviced office setup where the alternative products to do the job were many times the cost. |
|||
| ⚫ | |||
If a managed office already has network infrastructure then the FireBrick can work in a proxy-arp mode, and physically sit on your network between your router and your LAN. |
If a managed office already has network infrastructure then the FireBrick can work in a proxy-arp mode, and physically sit on your network between your router and your LAN. |
||
=Config Examples= |
=Config Examples= |
||
==Proxy-arp Mode== |
==Proxy-arp Mode== |
||
If you want the Firebrick to be 'invisible' on your LAN, |
If you want the Firebrick to be 'invisible' on your LAN, i.e., you have machines on the LAN which use the gateway IP of your router, and you do not want to use the FireBrick as the router, then setting proxy-arp on the subnets is required. - this will then proxy arps between the FireBricks LAN and WAN, both ways. -Note broadcast traffic is not passed through the FireBrick - so the router won't be able to do DHCP - the FireBrick can, or another host on the LAN can instead. |
||
Here is a config snipet where physical ports are as follows: |
Here is a config snipet where physical ports are as follows: |
||
| Line 18: | Line 23: | ||
*192.0.2.245 has been assigned to the FireBrick |
*192.0.2.245 has been assigned to the FireBrick |
||
*192.0.2.2-253 is used for the various clients on the LAN |
*192.0.2.2-253 is used for the various clients on the LAN |
||
<syntaxhighlight> |
<syntaxhighlight> |
||
| Line 29: | Line 35: | ||
</interface> |
</interface> |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
We're simply setting the same IP address on both sides on the FireBrick, and setting proxy-arp=true. |
|||
==Traffic Shaping configuration== |
|||
First we need some shapers - these define the speed lanes/tunnels/pipes: |
|||
<syntaxhighlight> |
|||
<shaper name="Customer A" egress="500000" ingress="500000"/> |
|||
<shaper name="Customer B" egress="3000000" ingress="3000000"/> |
|||
</syntaxhighlight> |
|||
Here we have defined 2 shapers, one with 500kbit/s up/down, and one with 3Mbit/s up/down. |
|||
These shapers can then be used in rules, e.g.: |
|||
<syntaxhighlight> |
|||
<route-override> |
|||
<rule name="Customer A" source-ip="192.0.2.2" set-graph="Customer A"/> |
|||
<rule name="Customer B" source-ip="192.0.2.3" set-graph="Customer B"/> |
|||
</route-override> |
|||
</syntaxhighlight> |
|||
Here we have set specific IP addresses to go through specific shapers, so 192.0.2.2 will get 500K/bs and 192.0.2.3 will get 3Mbit/s. |
|||
[[Category:FireBrick|traffic]] |
|||