Skip to content
TheChatArchiveThe Chat Archive
Qwenqwen3-235b-a22b-no-thinking· Alibaba (Qwen)Hugging Face LMArena Human Preference 140K

Hi, I have a fortigate 81F, this fortigate has 40 vlans, 1 vlan per office (per company)…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Qwenqwen3-30b-a3b’s answer.
  1. User

    Hi, I have a fortigate 81F, this fortigate has 40 vlans, 1 vlan per office (per company) for security purpose ! ISP internet bandwith is 1 Gbps... today, when someone goes to the internet and download it takes all the bandwith, how would you handle this situation ?

  2. Qwen Assistant

    You're facing a bandwidth contention issue on your FortiGate 81F where one user (or office) downloading large files can consume the entire 1 Gbps internet bandwidth, causing poor performance for other offices (VLANs). Since you have 40 VLANs (one per company) and want to maintain strict security separation, you need a solution that:

    • Preserves VLAN-based isolation
    • Ensures fair or controlled bandwidth distribution
    • Prevents any single office from monopolizing bandwidth

    ✅ Recommended Solution: Traffic Shaping + Policies

    FortiOS supports traffic shaping, which allows you to control and limit bandwidth usage based on policies. Here's how to implement it effectively:


    🔧 Step-by-Step Plan

    1. Create Traffic Shaping Profiles

    Go to:

    Policy & Objects > Objects > Traffic Shaper
    

    For each VLAN (company), create a traffic shaping profile with:

    • Guaranteed Bandwidth: e.g., 20 Mbps
    • Maximum Bandwidth: e.g., 50 Mbps (can be bursted if unused by others)
    • Optionally set priority (high/medium/low)

    Example: Create Shaper_VLAN10, Shaper_VLAN20, etc.


    2. Assign Shapers to Outbound Internet Policies

    Edit each firewall policy that allows internet access for a VLAN:

    Go to:

    Policy & Objects > Firewall Policy
    

    For each VLAN's internet policy:

    • Set Outgoing Interface as your WAN interface (e.g., wan1)
    • Enable Traffic Shaping and select the corresponding shaper (Shaper_VLAN10, etc.)

    Ensure policies are ordered correctly and do not overlap.


    3. Optionally Use Class-Based Weighted Fair Queuing (CBWFQ)

    If you want dynamic sharing of unused bandwidth:

    • Use shared traffic shapers with per-policy guarantees
    • This allows unused bandwidth from one VLAN to be temporarily used by others

    Example:

    • Shared global shaper of 1 Gbps
    • Each policy has guaranteed and max limits

    This is more advanced but allows better utilization.


    4. Monitor Bandwidth Usage

    Use FortiGate’s built-in tools to monitor:

    • Real-time bandwidth usage per policy
    • Historical data
    • Top users/consumers

    Go to:

    Dashboard > Network
    

    Or use FortiAnalyzer if available for centralized reporting.


    📌 Optional Enhancements

    A. Application Control + QoS

    • Use Application Control to identify and rate-limit specific applications (like YouTube, Netflix, torrents).
    • Combine with DSCP markings to prioritize business-critical apps.

    B. User-Based Traffic Shaping (if using Authentication)

    If users authenticate via FortiGate (using FSSO, LDAP, etc.), you can apply shaping per user instead of just per VLAN.


    📈 Bandwidth Allocation Strategy

    Here's an example allocation for 1 Gbps:

    Number of VLANsGuaranteed per VLANMax per VLANTotal
    40 VLANs20 Mbps50 Mbps800 Mbps guaranteed (with bursts up to 2 Gbps)

    Adjust based on actual needs (some companies may need more than others).


    🛡️ Security Reminder

    Since each VLAN represents a different company:

    • Ensure inter-VLAN routing is blocked
    • Keep firewall policies strict
    • Avoid shared policies unless necessary

    🧰 CLI Alternative (for bulk creation)

    If you're comfortable with CLI and want to automate shaping profiles:

    config firewall shaper traffic-shaper
        edit "Shaper_VLAN10"
            set guaranteed-bandwidth 20000   ! in Kbps = 20 Mbps
            set maximum-bandwidth 50000     ! 50 Mbps
            set priority medium
        next
        edit "Shaper_VLAN20"
            set guaranteed-bandwidth 20000
            set maximum-bandwidth 50000
        next
    end
    

    Then assign to policies accordingly.


    ✅ Summary

    To prevent one VLAN/company from consuming all 1 Gbps bandwidth:

    1. Create traffic shaping profiles per VLAN
    2. Assign them to outbound firewall policies
    3. Set guaranteed and max limits
    4. Optionally allow unused bandwidth to be shared
    5. Monitor usage regularly

    Let me know if you'd like help generating all the shaping profiles or policies automatically!

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.