summaryrefslogtreecommitdiff
path: root/docs/cmdline-opts
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@gmail.com>2017-10-26 19:42:55 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-11-09 13:20:11 +0100
commit32828cc4fb241aca01913424aa1781af0acd6aee (patch)
treed65b8b229fdb2e7a8148f6265a7c1451004c085a /docs/cmdline-opts
parentb78dce252681a96d5f7123bfcd2f5d843e7c175c (diff)
downloadcurl-32828cc4fb241aca01913424aa1781af0acd6aee.tar.gz
--interface: add support for Linux VRF
The --interface command (CURLOPT_INTERFACE option) already uses SO_BINDTODEVICE on Linux, but it tries to parse it as an interface or IP address first, which fails in case the user passes a VRF. Try to use the socket option immediately and parse it as a fallback instead. Update the documentation to mention this feature, and that it requires the binary to be ran by root or with CAP_NET_RAW capabilities for this to work. Closes #2024
Diffstat (limited to 'docs/cmdline-opts')
-rw-r--r--docs/cmdline-opts/interface.d4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/cmdline-opts/interface.d b/docs/cmdline-opts/interface.d
index da84cd2b6..bd0817618 100644
--- a/docs/cmdline-opts/interface.d
+++ b/docs/cmdline-opts/interface.d
@@ -10,3 +10,7 @@ name, IP address or host name. An example could look like:
curl --interface eth0:1 https://www.example.com/
If this option is used several times, the last one will be used.
+
+On Linux it can be used to specify a VRF, but the binary needs to either
+have CAP_NET_RAW or to be ran as root. More information about Linux VRF:
+https://www.kernel.org/doc/Documentation/networking/vrf.txt