File: interface.d

package info (click to toggle)
curl 7.74.0-1.3%2Bdeb11u13
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 38,532 kB
  • sloc: ansic: 155,566; perl: 14,107; sh: 5,226; makefile: 1,487; python: 623; pascal: 603; cpp: 169
file content (17 lines) | stat: -rw-r--r-- 576 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Long: interface
Arg: <name>
Help: Use network INTERFACE (or address)
See-also: dns-interface
Category: connection
---

Perform an operation using a specified interface. You can enter interface
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 run as root. More information about Linux VRF:
https://www.kernel.org/doc/Documentation/networking/vrf.txt