Page MenuHomeFreeBSD

pf: Add a sysctl to limit work done for rdr source port rewriting
ClosedPublic

Authored by markj on Fri, Aug 30, 5:30 PM.
Tags
None
Referenced Files
F94254206: D46495.id143193.diff
Mon, Sep 16, 3:38 PM
Unknown Object (File)
Thu, Sep 12, 7:06 PM
Unknown Object (File)
Thu, Sep 12, 4:15 AM
Unknown Object (File)
Wed, Sep 11, 11:14 AM
Unknown Object (File)
Tue, Sep 10, 3:08 PM
Unknown Object (File)
Mon, Sep 9, 4:43 PM
Unknown Object (File)
Mon, Sep 9, 3:18 PM
Unknown Object (File)
Sun, Sep 8, 6:44 PM

Details

Summary

It was pointed out that the current approach of exhaustively searching
for a free source port might be very time consuming. Limit the amount
of work that we might do before giving up.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Fri, Aug 30, 5:30 PM

We should probably document this in pf(4).
And I should see about adding the others that are missing from that too.

This revision is now accepted and ready to land.Fri, Aug 30, 7:58 PM

Mention the sysctl in pf.4 and pf.conf.5.

This revision now requires review to proceed.Mon, Sep 9, 5:42 PM

I know I'm listed as a reviewer, but I can't assess the code change here. The gist of it looks good, though. I'd be a lot less worried about enabling the feature with this limiter in place.

It may want a man page date update.

This revision is now accepted and ready to land.Mon, Sep 9, 5:55 PM