Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2022 01:06:20 +0100
From:      Goran =?utf-8?B?TWVracSH?= <meka@tilda.center>
To:        pf@freebsd.org
Subject:   Re: How to use dummynet
Message-ID:  <20221117000620.susp2ii55zg6363w@tilda.center>
In-Reply-To: <20221116183324.anduvhfex5ctdfb6@tilda.center>
References:  <20221116183324.anduvhfex5ctdfb6@tilda.center>

next in thread | previous in thread | raw e-mail | index | archive | help

--qfasrxwzpxbvgwuv
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Nov 16, 2022 at 07:33:24PM +0100, Goran Meki=C4=87 wrote:
> Hello!
>=20
> I know PF now supports dummynet in 14-CURRENT, but I couldn't find the
> syntax for it and general doc on how to use it. I could probably figure
> out some bits and pieces from the code but if there is anything written,
> I would be glad if someone could point it out.
>=20
> Regards,
> meka

Hello,

To answer my own question, there are two parts, one configured in pf.conf, =
the
other configured through dnctl.

# dnctl pipe 1 config bw 300KByte/s

In /etc/pf.conf:

pass in quick inet from <IP of my test machine> to any dnpipe 1

I used "scp -4" for the test. One more useful command is

# dnctl pipe show

I wonder if VNET works, but I'll research that on other occasion. I
figured out this much from tests for PF, so I'm not sure that's all there is
to dummynet.

Regards,
meka

--qfasrxwzpxbvgwuv
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAABCAAdFiEE1WIFkXy2ZeMKjjKEWj1TknovrLYFAmN1evgACgkQWj1Tknov
rLbYfRAAlzasbSZbl6Mwdw7DNiiIxoLBWiobFy7vMutML+EmEwiD4pOq2+ryoHhx
ryAVptPkM+k5DhJ7wGq8vnw5JlSLzQFNn3XYoq9f6QEENesqzINmVGDyDvDfeTIQ
lVeKegikMUCLjbQmRk4CIgoad2H6Z0k6wYJXMMPRKoKxgp2bEcDh7K6oC366VU8W
5EhdbQZxesQDnAZCtmSsBnAnlqdqbO3+uGYKGUQuotGkapyFaCDthLBdt71JVfCn
eVlHhu4sq4Dh/fDS4qXi0hoAnVw9BU99WQAt4KDS7a3kI9Lr37nGusCFnQSsvRHH
RKmrEx1C1f4/Dc4T43jcs/97SB6i+w4me/jZA3+BaScmmi6x9eAo8lQN+wgjKhrE
foEINgR3s91006M/54He0Uee5ety2As8IIEYGc1OvnLSOEaBP0mnIn4RvUYg4GBm
rooCqKRXpvOZF1h1Nvapg8nHREvTJjgyD04evhMc4p2XSGdetdYim6ehfzBCtF3Q
HxHWH0JpEetH9VSIYPpwle4AOLTj5dt2ZocBOmB4Go23QSId2HRc5JlcdKGuL3eq
d60CT8p6bdJR6NEwRI+0s2Thp+ZsEANis8KHPN35EDs78uDmxw0SDQnArCtJuGK4
EEsaup+Uf5vIhoGUGPnpKAy8edXchkUCiB3H3eoXXtJt1DTIWnU=
=L5f7
-----END PGP SIGNATURE-----

--qfasrxwzpxbvgwuv--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20221117000620.susp2ii55zg6363w>