mirror of
https://github.com/moghtech/komodo.git
synced 2026-07-16 16:29:11 -05:00
[PR #718] [CLOSED] Add manual network interface configuration for multi-NIC Docker environments #11576
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/moghtech/komodo/pull/718
Author: @MP-Tool
Created: 8/7/2025
Status: ❌ Closed
Base:
1.18.5← Head:dev-1-multi-nic📝 Commits (5)
6a126afAdd iproute2 to debian-debs93a7540feat: Add manual network interface configuration for multi-NIC support8aca0effix: Update internet interface handling for multi-NIC supportb152f02refactor: Enhance error messages and logging in networking module40f6b08refactor: Simplify command argument handling and enhance permission error logging in network configuration📊 Changes
7 files changed (+313 additions, -1 deletions)
View changed files
📝
bin/core/debian-deps.sh(+1 -1)📝
bin/core/src/config.rs(+1 -0)📝
bin/core/src/main.rs(+1 -0)➕
bin/core/src/network/mod.rs(+282 -0)📝
bin/core/src/startup.rs(+11 -0)📝
client/core/rs/src/entities/config/core.rs(+12 -0)📝
config/core.config.toml(+5 -0)📄 Description
Problem
In Docker setups with multiple network interfaces, users cannot specify which interface should handle internet traffic, leading to unpredictable routing behavior. This causes problems when working with external hosted repositories. While Docker Compose version
2.32+provides network interface prioritygw_prioritysettings (which I recommend using bevor), some edge case scenarios require the ability to manually set the container interface for the default gateway.Solution
Added
internet_interfaceconfiguration allows manual specification of which network interface of the container should be used as the default gateway. The feature automatically detects Docker environments and configures the routing table to route internet traffic through the specified interface.How it works:
Usage
Changes
Requirements
NET_ADMINcapability for Docker containers🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.