-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The "source_ip" field should also support an interface name #76
Comments
I'm willing to write the code myself (though I can only easily test on Linux) but don't want to start the effort if it's already known that the feature won't be accepted... |
That seems reasonable. I would suggest tho that the interface name be a separate configuration. Because there's overlap between host names and interface names. On Sep 1, 2023, at 3:44 PM, Philip Prindeville ***@***.***> wrote:
I'm willing to write the code myself (though I can only easily test on Linux) but don't want to start the effort if it's already known that the feature won't be accepted...
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Well, yes, you could name your host |
It's not about how often it happens, it's about doing things clearly and correctly so that we know the software is correct. It costs essentially nothing to add another configuration parameter. The code could look for This is not really any more code than looking up the interface by name, and if not found, looking the name up as a hostname. |
Many network utilities (
ping
,ssh
,traceroute
, etc) will take an interface name to signify the source address, and then query the interface for its list of addresses and use the first of the appropriate address family.This is handy when you want to source packets from an interface with a dynamic address (such as an IPsec/GRE tunnel or a DHCP'd subnet) but don't want to be editing the configuration file on-the-fly.
The text was updated successfully, but these errors were encountered: