Jump to content
Калькуляторы

ipfw ограничение сессий на пользователя борьба с торрентщиками при использовании nat

Всем привет! Прошу подсказки как в ipfw сделать, чтобы все пользователи nat имели лимит сессий = 50.

Share this post


Link to post
Share on other sites

man ipfw

limit {src-addr | src-port | dst-addr | dst-port} N

The firewall will only allow N connections with the same set of parameters as specified in the rule. One or more of source and destination addresses and ports can be specified. Currently, only IPv4 flows are supported.

Share this post


Link to post
Share on other sites

ставлю вначале правил

ipfw add allow ip from any to 192.168.0.0/24 limit src-addr 50

 

и пропадает инет

Edited by psychotron

Share this post


Link to post
Share on other sites

подскажу:

Support for stateful operation comes through the check-state, keep-state and limit options of rules.
если не поможет - перечитываете man ipfw до полного просветления ...

Share this post


Link to post
Share on other sites
подскажу:
Support for stateful operation comes through the check-state, keep-state and limit options of rules.
если не поможет - перечитываете man ipfw до полного просветления ...

вы можете правило написать для тех кто в танке?

Share this post


Link to post
Share on other sites

Подскажите сколько сейчас надо рядовому пользователю сессий для комфортной работы, без учета торрента.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this