txthinking / brook

A cross-platform programmable network tool
https://brook.app
GNU General Public License v3.0
14.51k stars 2.39k forks source link

is there a way binding it to a NIC? because it's IP is dynamic #1196

Closed haofanurusai closed 1 year ago

haofanurusai commented 1 year ago

Version: 20230404 Server: Windows 8.1 x86 Client: Windows Server 2008R2 x64 Binary: brook_windows_386.exe (both)

I have 2 NICs on the server. One named 'A' is slow and limited but its ping is low, and another one named 'B' is fast but it usually does not ping from client side. So I use this proxy for better accessibility (client connect to A and use it to access B-only websites). I configured metrics (A=200, B=1) on the route table of my server in order to set priority, and the brook server only listen to A. But when I connect it with my client and use some tool websites to see my IP it's always A's, not B's.

What should I do? Thanks.

txthinking commented 1 year ago

brook --dialWithIP4 B server --listen A:port

On Fri, Apr 14, 2023 at 2:45 PM haofanurusai @.***> wrote:

Version: 20230404 Server: Windows 8.1 x86 Client: Windows Server 2008R2 x64 Binary: brook_windows_386.exe (both)

I have 2 NICs on the server. One named 'A' is slow and limited but its ping is low, and another one named 'B' is fast but it usually does not ping from client side. So I use this proxy for better accessibility (client connect to A and use it to access B-only websites). I configured metrics (A=200, B=1) on the route table of my server in order to set priority, and the brook server only listen to A. But when I connect it with my client and use some tool websites to see my IP it's always A's, not B's.

What should I do? Thanks.

— Reply to this email directly, view it on GitHub https://github.com/txthinking/brook/issues/1196, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPFT5RD7SLPK2B7UHS5DTXBDXAJANCNFSM6AAAAAAW6AOANE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

haofanurusai commented 1 year ago

Thanks, and is there a way binding it to a NIC? B's IP is dynamic and changes weekly.

txthinking commented 1 year ago

I ignored the situation of the network card with dynamic IP, this feature should be added in the next version.

haofanurusai commented 1 year ago

Thanks very much. By the way, wildcard characters (e.g. 192.168.31.*) or regular expression is also considerable.

txthinking commented 1 year ago

keep this issue open in case I forget :)

txthinking commented 1 year ago

v20230404.5.1