- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|

楼主 |
发表于 2024-12-9 15:09:57
|
显示全部楼层
curl --interface eth0 网址
" {+ W4 X( e/ E/ l- }wget --bind-address=127.0.0.1 网址
1 J# c5 Y/ }9 L
# a! {& s% M2 M6 Fcurl -v方式获取端口是否正常通信! S i" f# U5 ]& i
curl -v 10.16.68.32:22
% o. {7 Z# s) p" F* `! H. ?. R6 L* Rebuilt URL to: 10.16.68.32:22/" W$ j5 P4 }6 [0 h" z2 {
* Trying 10.16.68.32...
F i+ M" R2 K6 J* TCP_NODELAY set
( w8 [' e, y2 i+ [. O" w' K* Connected to 10.16.68.32 (10.16.68.32) port 22 (#0)
! T# K+ n2 _) ~: ?: e+ l* V0 _> GET / HTTP/1.1- x9 M: ?& p; h9 V. _7 C5 t, U# S
> Host: 10.16.68.32:22
4 L5 M s0 ]& W+ V> User-Agent: curl/7.61.12 G' X9 j+ B7 G, U
> Accept: */*0 R3 ]1 z O% T' U* C
>
( i/ p8 _7 ^3 q8 M) b. A* XSSH-2.0-OpenSSH_8.0
, V. Q0 a g( f# m& XInvalid SSH identification string.0 F" h h m; @6 ~
* Recv failure: Connection reset by peer
4 c0 F _: i1 ]1 ^# s, ]8 v& ?* Closing connection 0+ h) d. E# y. U6 Z6 P* B6 o
curl: (56) Recv failure: Connection reset by peer |
|