Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Pfsense CLI/API option for remote program execution

    Scheduled Pinned Locked Moved General pfSense Questions
    1 Posts 1 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      balaiitm
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.