Skip to content

feature request: SO_BINDTODEVICE and/or SO_MARK support for outbound #209

Closed

Description

@Jimmy-Z

I know it's a niche use case, and I know there's already -S source address.

  1. are you interested in implementing this?
  2. if I'm able to make a pull request, would you merge it? since I have no intention to maintain a fork.

If you're curious why would that be useful, read alone, otherwise you can skip.

I have multiple vpn connections, to be able to switch between them easily I have to use policy routing, and for reasons, some of them have identical local addresses, so that source address option won't cut it.

Activity

  1. aarond10 commented on Jul 27, 2026

    @aarond10
    Owner

    If the patch is very small and easily understood. I don't think this would be easy to test or even useful for 99.9% of people. I've tried multiple VPNs before, but I've always been able to use multiple local IPs for routing purposes.

  2. Jimmy-Z commented on Jul 27, 2026

    @Jimmy-Z
    Author

    Thanks for the reply, I'll try in a few days.

    As for tests, I'll test by hand, automated test for this function would be too much of a hassle, would that be ok?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions