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)
Fri, Mar 8, 2:17 PM
Unknown Object (File)
Fri, Mar 8, 2:17 PM
Unknown Object (File)
Fri, Mar 8, 2:17 PM
Unknown Object (File)
Fri, Mar 8, 2:17 PM
Unknown Object (File)
Fri, Mar 8, 2:17 PM
Unknown Object (File)
Fri, Mar 8, 2:17 PM
Unknown Object (File)
Fri, Mar 8, 2:05 PM
Unknown Object (File)
Jan 31 2024, 2:05 AM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 31041
Build 28747: arc lint + arc unit

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.