OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of barryfo »
  • Show Posts »
  • Messages
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

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.

  • Messages
  • Topics
  • Attachments

Messages - barryfo

Pages: [1]
1
General Discussion / Assistance with Adding a trafficshaper through Rest API
« on: March 08, 2019, 06:08:23 pm »
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
General Discussion / Re: Firewall/NAT rules not applying - Error rules.debug
« on: February 12, 2019, 04:14:16 pm »
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
General Discussion / Re: Firewall/NAT rules not applying - Error rules.debug
« on: February 12, 2019, 03:34:21 pm »
Thanks for the tip but that didn't address the issue.  Any other ideas?

4
General Discussion / Firewall/NAT rules not applying - Error rules.debug
« on: February 12, 2019, 12:35:24 am »
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

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2