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)
Sat, Dec 14, 12:17 AM
Unknown Object (File)
Nov 29 2024, 3:05 PM
Unknown Object (File)
Nov 29 2024, 12:44 PM
Unknown Object (File)
Nov 19 2024, 3:49 AM
Unknown Object (File)
Nov 19 2024, 3:49 AM
Unknown Object (File)
Nov 19 2024, 3:49 AM
Unknown Object (File)
Nov 18 2024, 1:06 PM
Unknown Object (File)
Nov 17 2024, 4:50 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.