Skip to content

net-shoes.plugin.bash¤

shoes install configurations.

group:postnet | runtype:minmon | deps: - | port: LO:8080

Usage
net-shoes help|install|uninstall|download|disable|configgen|configapply|check|run
$ net-shoes install - install shoes proxy server
$ net-shoes uninstall - uninstall shoes
$ net-shoes download - download shoes package files to pkg dir
$ net-shoes disable - disable shoes plugin
$ net-shoes configgen - generate shoes configuration files
$ net-shoes configapply - apply shoes configuration files
$ net-shoes check - check shoes plugin status
$ net-shoes run - run shoes service
$ net-shoes help - show this help message
Description

Shoes is a multi-protocol proxy server that supports HTTP, HTTPS, and SOCKS protocols.

Jangbi Configs¤

/opt/jangbi/.config
RUN_NET_SHOES=1 # enable shoes proxy
SHOES_PORTS="LO:8080" # ports to listen, LO - localhost, 8080 - HTTP proxy port

Check if running¤

bash command
$ ss -nltup|grep shoes
tcp   LISTEN 0      128        127.0.0.1:8080       0.0.0.0:*    users:(("shoes",pid=12345,fd=3))
$ pidof shoes
12345

Current Configuration¤

Current configuration is stored in /etc/shoes/. it is generated by net-shoes configgen command on install. You can edit it manually and not run install or configapply commands to keep current configurations.

/etc/shoes/config.json
# https://github.com/cfal/shoes/blob/master/CONFIG.md
# Listen on all IPv4 interfaces, port 443 (HTTPS)
# openssl req -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out some.crt -keyout some.key -subj "/C=US/ST=State/L=City/O=Organization/OU=OrgUnit/CN=localhost"
- address: 127.0.0.1:443
  transport: quic
  quic_settings:
    cert: /etc/shoes/some.crt
    key: /etc/shoes/some.key
    alpn_protocols:
    - h3
  protocol:
    type: hysteria2
    password: abc128459
  rules:
    - allow-all-direct