Re: [pfSense] Limiters

2018-02-22 Thread user49b

Thanks

On Feb 15, 2018, at 9:22 AM, user49b  wrote:

Hi

I currently have some limiters setup on my WiFi interface.
I limit some IP's (192.168.2.105, 192.168.1.109,...) to only have 700 Kbit/s.

So every IP (device) has 700 Kbit/s.

I want to add a "global" limit on Wifi interface so the total subnet/network 
can only have 3000 Kbit/s.
Each IP (device) can only have 700 Kbit/s of the total 3000 Kbit/s limit.

If tried putting a "global" limit for the subnet / network before and/or after 
all the IP devices with 700kbit/s under rules.
This does not seem to work.

Is something like this possible, and if possible what am I doing wrong. Maybe 
somewhere I can find documentation?


No, unfortunately you can do one or the other with limiters. You can set a 
total pipe of 3000Kb/sec then put a child underneath that masked by /32 to 
create a separate pipe for every host but you cannot additionally limit each of 
those to 700K. It does a pretty good job of not letting anyone monopolize with 
the traffic in that case. It might be worth a try. If you do that when not much 
is going on, the users can use the full 3000K.

Or you can set a top limiter of 700K with a mask of /32 which gives each host a 
700K pipe but no top limit.

You might try to combine the latter limiter configuration with a simple altq. 
You could make a simple PRIQ or perhaps CBQ with a 3000K bandwidth limit with 
just one child queue marked default (so you don’t have to worry about steering 
any traffic through it). That would prevent any transmission out that interface 
(downloads) of more than 3000K while the limiter would limit each host to 700K. 
You would have to use a different strategy to limit uploads if there was other 
traffic there you did not want to limit. Pretty sure you would need to use HFSC 
which can be daunting. Should not be too bad for something simple like that 
though. Looking though, CBQ is probably worth a look there. You can set 
separate bandwidth limits of child queues there too and it is much simpler than 
HFSC.

___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold


___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold

Re: [pfSense] ZFS on 2.4.2

2018-02-22 Thread Vick Khera
You don't need to export the pool on shutdown. Even an unclean shutdown
should survive automatically on the reboot.

I can't think of a reason ZFS would fail like you describe.

On Wed, Feb 21, 2018 at 12:23 PM, Walter Parker  wrote:

> Hi,
>
> I have 2.4.2 installed on an SG-2220 from Netgate [nice box]. I just bought
> a 6TB powered USB drive from Costco and it works great (the drive has its
> own power supply and a USB hub). I want to use it take ZFS backups from my
> home server.
>
> I edited /boot/loader.conf.local and /etc/rc.conf.local to load ZFS on boot
> and created a pool and a file system. That worked, but the memory ran low
> so I restricted the ARC cache to 1G to keep a bit more memory free and
> rebooted. When the system rebooted it did not remount the pool (and
> therefore the file system) because the pool what marked as in use by
> another system (itself). That means that the pool was not properly
> exported/umounted at shutdown.
>
> Taking a quick look a rc.shutdown, I notice that it calls a customized
> pfsense shutdown script at the beginning and then exits. Is there a good
> place in the configuration where I can put/call the proper zfs shutdown
> script so that the pool is properly stopped/exported so that it imports
> correctly on boot?
>
>
> Walter
>
> --
> The greatest dangers to liberty lurk in insidious encroachment by men of
> zeal, well-meaning but without understanding.   -- Justice Louis D.
> Brandeis
> ___
> pfSense mailing list
> https://lists.pfsense.org/mailman/listinfo/list
> Support the project with Gold! https://pfsense.org/gold
>
___
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold