[GH-ISSUE #575] 多网卡 同内网ip 启用不同端口分发,出口IP一致 #464

Open
opened 2026-02-27 23:16:59 +03:00 by kerem · 4 comments
Owner

Originally created by @Mrqjj on GitHub (Dec 16, 2024).
Original GitHub issue: https://github.com/snail007/goproxy/issues/575

为避免浪费时间,一切不按着issue模版填写的问题,一律默认忽略处理,谢谢合作!

Avoid waste time, any report not match the issue template will be ignored.

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce

  1. 本机有28个网卡, 每个网卡下面都是默认的DHCP 分配的ip地址一致为192.168.1.2但是网卡名称不一致
  2. 服务启动之后,从每个端口进行请求, 出口ip一致,也就是说出口都在一个网卡上出去的, goProxy 和goProxyAdmin 均存在这个问题
  3. 28个网卡接入了28条宽带,由DHCP 自动分配每个网卡的内网IP都是192.168.1.2

Context (Environment)

  1. proxy version is : v14.7
  2. full command is : ./proxy socks -t tcp -p ":2000-2030" -a ":*" --bind-ip eno1:2000 --bind-ip eno2:2001 --bind-ip eno3:2002--bind-ip enp6s0f0:2003--bind-ip enp6s0f1:2004 --bind-ip enp6s0f2:2005 --bind-ip enp6s0f3:2006 --bind-ip enp4s0f0:2007 --bind-ip enp4s0f1:2008 --bind-ip enp4s0f2:2009 --bind-ip enp4s0f3:2010 --bind-ip enp129s0f0:2011 --bind-ip enp129s0f1:2012 --bind-ip enp129s0f2:2013 --bind-ip enp129s0f3:2014 --bind-ip enp130s0f0:2015 --bind-ip enp130s0f1:2016 --bind-ip enp130s0f2:2017 --bind-ip enp130s0f3:2018 --bind-ip enp131s0f0:2019 --bind-ip enp131s0f1:2020 --bind-ip enp131s0f2:2021 --bind-ip enp131s0f3:2022 --bind-ip enp132s0f0:2023 --bind-ip enp132s0f1:2024 --bind-ip enp132s0f2:2025 --bind-ip enp132s0f3:2026
  3. system is :ubuntu 22.02 server
  4. full log is: ?

Detailed Description

Possible Implementation

Originally created by @Mrqjj on GitHub (Dec 16, 2024). Original GitHub issue: https://github.com/snail007/goproxy/issues/575 # 为避免浪费时间,一切不按着issue模版填写的问题,一律默认忽略处理,谢谢合作! # Avoid waste time, any report not match the issue template will be ignored. ## Expected Behavior <!--- Tell us what should happen --> ## Current Behavior <!--- Tell us what happens instead of the expected behavior --> ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. 本机有28个网卡, 每个网卡下面都是默认的DHCP 分配的ip地址一致为192.168.1.2但是网卡名称不一致 2. 服务启动之后,从每个端口进行请求, 出口ip一致,也就是说出口都在一个网卡上出去的, goProxy 和goProxyAdmin 均存在这个问题 3. 28个网卡接入了28条宽带,由DHCP 自动分配每个网卡的内网IP都是192.168.1.2 ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> 1. proxy version is : v14.7 2. full command is : ./proxy socks -t tcp -p ":2000-2030" -a "**:***" --bind-ip eno1:2000 --bind-ip eno2:2001 --bind-ip eno3:2002--bind-ip enp6s0f0:2003--bind-ip enp6s0f1:2004 --bind-ip enp6s0f2:2005 --bind-ip enp6s0f3:2006 --bind-ip enp4s0f0:2007 --bind-ip enp4s0f1:2008 --bind-ip enp4s0f2:2009 --bind-ip enp4s0f3:2010 --bind-ip enp129s0f0:2011 --bind-ip enp129s0f1:2012 --bind-ip enp129s0f2:2013 --bind-ip enp129s0f3:2014 --bind-ip enp130s0f0:2015 --bind-ip enp130s0f1:2016 --bind-ip enp130s0f2:2017 --bind-ip enp130s0f3:2018 --bind-ip enp131s0f0:2019 --bind-ip enp131s0f1:2020 --bind-ip enp131s0f2:2021 --bind-ip enp131s0f3:2022 --bind-ip enp132s0f0:2023 --bind-ip enp132s0f1:2024 --bind-ip enp132s0f2:2025 --bind-ip enp132s0f3:2026 4. system is :ubuntu 22.02 server 5. full log is: ? <!--- Provide a general summary of the issue in the Title above --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Possible Implementation <!--- Not obligatory, but suggest an idea for implementing addition or change -->
Author
Owner

@snail007 commented on GitHub (Dec 16, 2024):

这是每个网卡IP一样导致的,这个功能要求每个网卡IP不能一样。

<!-- gh-comment-id:2545447637 --> @snail007 commented on GitHub (Dec 16, 2024): 这是每个网卡IP一样导致的,这个功能要求每个网卡IP不能一样。
Author
Owner

@Mrqjj commented on GitHub (Dec 19, 2024):

这是每个网卡IP一样导致的,这个功能要求每个网卡IP不能一样。

那有什么解决方案或者办法吗? 比如我修改每个网卡的静态IP?

<!-- gh-comment-id:2554548710 --> @Mrqjj commented on GitHub (Dec 19, 2024): > 这是每个网卡IP一样导致的,这个功能要求每个网卡IP不能一样。 那有什么解决方案或者办法吗? 比如我修改每个网卡的静态IP?
Author
Owner

@snail007 commented on GitHub (Dec 20, 2024):

这个功能要求每个网卡IP不能一样。满足这个条件即可!

<!-- gh-comment-id:2556628109 --> @snail007 commented on GitHub (Dec 20, 2024): 这个功能要求每个网卡IP不能一样。满足这个条件即可!
Author
Owner

@Mrqjj commented on GitHub (Dec 20, 2024):

这个功能要求每个网卡IP不能一样。满足这个条件即可!

ipv6的地址不一样,可以选择ipv6吗?

<!-- gh-comment-id:2556730161 --> @Mrqjj commented on GitHub (Dec 20, 2024): > 这个功能要求每个网卡IP不能一样。满足这个条件即可! ipv6的地址不一样,可以选择ipv6吗?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#464
No description provided.