Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - barryfo

#1
Hi All,

I have been trying to find the correct format for the trafficshaper APIs.  The only result I ever get is "failed" which is basically any validation failure.  Trying to parse through the code and haven't had any luck getting the right combination.  As anyone added pipes, queues, and rules via Rest?

An example of one of my attempts:

curl -v -XPOST -d '{"number":"100","enabled":"1","bandwidth":"300","bandwidthMetric":"Kbit","mask":"none","codel_enable":"0","codel_ecn_enable":"0","pie_enable":"0","description":"TestPipe"}' -H "Content-Type: application/json" -k -u "<Key>":"<secret>" https://192.168.1.1/api/trafficshaper/settings/addpipe


{"result":"failed"}



#2
It appears to somewhat be related to QEMU support.  I changed to kvm and things worked fine.  I found this post on pfsense forum where others had the same problem. It is very strange.

https://forum.netgate.com/topic/80013/cannot-define-table-bogons/19
#3
Thanks for the tip but that didn't address the issue.  Any other ideas?
#4
Hi All,

Fairly new to OPNSense.  Trying to get a test setup under a qemu VM working.  Tried 18.7 and 19.1 both the iso and nano builds.  Each time I am not getting the basic NAT rules being applied and every time I apply configuration I get the errors as per the attached snapshot.

I am able to get traffic forwarded from the LAN to the WAN but the source IP on the WAN NATed.

This basically happens without anything but the default configuration.   Any help would be appreciated!

Barry