Skip to content

Socket opt

Socket options

Fields

fw-mark

  • Type: u32 (optional)
  • Required: no

fw_mark on linux

bind-interface

binding interface of this outgoing packet.

If bind_interface is set, the outgoing packet will be sent from the specified interface. Recommend to use to cooporate with other tun based proxy like sing-box/mihomo

Example:

# by ip address
bind-interface: "127.0.0.1"
# by interface name
bind-interface: "eth0"