This commit is contained in:
Konano 2023-11-24 23:19:46 +08:00
parent c6fb040aad
commit 845ceebcc3
2 changed files with 4 additions and 0 deletions

View File

@ -148,6 +148,8 @@ if command_exists exa; then
alias ef='exa -lTa -BhHigSmu'
fi
command_exists docker && alias gost='docker run --rm -p 9443:9443 --cpus=0.2 --memory=256mb gogost/gost -L socks5://nano:QpuwAqcsP8Xp@:9443'
_systemctl_unit_state() {
typeset -gA _sys_unit_state
_sys_unit_state=( $(__systemctl list-unit-files '$PREFIX*' | awk '{print $1, $2}') )

View File

@ -35,3 +35,5 @@ check_and_add_iptables INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
check_and_add_iptables INPUT -i lo -j ACCEPT
# dropped for INPUT by default
iptables -P INPUT DROP
add_input_tcp_filter 9443 gost-proxy