diff options
| author | djm <> | 2025-05-21 08:41:35 +0000 |
|---|---|---|
| committer | djm <> | 2025-05-21 08:41:35 +0000 |
| commit | 17435627329f6bb33c752a3bfef47a2a84dcebd0 (patch) | |
| tree | fd82dbfdcc3f7656a8be12d00e46cfac88c898d3 /src/usr.bin/nc/nc.1 | |
| parent | 20b5e366eb1fe07ca9058ceb8374719b69068015 (diff) | |
| download | openbsd-17435627329f6bb33c752a3bfef47a2a84dcebd0.tar.gz openbsd-17435627329f6bb33c752a3bfef47a2a84dcebd0.tar.bz2 openbsd-17435627329f6bb33c752a3bfef47a2a84dcebd0.zip | |
add SOCKS4A support to nc(1)'s proxy (-X) mode
SOCKS4A is a fairly obscure extension to the olde SOCKS4 protocol that
allows passing the destination as a string rather than a literal IPv4
address, which is the only thing that vanilla SOCKS4 supports.
The motivation for adding something so niche is to test the SOCKS4A
server code in ssh(1)'s dynamic forwarding (-D) support.
ok tb@
Diffstat (limited to 'src/usr.bin/nc/nc.1')
| -rw-r--r-- | src/usr.bin/nc/nc.1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/usr.bin/nc/nc.1 b/src/usr.bin/nc/nc.1 index 76b6dc018e..e7dc770fca 100644 --- a/src/usr.bin/nc/nc.1 +++ b/src/usr.bin/nc/nc.1 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: nc.1,v 1.98 2024/04/01 12:40:18 deraadt Exp $ | 1 | .\" $OpenBSD: nc.1,v 1.99 2025/05/21 08:41:35 djm Exp $ |
| 2 | .\" | 2 | .\" |
| 3 | .\" Copyright (c) 1996 David Sacerdote | 3 | .\" Copyright (c) 1996 David Sacerdote |
| 4 | .\" All rights reserved. | 4 | .\" All rights reserved. |
| @@ -25,7 +25,7 @@ | |||
| 25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 | .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 | .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 | .\" | 27 | .\" |
| 28 | .Dd $Mdocdate: April 1 2024 $ | 28 | .Dd $Mdocdate: May 21 2025 $ |
| 29 | .Dt NC 1 | 29 | .Dt NC 1 |
| 30 | .Os | 30 | .Os |
| 31 | .Sh NAME | 31 | .Sh NAME |
| @@ -338,12 +338,18 @@ when talking to the proxy server. | |||
| 338 | Supported protocols are | 338 | Supported protocols are |
| 339 | .Cm 4 | 339 | .Cm 4 |
| 340 | (SOCKS v.4), | 340 | (SOCKS v.4), |
| 341 | .Cm 4A | ||
| 342 | (SOCKS v.4A), | ||
| 341 | .Cm 5 | 343 | .Cm 5 |
| 342 | (SOCKS v.5) | 344 | (SOCKS v.5) |
| 343 | and | 345 | and |
| 344 | .Cm connect | 346 | .Cm connect |
| 345 | (HTTPS proxy). | 347 | (HTTPS proxy). |
| 346 | If the protocol is not specified, SOCKS version 5 is used. | 348 | If the protocol is not specified, SOCKS version 5 is used. |
| 349 | Note that the SOCKS v.4 protocol is very limited and can only be used when | ||
| 350 | the destination host can be resolved to an IPv4 address. | ||
| 351 | The other protocols pass the destination as a string to be interpreted | ||
| 352 | by the remote proxy and do not have this limitiation. | ||
| 347 | .It Fl x Ar proxy_address Ns Op : Ns Ar port | 353 | .It Fl x Ar proxy_address Ns Op : Ns Ar port |
| 348 | Connect to | 354 | Connect to |
| 349 | .Ar destination | 355 | .Ar destination |
