Skip to content

Allow setting fwmark #56

Description

@provokateurin

I'm working on a project using WireGuard and need to be able to set the fwmark for the ping packets. I already do this using code similar to this for other packets:
https://github.com/shadowsocks/shadowsocks-rust/blob/ea6eb27d0865203b69915836739e9e59258ac825/crates/shadowsocks/src/net/sys/unix/linux/mod.rs#L63-L78

I see two options to allow this:

  1. Add the ability to pass a custom socket (more flexible, could be useful for other quirks as well)
  2. Add the ability to pass the fwmark value and set it inside this crate.

Either one is fine for me and I'm happy to contribute this.
Which one do you prefer?

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