fix(mitmproxy): Change default proxy port from 8080 to 8888

Port 8080 conflicts with CrowdSec API. Using 8888 as default.

Also removes --flow-detail option not available in latest mitmproxy.

Bump release to r10.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
CyberMind-FR 2026-01-17 08:35:51 +01:00
parent e5f5b9160b
commit a530e8abd6
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=secubox-app-mitmproxy PKG_NAME:=secubox-app-mitmproxy
PKG_RELEASE:=9 PKG_RELEASE:=10
PKG_VERSION:=0.4.0 PKG_VERSION:=0.4.0
PKG_ARCH:=all PKG_ARCH:=all
PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr> PKG_MAINTAINER:=CyberMind Studio <contact@cybermind.fr>
@ -60,10 +60,10 @@ define Package/secubox-app-mitmproxy/postinst
echo " /etc/init.d/mitmproxy start" echo " /etc/init.d/mitmproxy start"
echo "" echo ""
echo "Web interface: http://<router-ip>:8081" echo "Web interface: http://<router-ip>:8081"
echo "Proxy port: 8080" echo "Proxy port: 8888"
echo "" echo ""
echo "To use the proxy, configure clients with:" echo "To use the proxy, configure clients with:"
echo " HTTP Proxy: <router-ip>:8080" echo " HTTP Proxy: <router-ip>:8888"
echo " Install CA cert from: http://<router-ip>:8081/cert" echo " Install CA cert from: http://<router-ip>:8081/cert"
echo "" echo ""
} }

View File

@ -1,7 +1,7 @@
config mitmproxy 'main' config mitmproxy 'main'
option enabled '0' option enabled '0'
option runtime 'lxc' option runtime 'lxc'
option proxy_port '8080' option proxy_port '8888'
option web_port '8081' option web_port '8081'
option web_host '0.0.0.0' option web_host '0.0.0.0'
option data_path '/srv/mitmproxy' option data_path '/srv/mitmproxy'

View File

@ -37,7 +37,7 @@ Modes (configure in /etc/config/mitmproxy):
reverse - Reverse proxy mode reverse - Reverse proxy mode
Web Interface: http://<router-ip>:8081 Web Interface: http://<router-ip>:8081
Proxy Port: 8080 Proxy Port: 8888
EOF EOF
} }
@ -54,7 +54,7 @@ uci_get_list() { uci -q get ${CONFIG}.$1 2>/dev/null; }
# Load configuration with defaults # Load configuration with defaults
load_config() { load_config() {
# Main settings # Main settings
proxy_port="$(uci_get main.proxy_port || echo 8080)" proxy_port="$(uci_get main.proxy_port || echo 8888)"
web_port="$(uci_get main.web_port || echo 8081)" web_port="$(uci_get main.web_port || echo 8081)"
web_host="$(uci_get main.web_host || echo 0.0.0.0)" web_host="$(uci_get main.web_host || echo 0.0.0.0)"
data_path="$(uci_get main.data_path || echo /srv/mitmproxy)" data_path="$(uci_get main.data_path || echo /srv/mitmproxy)"
@ -321,7 +321,7 @@ cd /data
# Read environment variables for configuration # Read environment variables for configuration
MODE="${MITMPROXY_MODE:-regular}" MODE="${MITMPROXY_MODE:-regular}"
PROXY_PORT="${MITMPROXY_PROXY_PORT:-8080}" PROXY_PORT="${MITMPROXY_PROXY_PORT:-8888}"
WEB_PORT="${MITMPROXY_WEB_PORT:-8081}" WEB_PORT="${MITMPROXY_WEB_PORT:-8081}"
WEB_HOST="${MITMPROXY_WEB_HOST:-0.0.0.0}" WEB_HOST="${MITMPROXY_WEB_HOST:-0.0.0.0}"
ADDON_SCRIPT="${MITMPROXY_ADDON_SCRIPT:-}" ADDON_SCRIPT="${MITMPROXY_ADDON_SCRIPT:-}"