IPv6 addresses can be specified by enclosing the address in square brackets.
Only the superuser can forward privileged ports. By default, the local port is
bound in accordance with the GatewayPorts setting. However, an explicit
bind_address may be used to bind the connection to a specific address. The
bind_address of “localhost” indicates that the listening port be bound for
local use only, while an empty address or ‘*’ indicates that the port should be
available from all interfaces.
如下是一个动态代理转发的操作范例:
L: 127.0.0.1/192.168.56.1
R: 192.168.56.101
L# ssh -g -D 8888 root@192.168.56.101;
# netstat -nlt | grep 8888;
------------------------------------------------------------------------------
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN
------------------------------------------------------------------------------
然后,您就可以在您的浏览器里(如firefox)设置使用这个socks5代理了,使用设置为:
127.0.0.1:8888
注:动态代理转发也属于正向转发,而且默认监听本地的所有绑定地址,也可自行指定地址。