Pfsense CLI/API option for remote program execution



  • Hi all,
     I am using pfsense 2.0 built in freebsd 8.2.  My purpose is use pfsense as a traffic shaper.  I need to shape the traffic per IP based.  As it is freebsd, I have used ipfw command  after loading the module ipfw and dummynet.  For simplicity, I have used the following.

    Note: 172.20.31.0/24 is my LAN and 192.168.1.0/24 is WAN and lanif and wanif is my interfaces.
    ipfw pipe 10 config bw 256Kbit/s
    ipfw pipe 20 config bw 128Kbit/s
    ipfw add 10 pipe 9 ip from 172.20.31.25 to any http,https,ftp out via wanif
    ipfw add 11 pipe 20 ip from  any  to 172.20.31.25 http,https,ftp in via wanif

    After that I tried testing the bw from the pc 172.20.31.25, using wget ( wget http://192.168.1.1/bigfile )
    The bandwidth is 11Mbps and did not worked out.

    Note: Using Pfsense->web-> Firewall->TrafficShaper->Wizard, i applied the rule and tested, it works. But ipfw show command did not show what are the queues, pipes and rules are created explicitly.

    Do I missing anything?

    Note: easyrule does not support to configure the trafficshaping property.

    The objective of CLI is, Another program need to control the bandwidth dynamically through API/SSH CLI.

    Thanks,
    Bala


Locked