Skip to content

Instantly share code, notes, and snippets.

@zfl9
zfl9 / ssredir_tproxy.sh
Created July 18, 2020 12:41
ss-redir pure tproxy transparent proxy
#!/bin/bash
start_ssredir() {
# please modify MyIP, MyPort, etc.
(ss-redir -s MyIP -p MyPort -m MyMethod -k MyPasswd -b 127.0.0.1 -l 60080 --no-delay -u -T -v </dev/null &>>/var/log/ss-redir.log &)
}
stop_ssredir() {
kill -9 $(pidof ss-redir) &>/dev/null
}