Ubuntu多IP配置:

  1. 编辑网络配置文件 /etc/network/interfaces
auto eth0
iface eth0 inet dhcp

auto eth0:0
iface eth0:0 inet static
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.1

auto eth0:1
iface eth0:1 inet static
address 192.168.1.101
netmask 255.255.255.0
gateway 192.168.1.1
  1. 重启网络服务:
sudo service networking restart
  1. 查看IP地址:
ip addr show eth0

Socks5搭建:

  1. 安装Socks5服务器:
sudo apt-get install dante-server
  1. 编辑配置文件 /etc/danted.conf
logoutput: /var/log/danted.log
internal: eth0 port = 1080
external: eth0
socksmethod: username
user.privileged: root
user.notprivileged: nobody
clientpass: Socks5Password
userlib:
  1. 重启服务:
sudo service danted restart
  1. 配置防火墙:
sudo iptables -A INPUT -p tcp --dport 1080 -j ACCEPT
sudo iptables -A OUTPUT -p tcp --sport 1080 -j ACCEPT
Ubuntu多IPSocks5搭建

原文地址: https://www.cveoy.top/t/topic/F6l 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录