Page MenuHomeFreeBSD

inetd(8): Provide HTTP proxy example using netcat
ClosedPublic

Authored by debdrup on May 10 2020, 7:31 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 19, 3:49 AM
Unknown Object (File)
Tue, Nov 19, 3:49 AM
Unknown Object (File)
Tue, Nov 19, 3:49 AM
Unknown Object (File)
Mon, Nov 18, 1:06 PM
Unknown Object (File)
Sun, Nov 17, 4:50 PM
Unknown Object (File)
Sun, Nov 17, 11:47 AM
Unknown Object (File)
Wed, Nov 13, 12:21 AM
Unknown Object (File)
Oct 5 2024, 8:16 PM
Subscribers

Details

Summary

One of the fortunes that are included in freebsd-tips talks about how
the superserver can be used to proxy connections with netcat, but there are
no examples provided. This commit adds an example with comment explaining what it does.

Test Plan

Ran igor, only got some probably-erroneous feedback.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Use -N to close nc again after the file has EOF'd.

This addresses feedback given by AllanJude on IRC.

Add comment explaining what the example achieves, add nc(1) to SEE ALSO section

Partially based on further feedback from AllanJude on IRC.

Don't forget update .Dd :-)

Fix .Dd nit and nc path nit.

Pointed out by lwshu and kevans respectively.

debdrup retitled this revision from Provide HTTP proxy example using netcat to inetd(8): Provide HTTP proxy example using netcat.May 12 2020, 9:31 PM
debdrup edited the summary of this revision. (Show Details)
This revision was not accepted when it landed; it landed in state Needs Review.May 13 2020, 2:17 AM
This revision was automatically updated to reflect the committed changes.