add gost
This commit is contained in:
parent
c6fb040aad
commit
845ceebcc3
@ -148,6 +148,8 @@ if command_exists exa; then
|
|||||||
alias ef='exa -lTa -BhHigSmu'
|
alias ef='exa -lTa -BhHigSmu'
|
||||||
fi
|
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() {
|
_systemctl_unit_state() {
|
||||||
typeset -gA _sys_unit_state
|
typeset -gA _sys_unit_state
|
||||||
_sys_unit_state=( $(__systemctl list-unit-files '$PREFIX*' | awk '{print $1, $2}') )
|
_sys_unit_state=( $(__systemctl list-unit-files '$PREFIX*' | awk '{print $1, $2}') )
|
||||||
|
|||||||
@ -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
|
check_and_add_iptables INPUT -i lo -j ACCEPT
|
||||||
# dropped for INPUT by default
|
# dropped for INPUT by default
|
||||||
iptables -P INPUT DROP
|
iptables -P INPUT DROP
|
||||||
|
|
||||||
|
add_input_tcp_filter 9443 gost-proxy
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user