Created
October 17, 2019 07:49
-
-
Save MrHuxu/8f5ab1173aededf5e318e9f072872299 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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