常用的网络代理工具

常用的一些网络代理工具


socat

轻量级端口转发工具,支持linux、mingw

# 安装socat
sudo apt-get install socat

# 将本机1080端口的tcp请求转发到192.168.1.100的1082端口
socat tcp-listen:1080,fork tcp:192.168.1.100:1082

dante

轻量级socks5代理工具,包含dante-server和dante-client,支持linux

使用dante-server搭建socks5代理服务

1、安装dante-server

sudo apt install dante-server 

2、编辑/etc/danted.conf文件,修改或添加以下内容

internal: eth0 port = 1080	#表示socks5服务在eth0网卡的1080端口接受请求,这里的网卡可以写成其对应的ip地址
external: eth0	#表示数据从eth0网卡出去。在有多个网卡的情况下,可以实现一张网卡提供代理服务,另一张网卡提供网络数据

# methods for socks-rules.
socksmethod: none #rfc931
# methods for client-rules.
clientmethod: none
# userid:
user.privileged: proxy
# when running as usual, it will use the unprivileged userid of:
user.unprivileged: nobody
#user.libwrap: libwrap
user.libwrap: nobody

# Allow our clients, also provides an example of the port range command.
client pass {
	from: 0.0.0.0/0 to: 0.0.0.0/0
	# clientmethod: rfc931 # match all idented users that also are in passwordfile
}
pass {
	from: 0.0.0.0/0 to: 0.0.0.0/0
	protocol: tcp udp
	command: bind connect
	# clientmethod: rfc931 # match all idented users that also are in passwordfile
}

3、重启服务

sudo systemctl restart danted

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值