@@ -43,3 +43,40 @@ Configure socket buffers for the udp side (outside), leave unset to use the syst
4343the kernel. Default is `net.core.rmem_default` and `net.core.wmem_default` (`/proc/sys/net/core/rmem_default` and
4444` /proc/sys/net/core/rmem_default` ). Maximum is limited by memory in the system, `SO_RCVBUFFORCE` and `SO_SNDBUFFORCE` is
4545used to avoid having to raise the system wide max, `net.core.rmem_max` and `net.core.wmem_max`
46+
47+ # # listen.send_recv_error
48+
49+ <Pill className="mb-24">Reloadable</Pill> <Pill className="mb-24">Default : ` always` </Pill>
50+ <Pill className="mb-24">Added in v1.6.0</Pill>
51+
52+ By default, Nebula replies to packets it has no tunnel for with a `recv_error` packet. This packet helps speed up
53+ reconnection in the case that Nebula on either side did not shut down cleanly. This response can be abused however as a
54+ way to discover if Nebula is running on a host. `send_recv_error` lets you configure if you want to send `recv_error`
55+ packets `always`, `never`, or only to `private` network remotes.
56+
57+ Valid values : ` always` , `never`, `private`
58+
59+ # # listen.so_mark
60+
61+ <Pill className="mb-24">Added in v1.10.0</Pill>
62+
63+ On Linux systems, Nebula can now mark packets using the
64+ [SO_MARK socket option](<https://www.man7.org/linux/man-pages/man7/socket.7.html#:~:text=SO_MARK%20(since%20Linux,Linux%205.17)%20capability.>)
65+ to enable advanced routing scenarios. This is particularly useful for full subnet routing (including `0.0.0.0/0`)
66+ without the complexity of network namespaces, allowing administrators to route Nebula traffic through custom routing
67+ tables.
68+
69+ ` ` ` yaml
70+ # Mark Nebula packets with firewall mark 4242
71+ listen:
72+ so_mark: 4242
73+ ` ` `
74+
75+ Example setup for `0.0.0.0/0` routing through Nebula :
76+
77+ ` ` ` console
78+ # Create routing rules to handle marked traffic
79+ ip rule add not from all fwmark 4242 lookup 4242
80+ ip rule add from all lookup main suppress_prefixlength 0
81+ ip route add default dev nebula1 via <nebula_unsafe_route_gw> table 4242
82+ ` ` `
0 commit comments