mirror of
https://github.com/moghtech/komodo.git
synced 2025-12-05 19:17:36 -06:00
[PR #719] [MERGED] Add manual network interface configuration for multi-NIC Docker environments #764
Reference in New Issue
Block a user
No description provided.
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/719
Author: @MP-Tool
Created: 8/7/2025
Status: ✅ Merged
Merged: 8/9/2025
Merged by: @mbecker20
Base:
1.18.5← Head:dev-1-multi-nic📝 Commits (9)
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 module3a42a45refactor: Simplify interface argument handling and improve logging in network configuration and cleanupfb825e7refactor(network): simplify startup integration and improve error handling808a522fix(config): update default internet interface settingab432a5fix(config): remove custom default for internet interface in CoreConfigab38397move mod.rs -> network.rs📊 Changes
7 files changed (+278 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.rs(+258 -0)📝
bin/core/src/startup.rs(+4 -0)📝
client/core/rs/src/entities/config/core.rs(+8 -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.