跳到內容

curl

兩個指令,而兩者之間的差異就是全部的價值所在。

在主機網路命名空間中執行 —— 也就是節點本身的連線能力,在資料平面介入之前。

Terminal window
{"command":["curl-host","-v","cloud.f5.com"]}
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying <public-ip>:80...
* Connected to cloud.f5.com (<public-ip>) port 80 (#0)
> GET / HTTP/1.1
> Host: cloud.f5.com
> User-Agent: curl/7.76.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< location: https://cloud.f5.com/
< server: volt-adc
< date: Mon, 03 Aug 2026 16:30:24 GMT
< connection: close
< content-length: 0
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0

在 Vega(控制平面)情境中執行,而非主機的情境。可觀察到的差異,也是此處唯一確立的差異,是它所繼承的環境:curl-vega 會回報一份涵蓋私有網段、int.ves.ioint.volterra.us 以及站點自身 .tenant.local 網域的 NO_PROXY 清單,而 curl-host 則不會回報任何內容。這對 DNS 路徑意味著什麼,並未經過測量。

Terminal window
{"command":["curl-vega","-v","cloud.f5.com"]}
* Uses proxy env variable NO_PROXY == '10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.127.0.0/18,100.127.192.0/18,169.254.0.0/16,int.ves.io,int.volterra.us,mcn-ce-ha-eastus01.<tenant>.tenant.local'
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* Trying <public-ip>:80...
* Connected to cloud.f5.com (<public-ip>) port 80 (#0)
> GET / HTTP/1.1
> Host: cloud.f5.com
> User-Agent: curl/7.76.1
> Accept: */*
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 301 Moved Permanently
< location: https://cloud.f5.com/
< server: volt-adc
< date: Mon, 03 Aug 2026 16:30:26 GMT
< connection: close
< content-length: 0
<
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0

兩者都接受以獨立陣列元素形式傳入的一般 curl 參數。-v 值得保留,因為連線與 TLS 交握的輸出行通常就是失敗顯現之處。