Tool 185: TCP multiclient relay

Description:

  This tool is a relay: a client will connect to it, then it will
  connect to server. All data received from server is sent back to
  client. All data received from client is sent to server. From server's
  view point, it only sees relay as source IP address. From client's
  viewpoint, it only sees relay as destination IP address.
  This tool is different from tool 183 because several relays can be in
  use simultaneously. It can be used like a load balancer.
  
  Parameter --src-port defines the local port number to listen on.
  Optional parameter --src-ip defines the local IP address to use.
  Optional parameter --iptype defines which kind of IP address to use
  when --src-ip is unset (accepted values: ip4 and ip6).
  Optional parameter --ip4opts permits to add IP4 options encoded as
  mixed.
  Optional parameter --ip6exts permits to add IP6 options encoded as
  mixed (first byte is the next header number).
  Optional parameters --device and --src-eth are not yet implemented.
  Parameter --server-ip is the address of remote host/server.
  Parameter --server-port is the port number where to connect.
  Parameter --allowed-clients lists the IP addresses or hosts allowed
  to connect.
   

Usage:

  netwox 185 -P port -x ips -X port [-d device] [-E eth] [-I ip] [-o ip4opts] [-O ip6exts] [-t iptype] [-c ips]

Parameters:

parameter description example
-P|--src-port port source port number 1234
-x|--server-ip ips list/range of IP addresses 1.2.3.4,1.2.3.5
-X|--server-port port destination port number 80
-d|--device device device name Eth0
-E|--src-eth eth source ethernet address 0:2:3:4:5:6
-I|--src-ip ip source IP address 192.168.100.200
-o|--ip4opts ip4opts IPv4 options  
-O|--ip6exts ip6exts IPv6 extensions  
-t|--iptype iptype type to use when src-ip is unset ip4
-c|--allowed-clients ips clients allowed to connect all

Examples:

  netwox 185 -P "1234" -x "1.2.3.4,1.2.3.5" -X "80"

  netwox 185 --src-port "1234" --server-ip "1.2.3.4,1.2.3.5" --server-port "80"