pfsense:buffer_bloat
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:buffer_bloat [2020/07/15 10:15] – 192.168.1.69 | pfsense:buffer_bloat [2023/05/21 11:20] (current) – peter | ||
---|---|---|---|
Line 34: | Line 34: | ||
===== Change the Q size ===== | ===== Change the Q size ===== | ||
- | |||
<WRAP important> | <WRAP important> | ||
Line 64: | Line 63: | ||
Navigate to **Firewall -> Traffic Shaper -> Limiters**. | Navigate to **Firewall -> Traffic Shaper -> Limiters**. | ||
- | < | + | === Create " |
- | 1.) Create " | + | |
- | | + | * Tick " |
- | Name: FQ_CODEL_OUT | + | |
- | Bandwidth: 96907 Kbit/s | + | |
- | Mask: None | + | |
- | Queue Management Algorithm: Tail Drop | + | |
- | Scheduler: FQ_CODEL | + | |
- | target: 5 | + | |
- | interval: 100 | + | |
- | quantum: 300 | + | |
- | limit: 10240 | + | |
- | flows: 20480 | + | |
- | Click Save/Apply Changes | + | |
- | 2.) Add " | + | ---- |
- | Tick "Enable" | + | === Add "Out" |
- | Name: fq_codel_out_q | + | |
- | Mask: None | + | |
- | Queue Management Algorithm: Tail Drop | + | |
- | Click Save/Apply Changes | + | |
- | 3.) Create | + | * Tick "Enable" |
+ | * Name: fq_codel_out_q | ||
+ | * Mask: None | ||
+ | * Queue Management Algorithm: Tail Drop | ||
+ | * Click Save/Apply Changes | ||
- | Tick " | + | ---- |
- | Name: FQ_CODEL_IN | + | |
- | Bandwidth: 83886 Kbit/s | + | |
- | Mask: None | + | |
- | Queue Management Algorithm: Tail Drop | + | |
- | Scheduler: FQ_CODEL | + | |
- | target: 5 | + | |
- | interval: 100 | + | |
- | quantum: 300 | + | |
- | limit: 10240 | + | |
- | flows: 20480 | + | |
- | Click Save/Apply Changes | + | |
- | 4.) Add " | + | === Create |
- | | + | * Tick " |
- | Name: fq_codel_in_q | + | |
- | Mask: None | + | * Bandwidth: 83886 Kbit/s |
- | Queue Management Algorithm: Tail Drop | + | |
- | Click Save/Apply Changes | + | |
- | </code> | + | * Scheduler: FQ_CODEL |
+ | * target: 5 | ||
+ | * interval: 100 | ||
+ | * quantum: 300 | ||
+ | * limit: 10240 | ||
+ | * flows: 20480 | ||
+ | * Click Save/Apply Changes | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Add " | ||
+ | |||
+ | * Tick " | ||
+ | * Name: fq_codel_in_q | ||
+ | * Mask: None | ||
+ | * Queue Management Algorithm: Tail Drop | ||
+ | * Click Save/Apply Changes | ||
---- | ---- | ||
Line 116: | Line 119: | ||
==== Create Floating Rules ==== | ==== Create Floating Rules ==== | ||
- | < | + | === Add quick pass floating rule to handle ICMP traceroute |
- | Add quick pass floating rule to handle ICMP traceroute. This rule matches ICMP traceroute packets so that they are not matched by the WAN-Out limiter rule that utilizes policy routing. Policy routing breaks traceroute. | + | |
- | Action: Pass | + | This rule matches ICMP traceroute packets so that they are not matched by the WAN-Out limiter rule that utilizes |
- | Quick: Tick Apply the action immediately on match. | + | |
- | Interface: | + | |
- | Direction: out | + | |
- | Address Family: IPv4 | + | |
- | Protocol: ICMP | + | |
- | ICMP subtypes: Traceroute | + | |
- | Source: any | + | |
- | Destination: | + | |
- | Description: | + | |
- | Click Save | + | |
- | 2.) Add quick pass floating rule to handle ICMP echo-request and echo-reply. This rule matches ping packets so that they are not matched by the limiter rules. See bug 9024 for more info. | + | Policy routing breaks traceroute. |
- | | + | * Action: Pass |
- | Quick: Tick Apply the action immediately on match. | + | |
- | Interface: WAN | + | |
- | Direction: | + | |
- | Address Family: IPv4 | + | |
- | Protocol: ICMP | + | |
- | ICMP subtypes: | + | |
- | Source: any | + | |
- | Destination: | + | |
- | Description: | + | |
- | Click Save | + | |
- | 3.) Add a match rule for incoming state flows so that they' | + | ---- |
- | Action: Match | + | === Add quick pass floating rule to handle ICMP echo-request and echo-reply === |
- | Interface: WAN | + | |
- | Direction: in | + | |
- | Address Family: IPv4 | + | |
- | Protocol: Any | + | |
- | Source: any | + | |
- | Destination: | + | |
- | Description: | + | |
- | Gateway: Default | + | |
- | In / Out pipe: fq_codel_in_q / fq_codel_out_q | + | |
- | Click Save | + | |
- | 4.) Add a match rule for outgoing | + | This rule matches ping packets so that they are not matched by the limiter rules. |
+ | |||
+ | See [[https:// | ||
+ | |||
+ | * Action: Pass | ||
+ | * Quick: Tick Apply the action immediately on match. | ||
+ | * Interface: WAN | ||
+ | * Direction: any | ||
+ | * Address Family: IPv4 | ||
+ | * Protocol: ICMP | ||
+ | * ICMP subtypes: Echo reply, Echo Request | ||
+ | * Source: any | ||
+ | * Destination: | ||
+ | * Description: | ||
+ | * Click Save | ||
+ | |||
+ | ---- | ||
+ | |||
+ | === Add a match rule for incoming | ||
+ | |||
+ | * Action: Match | ||
+ | * Interface: WAN | ||
+ | * Direction: in | ||
+ | * Address Family: IPv4 | ||
+ | * Protocol: Any | ||
+ | * Source: any | ||
+ | * Destination: | ||
+ | * Description: | ||
+ | * Gateway: Default | ||
+ | * In / Out pipe: fq_codel_in_q / fq_codel_out_q | ||
+ | * Click Save | ||
+ | |||
+ | ---- | ||
- | Action: Match | + | === Add a match rule for outgoing state flows so that they' |
- | Interface: WAN | + | |
- | Direction: out | + | |
- | Address Family: IPv4 | + | |
- | Protocol: Any | + | |
- | Source: any | + | |
- | Destination: | + | |
- | Description: | + | |
- | Gateway: WAN_DHCP | + | |
- | In / Out pipe: fq_codel_out_q / fq_codel_in_q | + | |
- | Click Save/Apply Changes | + | |
- | </code> | + | |
+ | * Action: Match | ||
+ | * Interface: WAN | ||
+ | * Direction: out | ||
+ | * Address Family: IPv4 | ||
+ | * Protocol: Any | ||
+ | * Source: any | ||
+ | * Destination: | ||
+ | * Description: | ||
+ | * Gateway: WAN_DHCP | ||
+ | * In / Out pipe: fq_codel_out_q / fq_codel_in_q | ||
+ | * Click Save/Apply Changes | ||
---- | ---- |
pfsense/buffer_bloat.1594808128.txt.gz · Last modified: 2020/07/15 10:15 by 192.168.1.69