• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

IPFW Limit the number of connections on IP classes and port

Radu C.

New Member


Messages: 1

#1
Hello!

I am new here, and I would have a little help from someone who can help me with the following problem:

For example, I have 5 IP classes in this form:

192.168.1.0/24
192.168.2.0/24
192.168.3.0/28
192.168.4.0/28
192.168.5.0/28

I want every IP class to limit outbound connections on specific ports. Do not exceed, for example, 3 connections per IP, or a total of 35 connections, of each IP class.

Let's say this:

192.168.1.0/24 (total 255 IPs), up to 3 connections per 1 IP, but the total limit is 35 (across the class), on ports 1000 to 2000

192.168.3.0/28 (total 16 IPs), maximum 3 connections per 1 IP, but the total limit is 35 (across the class), on ports 1000 to 2000

Can someone help me if I pray?

INFO: FreeBSD nemesis.eushells.ro 11.1-RELEASE FreeBSD 11.1-RELEASE # 0: Mon Aug 7 11:56:18 EEST 2017 sysadmin@nemesis.eushells.ro: / usr / obj / usr / src / sys / ITDATATELECOM amd64

Thank you in advance!