mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #3376] [Feature Request] Specify source interface for the client #2702
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#2702
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @alimdi on GitHub (Mar 28, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3376
Originally assigned to: @blizard863 on GitHub.
Describe the feature request
Hi,
Is it possible to specify the source interface to use on the client side ?
Regards,
Describe alternatives you've considered
No response
Affected area
@blizard863 commented on GitHub (Mar 29, 2023):
Can you describe more detail ?
How to specify and why ?
@alimdi commented on GitHub (Mar 30, 2023):
Hi,
Sure, I meant is it possible to make the client use a specific network interface when connecting to the server in case of having multiple network interfaces.
Hope that makes the request more clear
@blizard863 commented on GitHub (Mar 30, 2023):
I got it. @alimdi
I think the connect_server_local_ip arg will match your demand ?
https://github.com/fatedier/frp/blob/dev/conf/frpc_full.ini#L104
@alimdi commented on GitHub (Mar 30, 2023):
That's definetly what I was looking for.
Thank you @blizard863
@mecorpking commented on GitHub (May 2, 2023):
@alimdi is this worked for you? i am looking for the same with http_proxy plugin and using the below config
[http_proxy]
type = tcp
connect_server_local_ip = 192.168.10.100
remote_port = 24002
plugin = http_proxy
plugin_http_user =
plugin_http_passwd =
but it still providing my default network
@alimdi commented on GitHub (May 3, 2023):
@mecorpking It is working but I've defined connect_server_local_ip in [common] scope not in [http_proxy]
Give it a shot...
@mecorpking commented on GitHub (May 3, 2023):
@alimdi i tried with that also but received " login to server failed: i/o deadline reached". if possible can you share sample frps.ini and frpc.ini , below is my sample file
server_addr = 1.2.3.4 /sample
server_port = 2000
token = 12345678
log_file = ./connection.log
protocol = tcp
connect_server_local_ip = 192.168.10.100
tcp_mux = true
[http_proxy]
type = tcp
remote_port = 24003
plugin = http_proxy
plugin_http_user =
plugin_http_passwd =
@alimdi commented on GitHub (May 3, 2023):
I'm not using http_proxy
Have you tried to check if the interface were used with tcpdump ?
@mecorpking commented on GitHub (May 3, 2023):
i think there is some issue with my frps config if you could share, it will help alot
@alimdi commented on GitHub (May 3, 2023):
frpc :
frps :