Add native traffic inspection to Harbor Connect and Gateway
This commit is contained in:
@@ -9,7 +9,8 @@ COMPOSE_FILE="docker-compose.client.yml"
|
||||
DEFAULT_PROXY_PORT="8082"
|
||||
REQUESTED_PROXY_PORT="${VPN_PROXY_CLIENT_PORT:-}"
|
||||
REQUESTED_UI_PORT="${VPN_PROXY_CLIENT_UI_PORT:-${CLIENT_UI_PORT:-}}"
|
||||
TARGET_SINGBOX_VERSION="${SINGBOX_VERSION:-1.13.18}"
|
||||
TARGET_SINGBOX_VERSION="${SINGBOX_VERSION:-1.14.0-rc.5}"
|
||||
TARGET_TRAFFIC_SOURCE="${SING_BOX_TRAFFIC_SOURCE:-native}"
|
||||
CLIENT_CONTAINER_NAME="harbor-connect"
|
||||
LEGACY_CLIENT_CONTAINER_NAME="vpn-proxy-client"
|
||||
NETWORK_MONITOR_LABEL="com.dokril.harbor-connect.network"
|
||||
@@ -290,6 +291,11 @@ need curl
|
||||
need rsync
|
||||
need tar
|
||||
|
||||
case "$TARGET_TRAFFIC_SOURCE" in
|
||||
native|disabled) ;;
|
||||
*) die "SING_BOX_TRAFFIC_SOURCE must be native or disabled" ;;
|
||||
esac
|
||||
|
||||
docker compose version >/dev/null 2>&1 || die "Docker Compose plugin is required"
|
||||
docker info >/dev/null 2>&1 || die "Docker Desktop is not running"
|
||||
|
||||
@@ -321,6 +327,7 @@ assert_ui_outside_proxy_range
|
||||
|
||||
set_env_value APP_MODE client
|
||||
set_env_value SINGBOX_VERSION "$TARGET_SINGBOX_VERSION"
|
||||
set_env_value SING_BOX_TRAFFIC_SOURCE "$TARGET_TRAFFIC_SOURCE"
|
||||
set_env_value CLIENT_UI_PORT "$UI_PORT"
|
||||
set_env_value CLIENT_PROXY_PORT "$PROXY_PORT"
|
||||
set_env_value PROXY_PORT "$PROXY_PORT"
|
||||
|
||||
Reference in New Issue
Block a user