How can limit per ip bandwidth in pf ?

2014-01-21 Thread livemoon
Hi all,

I'm using pf as my firewall and authpf as my authenticating gateway.I think
it works well. But I have two problem about it:

1. I want to limit per ip(user) bandwidth using ALTQ. I google it and
haven't found any command or conf in pf.conf which can do it. My solution
is create queue per ip(user), for example:

altq on bnx1 cbq bandwideth 10Mb queue { user1, user2, user3  userN }
queue user1 bandwidth 1% cbq(default)
queue user2 bandwidth 1% cbq
...
queue userN bandwidth 1% cbq

in the autfpf.rules

pass in quick on bnx1 from $user_ip queue $user_id

it can meet my needs, but I think it is not dynamic, I need rewrite queue
if new user added. And I don't know how many queue can be supported in ALTQ.

2. Can I restruct one user_id only ssh login once ?
--
Blog Site: livemoon.org
Twitter: mwjpiero
·Çµ­±¡ÎÞÒÔÃ÷Ö¾£¬·ÇÄþ¾²ÎÞÒÔÖÂÔ¶



Can't back to command console after exit X-windows

2012-12-19 Thread livemoon
Hi, I installed 5.2 in my Fujitsu ph521 laptop. It use AMD Brazos E350. It
can use X-windows by radeon driver. But the problem is: when I exit my cwm,
the screen become white, and cannot back to console by type any key.
How to fix it?
Thanks!

--
Blog Site: livemoon.org
Twitter: mwjpiero
·Çµ­±¡ÎÞÒÔÃ÷Ö¾£¬·ÇÄþ¾²ÎÞÒÔÖÂÔ¶



Re: A free, open source mail server solution for OpenBSD: iRedMail

2012-05-10 Thread livemoon
I used iRedMail . Good work. Thanks.

On Thu, May 10, 2012 at 3:34 PM, Zhang Huangbin
wrote:

> Dear list,
>
> I'd like to introduce iRedMail[1] to you, a free, open source mail
> server solution
> for OpenBSD and other Linux/BSD distributions: http://www.iredmail.org/
>
> Installation guide for OpenBSD is here:
> http://www.iredmail.org/install_iredmail_on_openbsd.html
>
> What iRedMail is:
>
> - A zero-cost, fully fledged, full-featured mail server solution. All used
>  packages are free and open source, provided by the Linux/BSD distribution
>  venders you trust.
>
> - An open source project, released under GPLv2, hosted on BitBucket.
>
> What iRedMail does:
>
> - Install and configure mail server related BINARY packages automatically
>  from the official software repositories provided by Linux/BSD distribution
>  venders.
>
> What benefits iRedMail provides:
>
> - Fast deployment in LESS THAN 1 MINUTE, easy to use and stable.
> - Control over your own data. You have all personal data on your hard disk,
>  it is not on somebody else's storage medium.
> - All components are free and open source softwares, and you get the bug
>  fixes and updates of the used packages from the Linux/BSD distribution
>  venders you trust, not iRedMail project.
> - Works on both non-virtualized and virtualized boxes, e.g. VMware, Xen,
> KVM,
>  OpenVZ, VirtualBox, with i386 and x86_64/amd64 support.
> - Full-featured web admin panel - iRedAdmin. You can setup mail server
>  manually with the same softwares as used in iRedMail, but you cannot find
>  a suitable web-based admin panel like iRedAdmin.
> - Works on main stream Linux/BSD distributions. No matter you switch to
> which
>  Linux/BSD distribution listed below, you can get the same mail server in
>  few minutes: Red Hat Enterprise Linux, CentOS, Scientific Linux, Debian,
>  Ubuntu, Mint, openSUSE, Gentoo, FreeBSD, OpenBSD.
>
> Hope you guys will like it. :)
>
>


--
7G5-1!N^RTCwV>#,7GD~>2N^RTVBT6