Skip to content

Instantly share code, notes, and snippets.

@MrHuxu
Created October 17, 2019 07:49
Show Gist options
  • Save MrHuxu/8f5ab1173aededf5e318e9f072872299 to your computer and use it in GitHub Desktop.
Save MrHuxu/8f5ab1173aededf5e318e9f072872299 to your computer and use it in GitHub Desktop.
# expose the 22 port for ssh login
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT
# launch ss server and export port
ssserver -d start -c /etc/shadowsocks.json
iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 8398 -j ACCEPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment