WAN Simulator with limiters?



  • Using pfsense 2.1, I have been trying to use implement a WAN simulator ie limiting up/down speed and introducing latency and packet loss, but so far I was not able to see any results.

    I have created floating rules as in http://forum.pfsense.org/index.php/topic,67012.msg367539.html#msg367539 and create per-NIC rules as well.

    Any help appreciated.



  • more details:
    I created "DownloadLimiter" with 300 Kbps BW, 300 ms delay, 0.01 packet and "UploadLimiter" with similar data:

    
    Limiters:
    00001:  30.000 Kbit/s   30 ms burst 0 
    q131073  50 sl.plr 0.010000 0 flows (1 buckets) sched 65537 weight 0 lmax 0 pri 0 droptail
     sched 65537 type FIFO flags 0x0 0 buckets 0 active
    00002: 300.000 Kbit/s  300 ms burst 0 
    q131074  50 sl.plr 0.010000 0 flows (1 buckets) sched 65538 weight 0 lmax 0 pri 0 droptail
     sched 65538 type FIFO flags 0x0 0 buckets 0 active
    
    

    I then created a firewall rule for the WAN interface, IPv4/ICMP/any to any/In=DownloadLimiter;Out=UploadLimiter.

    No effects when pinging a host on the WAN subnet from the LAN subnet.



  • FYI, the above is correct, it's only that changes are applied to new connections, ie if you have an endless ping running you don't see the changes (in latency for example) in realtime.
    Stop the ping, wait a few seconds and restart the ping  :-[


Log in to reply