tl;dt

パッケージ socks2 を使う

補足

パッケージ socks は、1.8.0.1-1 から socks 対応が外されている様子

どうしても socks (ver1) で使いたい場合、1.8.0.0-1 か 1.7.4.4-1 を利用する(インストーラーで keep しておく)

おまけ

socat のバージョンを知りたい

$ socat -V | head
socat by Gerhard Rieger and contributors - see www.dest-unreach.org
socat version 2.0.0-b90+ on Sep 18 2020 13:14:12
   running on CYGWIN_NT-10.0-19045 version 2024-08-25 16:52 UTC, release 3.5.4-1.x86_64, machine x86_64
features:
  #define WITH_STDIO 1
  #define WITH_FDNUM 1
  #define WITH_FILE 1
  #define WITH_CREAT 1
  #define WITH_GOPEN 1
  #define WITH_TERMIOS 1

socat で使えるプロトコル(address-head)を知りたい

$ socat -h | less
socat by Gerhard Rieger and contributors - see www.dest-unreach.org
Usage:
socat [options] <bi-address> <bi-address>
   options:
      -V     print version and feature information to stdout, and exit
(略)
      -4     prefer IPv4 if version is not explicitly specified
      -6     prefer IPv6 if version is not explicitly specified
   bi-address:
      pipe[,<opts>]     groups=FD,FIFO
      <single-address>%<single-address>
      <single-address>
   single-address:
      <address-head>[,<opts>]
   address-head:
      create:<filename>                   rwb     groups=FD,REG,NAMED
      exec:<command-line>                 rwb     groups=FD,FIFO,SOCKET,EXEC,FORK,TERMIOS,PTY,PARENT,UNIX
      exec:<command-line>                 r    w  groups=FD,FIFO,SOCKET,EXEC,FORK,TERMIOS,PTY,PARENT,UNIX
(略)
      socket-sendto:<domain>:<type>:<protocol>:<remote-address>rwb     groups=FD,SOCKET
      socks4:<host>:<port>                rwb   b groups=CHILD,RETRY,SOCKS4
      socks4:<socks-server>:<host>:<port> rwb     groups=FD,SOCKET,CHILD,RETRY,IP4,IP6,TCP,SOCKS4
      socks4a:<host>:<port>               rwb   b groups=CHILD,RETRY,SOCKS4
      socks4a:<socks-server>:<host>:<port>rwb     groups=FD,SOCKET,CHILD,RETRY,IP4,IP6,TCP,SOCKS4
      socks5:<host>:<port>                rwb   b groups=SOCKS5
      stderr                               w      groups=FD,FIFO,BLK,REG,SOCKET,TERMIOS,UNIX,IP4,IP6,UDP,TCP,SCTP
(略)

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS