翻翻

iptable -> ssr -> sniproxy

#ssr-iptable.sh

/sbin/iptables -t nat -A PREROUTING -p tcp --dport $2 -j DNAT --to-destination $1
/sbin/iptables -t nat -A PREROUTING -p udp --dport $2 -j DNAT --to-destination $1
/sbin/iptables -t nat -A POSTROUTING -p tcp -d $1 --dport $2 -j SNAT --to-source $3
/sbin/iptables -t nat -A POSTROUTING -p udp -d $1 --dport $2 -j SNAT --to-source $3

#ssr-install.sh

#!/bin/bash
sudo apt-get install unzip -y
wget https://github.com/shadowsocksrr/shadowsocksr/archive/manyuser.zip
unzip manyuser.zip
cd shadowsocksr-manyuser/shadowsocks
#python server.py -p 8443 -k $1 -m none -O auth_chain_a -o tls1.2_ticket_auth

发表评论