[GH-ISSUE #1736] Response header 'Server' empty while using with nginx #1373

Closed
opened 2026-05-05 12:52:15 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @licsber on GitHub (Apr 8, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/1736

What version of frp are you using (./frpc -v or ./frps -v)?
both same 0.32.0, also latest.

What operating system and processor architecture are you using (go env)?
both same. one is ubuntu, other is centos.

GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH=""
GORACE=""
GOROOT="/usr/lib/go-1.6"
GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

Configures you used:

frps.ini:
[common]
bind_port = 9997
token = TOKEN
kcp_bind_port = 9997
bind_udp_port = 9998
vhost_http_port = 19999
subdomain_host = MY_DOMAIN
frpc.ini:
[common]
server_addr=MY_DOMAIN
server_port=9997
token=TOKEN

[SERVER_NAME]
type=http
use_compression=true
local_port=9999
subdomain=NAME
protocol=kcp
nginx_my_conf.conf:
server {
    listen 80;
    server_name *.MY_DOMAIN;
    location / {
        proxy_pass http://127.0.0.1:19999;

        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 86400;
    }
}

Steps to reproduce the issue:

  1. set up all envs above
  2. visit my_service.MY_DOMAIN
  3. my website booming!

Because i use frp to proxy jupyter notebook, it needs to establish websocket connection to make service avabilable, such as xterm.js and its keneral.
And use nginx to proxy frp so that my service port can be 80 which is already been used.
Now i can use jupyter notebook by http://NAME.MY_DOMAIN:19999, but http://NAME.MY_DOMAIN just give me origin http data,
i see websocket connection has been established successfully but nothing can be sent or received,
i try to find the solution in the Internet, and notice nginx return an empty header "Server", this may be a question.

And i use nginx to proxy jupyter notebook directly with this conf:

    location / {
        proxy_pass http://127.0.0.1:8888/;
        proxy_set_header Host $http_host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_redirect off;
    }

it works and return 'Server: nginx/1.16.1'.

HTTP/1.1 200 OK
X-Content-Type-Options: nosniff
Content-Type: text/html; charset=UTF-8
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Connection: keep-alive
Date: Wed, 08 Apr 2020 00:02:11 GMT
Content-Length: 6452
ETag: "6709fa496dea17a668d4bc21b54163d5ebdbbb34"
Server: nginx/1.16.1

And i use frp to proxy jupyter notebook directly:

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
X-Content-Type-Options: nosniff
Date: Wed, 08 Apr 2020 00:01:31 GMT
Content-Length: 6487
ETag: "3487b7a011e67e4b93b9ae933ee16181e48cf4d5"
Server: TornadoServer/6.0.3

it works and return 'Server: TornadoServer/6.0.3'.

But combining nginx and frp just booming!

Date: Tue, 07 Apr 2020 23:30:41 GMT
ETag: "8f511761a842217401ec06f4e737a9b3604ecaf1"
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Content-Length: 6463
Server

I want know why header 'Server' is empty or just missing?

Describe the results you received:

HTTP Response:
Date: Tue, 07 Apr 2020 23:30:41 GMT
ETag: "8f511761a842217401ec06f4e737a9b3604ecaf1"
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Content-Length: 6463
Server

Describe the results you expected:

HTTP Response:
Date: Tue, 07 Apr 2020 23:30:41 GMT
ETag: "8f511761a842217401ec06f4e737a9b3604ecaf1"
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Content-Length: 6463
**Server:ANYTHING**

Additional information you deem important (e.g. issue happens only occasionally):
no additional information i can give.

Can you point out what caused this issue (optional)
cannot find, i'm trying to read the source code.

Originally created by @licsber on GitHub (Apr 8, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/1736 **What version of frp are you using (./frpc -v or ./frps -v)?** both same 0.32.0, also latest. **What operating system and processor architecture are you using (`go env`)?** both same. one is ubuntu, other is centos. ``` GOARCH="amd64" GOBIN="" GOEXE="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="" GORACE="" GOROOT="/usr/lib/go-1.6" GOTOOLDIR="/usr/lib/go-1.6/pkg/tool/linux_amd64" GO15VENDOREXPERIMENT="1" CC="gcc" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0" CXX="g++" CGO_ENABLED="1" ``` **Configures you used:** ``` frps.ini: [common] bind_port = 9997 token = TOKEN kcp_bind_port = 9997 bind_udp_port = 9998 vhost_http_port = 19999 subdomain_host = MY_DOMAIN ``` ``` frpc.ini: [common] server_addr=MY_DOMAIN server_port=9997 token=TOKEN [SERVER_NAME] type=http use_compression=true local_port=9999 subdomain=NAME protocol=kcp ``` ``` nginx_my_conf.conf: server { listen 80; server_name *.MY_DOMAIN; location / { proxy_pass http://127.0.0.1:19999; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 86400; } } ``` **Steps to reproduce the issue:** 1. set up all envs above 2. visit my_service.MY_DOMAIN 3. my website booming! Because i use frp to proxy jupyter notebook, it needs to establish websocket connection to make service avabilable, such as xterm.js and its keneral. And use nginx to proxy frp so that my service port can be 80 which is already been used. Now i can use jupyter notebook by http://NAME.MY_DOMAIN:19999, but http://NAME.MY_DOMAIN just give me origin http data, i see websocket connection has been established successfully but nothing can be sent or received, i try to find the solution in the Internet, and notice nginx return an empty header "Server", this may be a question. And i use nginx to proxy jupyter notebook directly with this conf: ``` location / { proxy_pass http://127.0.0.1:8888/; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_redirect off; } ``` it works and return 'Server: nginx/1.16.1'. ``` HTTP/1.1 200 OK X-Content-Type-Options: nosniff Content-Type: text/html; charset=UTF-8 Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report Connection: keep-alive Date: Wed, 08 Apr 2020 00:02:11 GMT Content-Length: 6452 ETag: "6709fa496dea17a668d4bc21b54163d5ebdbbb34" Server: nginx/1.16.1 ``` And i use frp to proxy jupyter notebook directly: ``` HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report X-Content-Type-Options: nosniff Date: Wed, 08 Apr 2020 00:01:31 GMT Content-Length: 6487 ETag: "3487b7a011e67e4b93b9ae933ee16181e48cf4d5" Server: TornadoServer/6.0.3 ``` it works and return 'Server: TornadoServer/6.0.3'. But combining nginx and frp just booming! ``` Date: Tue, 07 Apr 2020 23:30:41 GMT ETag: "8f511761a842217401ec06f4e737a9b3604ecaf1" Content-Type: text/html; charset=UTF-8 Connection: keep-alive Content-Length: 6463 Server ``` I want know why header 'Server' is empty or just missing? **Describe the results you received:** ``` HTTP Response: Date: Tue, 07 Apr 2020 23:30:41 GMT ETag: "8f511761a842217401ec06f4e737a9b3604ecaf1" Content-Type: text/html; charset=UTF-8 Connection: keep-alive Content-Length: 6463 Server ``` **Describe the results you expected:** ``` HTTP Response: Date: Tue, 07 Apr 2020 23:30:41 GMT ETag: "8f511761a842217401ec06f4e737a9b3604ecaf1" Content-Type: text/html; charset=UTF-8 Connection: keep-alive Content-Length: 6463 **Server:ANYTHING** ``` **Additional information you deem important (e.g. issue happens only occasionally):** no additional information i can give. **Can you point out what caused this issue (optional)** cannot find, i'm trying to read the source code.
gitea-mirror 2026-05-05 12:52:15 -06:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@fatedier commented on GitHub (Apr 8, 2020):

How can i reproduce it in a simple way?

Maybe you can first capture network packages between nginx and frps to find more info.

<!-- gh-comment-id:610840923 --> @fatedier commented on GitHub (Apr 8, 2020): How can i reproduce it in a simple way? Maybe you can first capture network packages between nginx and frps to find more info.
Author
Owner

@licsber commented on GitHub (Apr 8, 2020):

How can i reproduce it in a simple way?

Maybe you can first capture network packages between nginx and frps to find more info.

Reproduce:

  1. run any http service
    such as python -m SimpleHTTPServer
    and visit directly
    result:
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Length: 1436
Date: Wed, 08 Apr 2020 10:51:57 GMT
Server: SimpleHTTP/0.6 Python/2.7.5
  1. run frpc
[common]
server_addr=frp.MY_DOMAIN
server_port=9997
token=TOKEN

[python]
type=http
local_port=8000
subdomain=python
protocol=kcp

and visit http://python.frp.MY_DOMAIN:19999
result:

HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8
Content-Length: 1500
Date: Wed, 08 Apr 2020 10:55:06 GMT
Server: SimpleHTTP/0.6 Python/2.7.5

i feel confused because this time frp did't return 'TornadoServer/6.0.3' mentioned above

  1. and visit http://python.frp.MY_DOMAIN
    with my nginx conf not edited(above).
    result:
HTTP/1.1 200 OK
Date: Wed, 08 Apr 2020 10:55:37 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Content-Length: 1500
Server

my server header has been eated ! oh my god.

i try to tcpdump it, but i dont know how to capture packages:
result:

(base) [licsber@licsber ~]$ sudo tcpdump -i lo
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes
18:49:08.813347 IP localhost.17139 > localhost.dnp-sec: Flags [S], seq 3932527576, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:08.813360 IP localhost.dnp-sec > localhost.17139: Flags [S.], seq 2112563470, ack 3932527577, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:08.813370 IP localhost.17139 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
18:49:08.813401 IP localhost.17139 > localhost.dnp-sec: Flags [P.], seq 1:1058, ack 1, win 342, length 1057
18:49:08.813407 IP localhost.dnp-sec > localhost.17139: Flags [.], ack 1058, win 358, length 0
18:49:08.817281 IP localhost.17141 > localhost.dnp-sec: Flags [S], seq 3716702540, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:08.817298 IP localhost.dnp-sec > localhost.17141: Flags [S.], seq 1544241869, ack 3716702541, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:08.817313 IP localhost.17141 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
18:49:08.817354 IP localhost.17141 > localhost.dnp-sec: Flags [P.], seq 1:1059, ack 1, win 342, length 1058
18:49:08.817363 IP localhost.dnp-sec > localhost.17141: Flags [.], ack 1059, win 358, length 0
18:49:08.826723 IP localhost.dnp-sec > localhost.17139: Flags [P.], seq 1:328, ack 1058, win 358, length 327
18:49:08.826734 IP localhost.17139 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0
18:49:08.826891 IP localhost.17139 > localhost.dnp-sec: Flags [F.], seq 1058, ack 328, win 350, length 0
18:49:08.827107 IP localhost.dnp-sec > localhost.17139: Flags [F.], seq 328, ack 1059, win 358, length 0
18:49:08.827119 IP localhost.17139 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0
18:49:08.835281 IP localhost.dnp-sec > localhost.17141: Flags [P.], seq 1:357, ack 1059, win 358, length 356
18:49:08.835292 IP localhost.17141 > localhost.dnp-sec: Flags [.], ack 357, win 350, length 0
18:49:08.835487 IP localhost.17141 > localhost.dnp-sec: Flags [F.], seq 1059, ack 357, win 350, length 0
18:49:08.835704 IP localhost.dnp-sec > localhost.17141: Flags [F.], seq 357, ack 1060, win 358, length 0
18:49:08.835713 IP localhost.17141 > localhost.dnp-sec: Flags [.], ack 358, win 350, length 0
18:49:08.865679 IP localhost.17143 > localhost.dnp-sec: Flags [S], seq 2095569198, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:08.865692 IP localhost.dnp-sec > localhost.17143: Flags [S.], seq 3326636931, ack 2095569199, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:08.865702 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
18:49:08.865735 IP localhost.17143 > localhost.dnp-sec: Flags [P.], seq 1:1073, ack 1, win 342, length 1072
18:49:08.865741 IP localhost.dnp-sec > localhost.17143: Flags [.], ack 1073, win 359, length 0
18:49:08.881459 IP localhost.dnp-sec > localhost.17143: Flags [P.], seq 1:4097, ack 1073, win 359, length 4096
18:49:08.881471 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 4097, win 1365, length 0
18:49:08.881492 IP localhost.dnp-sec > localhost.17143: Flags [P.], seq 4097:7427, ack 1073, win 359, length 3330
18:49:08.881498 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 7427, win 2389, length 0
18:49:08.881777 IP localhost.17143 > localhost.dnp-sec: Flags [F.], seq 1073, ack 7427, win 2389, length 0
18:49:08.882014 IP localhost.dnp-sec > localhost.17143: Flags [F.], seq 7427, ack 1074, win 359, length 0
18:49:08.882025 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 7428, win 2389, length 0
18:49:10.089145 IP localhost.17145 > localhost.dnp-sec: Flags [S], seq 472718568, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.089161 IP localhost.dnp-sec > localhost.17145: Flags [S.], seq 215581502, ack 472718569, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.089176 IP localhost.17145 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
18:49:10.089218 IP localhost.17145 > localhost.dnp-sec: Flags [P.], seq 1:1044, ack 1, win 342, length 1043
18:49:10.089225 IP localhost.dnp-sec > localhost.17145: Flags [.], ack 1044, win 358, length 0
18:49:10.104610 IP localhost.dnp-sec > localhost.17145: Flags [P.], seq 1:265, ack 1044, win 358, length 264
18:49:10.104618 IP localhost.17145 > localhost.dnp-sec: Flags [.], ack 265, win 350, length 0
18:49:10.104806 IP localhost.17145 > localhost.dnp-sec: Flags [F.], seq 1044, ack 265, win 350, length 0
18:49:10.105056 IP localhost.dnp-sec > localhost.17145: Flags [F.], seq 265, ack 1045, win 358, length 0
18:49:10.105068 IP localhost.17145 > localhost.dnp-sec: Flags [.], ack 266, win 350, length 0
18:49:10.229491 IP localhost.17147 > localhost.dnp-sec: Flags [S], seq 4145558781, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.229503 IP localhost.dnp-sec > localhost.17147: Flags [S.], seq 2146779731, ack 4145558782, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.229514 IP localhost.17147 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
18:49:10.229545 IP localhost.17147 > localhost.dnp-sec: Flags [P.], seq 1:1071, ack 1, win 342, length 1070
18:49:10.229552 IP localhost.dnp-sec > localhost.17147: Flags [.], ack 1071, win 359, length 0
18:49:10.230387 IP localhost.17149 > localhost.dnp-sec: Flags [S], seq 1455004407, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.230396 IP localhost.dnp-sec > localhost.17149: Flags [S.], seq 2793501170, ack 1455004408, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.230405 IP localhost.17149 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
18:49:10.230425 IP localhost.17149 > localhost.dnp-sec: Flags [P.], seq 1:1069, ack 1, win 342, length 1068
18:49:10.230430 IP localhost.dnp-sec > localhost.17149: Flags [.], ack 1069, win 359, length 0
18:49:10.248978 IP localhost.dnp-sec > localhost.17147: Flags [P.], seq 1:328, ack 1071, win 359, length 327
18:49:10.248993 IP localhost.17147 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0
18:49:10.249259 IP localhost.17147 > localhost.dnp-sec: Flags [F.], seq 1071, ack 328, win 350, length 0
18:49:10.249530 IP localhost.dnp-sec > localhost.17147: Flags [F.], seq 328, ack 1072, win 359, length 0
18:49:10.249540 IP localhost.17147 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0
18:49:10.249685 IP localhost.17151 > localhost.dnp-sec: Flags [S], seq 3847880521, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.249702 IP localhost.dnp-sec > localhost.17151: Flags [S.], seq 3179461344, ack 3847880522, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
18:49:10.249713 IP localhost.17151 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
18:49:10.249743 IP localhost.17151 > localhost.dnp-sec: Flags [P.], seq 1:1026, ack 1, win 342, length 1025
18:49:10.249750 IP localhost.dnp-sec > localhost.17151: Flags [.], ack 1026, win 358, length 0
18:49:10.257783 IP localhost.dnp-sec > localhost.17149: Flags [P.], seq 1:328, ack 1069, win 359, length 327
18:49:10.257793 IP localhost.17149 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0
18:49:10.258028 IP localhost.17149 > localhost.dnp-sec: Flags [F.], seq 1069, ack 328, win 350, length 0
18:49:10.258254 IP localhost.dnp-sec > localhost.17149: Flags [F.], seq 328, ack 1070, win 359, length 0
18:49:10.258264 IP localhost.17149 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0
18:49:10.262423 IP localhost.dnp-sec > localhost.17151: Flags [P.], seq 1:308, ack 1026, win 358, length 307
18:49:10.262430 IP localhost.17151 > localhost.dnp-sec: Flags [.], ack 308, win 350, length 0
18:49:10.262555 IP localhost.17151 > localhost.dnp-sec: Flags [F.], seq 1026, ack 308, win 350, length 0
18:49:10.262723 IP localhost.dnp-sec > localhost.17151: Flags [F.], seq 308, ack 1027, win 358, length 0
18:49:10.262734 IP localhost.17151 > localhost.dnp-sec: Flags [.], ack 309, win 350, length 0
^C
72 packets captured
144 packets received by filter
0 packets dropped by kernel

i dont know whats happend.

<!-- gh-comment-id:610893552 --> @licsber commented on GitHub (Apr 8, 2020): > How can i reproduce it in a simple way? > > Maybe you can first capture network packages between nginx and frps to find more info. Reproduce: 1. run any http service such as `python -m SimpleHTTPServer` and visit directly result: ``` HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Content-Length: 1436 Date: Wed, 08 Apr 2020 10:51:57 GMT Server: SimpleHTTP/0.6 Python/2.7.5 ``` 2. run frpc ``` [common] server_addr=frp.MY_DOMAIN server_port=9997 token=TOKEN [python] type=http local_port=8000 subdomain=python protocol=kcp ``` and visit http://python.frp.MY_DOMAIN:19999 result: ``` HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Content-Length: 1500 Date: Wed, 08 Apr 2020 10:55:06 GMT Server: SimpleHTTP/0.6 Python/2.7.5 ``` i feel confused because this time frp did't return 'TornadoServer/6.0.3' mentioned above 3. and visit http://python.frp.MY_DOMAIN with my nginx conf not edited(above). result: ``` HTTP/1.1 200 OK Date: Wed, 08 Apr 2020 10:55:37 GMT Content-Type: text/html; charset=UTF-8 Connection: keep-alive Content-Length: 1500 Server ``` my server header has been eated ! oh my god. i try to tcpdump it, but i dont know how to capture packages: result: ``` (base) [licsber@licsber ~]$ sudo tcpdump -i lo tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes 18:49:08.813347 IP localhost.17139 > localhost.dnp-sec: Flags [S], seq 3932527576, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:08.813360 IP localhost.dnp-sec > localhost.17139: Flags [S.], seq 2112563470, ack 3932527577, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:08.813370 IP localhost.17139 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 18:49:08.813401 IP localhost.17139 > localhost.dnp-sec: Flags [P.], seq 1:1058, ack 1, win 342, length 1057 18:49:08.813407 IP localhost.dnp-sec > localhost.17139: Flags [.], ack 1058, win 358, length 0 18:49:08.817281 IP localhost.17141 > localhost.dnp-sec: Flags [S], seq 3716702540, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:08.817298 IP localhost.dnp-sec > localhost.17141: Flags [S.], seq 1544241869, ack 3716702541, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:08.817313 IP localhost.17141 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 18:49:08.817354 IP localhost.17141 > localhost.dnp-sec: Flags [P.], seq 1:1059, ack 1, win 342, length 1058 18:49:08.817363 IP localhost.dnp-sec > localhost.17141: Flags [.], ack 1059, win 358, length 0 18:49:08.826723 IP localhost.dnp-sec > localhost.17139: Flags [P.], seq 1:328, ack 1058, win 358, length 327 18:49:08.826734 IP localhost.17139 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0 18:49:08.826891 IP localhost.17139 > localhost.dnp-sec: Flags [F.], seq 1058, ack 328, win 350, length 0 18:49:08.827107 IP localhost.dnp-sec > localhost.17139: Flags [F.], seq 328, ack 1059, win 358, length 0 18:49:08.827119 IP localhost.17139 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0 18:49:08.835281 IP localhost.dnp-sec > localhost.17141: Flags [P.], seq 1:357, ack 1059, win 358, length 356 18:49:08.835292 IP localhost.17141 > localhost.dnp-sec: Flags [.], ack 357, win 350, length 0 18:49:08.835487 IP localhost.17141 > localhost.dnp-sec: Flags [F.], seq 1059, ack 357, win 350, length 0 18:49:08.835704 IP localhost.dnp-sec > localhost.17141: Flags [F.], seq 357, ack 1060, win 358, length 0 18:49:08.835713 IP localhost.17141 > localhost.dnp-sec: Flags [.], ack 358, win 350, length 0 18:49:08.865679 IP localhost.17143 > localhost.dnp-sec: Flags [S], seq 2095569198, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:08.865692 IP localhost.dnp-sec > localhost.17143: Flags [S.], seq 3326636931, ack 2095569199, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:08.865702 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 18:49:08.865735 IP localhost.17143 > localhost.dnp-sec: Flags [P.], seq 1:1073, ack 1, win 342, length 1072 18:49:08.865741 IP localhost.dnp-sec > localhost.17143: Flags [.], ack 1073, win 359, length 0 18:49:08.881459 IP localhost.dnp-sec > localhost.17143: Flags [P.], seq 1:4097, ack 1073, win 359, length 4096 18:49:08.881471 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 4097, win 1365, length 0 18:49:08.881492 IP localhost.dnp-sec > localhost.17143: Flags [P.], seq 4097:7427, ack 1073, win 359, length 3330 18:49:08.881498 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 7427, win 2389, length 0 18:49:08.881777 IP localhost.17143 > localhost.dnp-sec: Flags [F.], seq 1073, ack 7427, win 2389, length 0 18:49:08.882014 IP localhost.dnp-sec > localhost.17143: Flags [F.], seq 7427, ack 1074, win 359, length 0 18:49:08.882025 IP localhost.17143 > localhost.dnp-sec: Flags [.], ack 7428, win 2389, length 0 18:49:10.089145 IP localhost.17145 > localhost.dnp-sec: Flags [S], seq 472718568, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.089161 IP localhost.dnp-sec > localhost.17145: Flags [S.], seq 215581502, ack 472718569, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.089176 IP localhost.17145 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 18:49:10.089218 IP localhost.17145 > localhost.dnp-sec: Flags [P.], seq 1:1044, ack 1, win 342, length 1043 18:49:10.089225 IP localhost.dnp-sec > localhost.17145: Flags [.], ack 1044, win 358, length 0 18:49:10.104610 IP localhost.dnp-sec > localhost.17145: Flags [P.], seq 1:265, ack 1044, win 358, length 264 18:49:10.104618 IP localhost.17145 > localhost.dnp-sec: Flags [.], ack 265, win 350, length 0 18:49:10.104806 IP localhost.17145 > localhost.dnp-sec: Flags [F.], seq 1044, ack 265, win 350, length 0 18:49:10.105056 IP localhost.dnp-sec > localhost.17145: Flags [F.], seq 265, ack 1045, win 358, length 0 18:49:10.105068 IP localhost.17145 > localhost.dnp-sec: Flags [.], ack 266, win 350, length 0 18:49:10.229491 IP localhost.17147 > localhost.dnp-sec: Flags [S], seq 4145558781, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.229503 IP localhost.dnp-sec > localhost.17147: Flags [S.], seq 2146779731, ack 4145558782, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.229514 IP localhost.17147 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 18:49:10.229545 IP localhost.17147 > localhost.dnp-sec: Flags [P.], seq 1:1071, ack 1, win 342, length 1070 18:49:10.229552 IP localhost.dnp-sec > localhost.17147: Flags [.], ack 1071, win 359, length 0 18:49:10.230387 IP localhost.17149 > localhost.dnp-sec: Flags [S], seq 1455004407, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.230396 IP localhost.dnp-sec > localhost.17149: Flags [S.], seq 2793501170, ack 1455004408, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.230405 IP localhost.17149 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 18:49:10.230425 IP localhost.17149 > localhost.dnp-sec: Flags [P.], seq 1:1069, ack 1, win 342, length 1068 18:49:10.230430 IP localhost.dnp-sec > localhost.17149: Flags [.], ack 1069, win 359, length 0 18:49:10.248978 IP localhost.dnp-sec > localhost.17147: Flags [P.], seq 1:328, ack 1071, win 359, length 327 18:49:10.248993 IP localhost.17147 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0 18:49:10.249259 IP localhost.17147 > localhost.dnp-sec: Flags [F.], seq 1071, ack 328, win 350, length 0 18:49:10.249530 IP localhost.dnp-sec > localhost.17147: Flags [F.], seq 328, ack 1072, win 359, length 0 18:49:10.249540 IP localhost.17147 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0 18:49:10.249685 IP localhost.17151 > localhost.dnp-sec: Flags [S], seq 3847880521, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.249702 IP localhost.dnp-sec > localhost.17151: Flags [S.], seq 3179461344, ack 3847880522, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 18:49:10.249713 IP localhost.17151 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 18:49:10.249743 IP localhost.17151 > localhost.dnp-sec: Flags [P.], seq 1:1026, ack 1, win 342, length 1025 18:49:10.249750 IP localhost.dnp-sec > localhost.17151: Flags [.], ack 1026, win 358, length 0 18:49:10.257783 IP localhost.dnp-sec > localhost.17149: Flags [P.], seq 1:328, ack 1069, win 359, length 327 18:49:10.257793 IP localhost.17149 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0 18:49:10.258028 IP localhost.17149 > localhost.dnp-sec: Flags [F.], seq 1069, ack 328, win 350, length 0 18:49:10.258254 IP localhost.dnp-sec > localhost.17149: Flags [F.], seq 328, ack 1070, win 359, length 0 18:49:10.258264 IP localhost.17149 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0 18:49:10.262423 IP localhost.dnp-sec > localhost.17151: Flags [P.], seq 1:308, ack 1026, win 358, length 307 18:49:10.262430 IP localhost.17151 > localhost.dnp-sec: Flags [.], ack 308, win 350, length 0 18:49:10.262555 IP localhost.17151 > localhost.dnp-sec: Flags [F.], seq 1026, ack 308, win 350, length 0 18:49:10.262723 IP localhost.dnp-sec > localhost.17151: Flags [F.], seq 308, ack 1027, win 358, length 0 18:49:10.262734 IP localhost.17151 > localhost.dnp-sec: Flags [.], ack 309, win 350, length 0 ^C 72 packets captured 144 packets received by filter 0 packets dropped by kernel ``` i dont know whats happend.
Author
Owner

@licsber commented on GitHub (Apr 8, 2020):

other info if helpd

(base) [licsber@licsber ~]$ sudo tcpdump -i lo -A
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes
19:22:00.871504 IP localhost.17207 > localhost.dnp-sec: Flags [S], seq 2375767403, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4.q@.@..P........C7N...Uk.........(..............
19:22:00.871523 IP localhost.dnp-sec > localhost.17207: Flags [S.], seq 1384561099, ack 2375767404, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4..@.@.<.........N.C7R.....Ul.....(..............
19:22:00.871540 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
E..(.r@.@..[........C7N...UlR...P..V....
19:22:00.871583 IP localhost.17207 > localhost.dnp-sec: Flags [P.], seq 1:985, ack 1, win 342, length 984
E....s@.@...........C7N...UlR...P..V....GET /terminals/1 HTTP/1.1
Host: MY_NAME.frp.MY_DOMAIN
X-Real-IP: 49.65.160.255
X-Forwarded-For: 49.65.160.255
Connection: upgrade
Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545
Upgrade-Insecure-Requests: 1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Referer: http://MY_NAME.frp.MY_DOMAIN/tree?
Accept-Language: zh-cn


19:22:00.871592 IP localhost.dnp-sec > localhost.17207: Flags [.], ack 985, win 357, length 0
E..(D.@.@...........N.C7R.....YDP..e....
19:22:00.886741 IP localhost.dnp-sec > localhost.17207: Flags [P.], seq 1:4097, ack 985, win 357, length 4096
E..(D.@.@...........N.C7R.....YDP..e....HTTP/1.1 200 OK
Content-Length: 6463
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Content-Type: text/html; charset=UTF-8
Date: Wed, 08 Apr 2020 11:22:00 GMT
Etag: "8f511761a842217401ec06f4e737a9b3604ecaf1"
Server: TornadoServer/6.0.3
X-Content-Type-Options: nosniff

<!DOCTYPE HTML>
<html>

<head>
    <meta charset="utf-8">

    <title></title>
    <link id="favicon" rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon-terminal.ico?v=85fc3a76e3f42aa9a236062a830cb194">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=3c2a865c832a1322285c55c6ed99abb2" type="text/css" />
    <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    
    

    <link rel="stylesheet" href="/static/style/style.min.css?v=e91a43337d7c294cc9fab2938fa723b3" type="text/css"/>
    
<link rel="stylesheet" href="/static/terminal/css/override.css?v=b71f5060e3fa5cdd606894114e92b952" type="text/css" />
<link rel="stylesheet" href="/static/components/xterm.js-css/index.css?v=88b4f56f82473c085b7429dbe73d9b0d" type="text/css" />

    <link rel="stylesheet" href="/custom/custom.css" type="text/css" />
    <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script>
    <script src="/static/components/react/react.production.min.js?v=34f96ffc962a7deecc83037ccb582b58" type="text/javascript"></script>
    <script src="/static/components/react/react-dom.production.min.js?v=b14d91fb641317cda38dbc9dbf985ab4" type="text/javascript"></script>
    <script src="/static/components/create-react-class/index.js?v=94feb9971ce6d26211729abc43f96cd2" type="text/javascript"></script>
    <script src="/static/components/requirejs/require.js?v=951f856e81496aaeec2e71a1c2c0d51f" type="text/javascript" charset="utf-8"></script>
    <script>
      require.config({
          
          urlArgs: "v=20200407210045",
          
          baseUrl: '/static/',
          paths: {
            'auth/js/main': 'auth/js/main.min',
            custom : '/custom',
            nbextensions : '/nbextensions',
            kernelspecs : '/kernelspecs',
            underscore : 'components/underscore/underscore-min',
            backbone : 'components/backbone/backbone-min',
            jed: 'components/jed/jed',
            jquery: 'components/jquery/jquery.min',
            json: 'components/requirejs-plugins/src/json',
            text: 'components/requirejs-text/text',
            bootstrap: 'components/bootstrap/dist/js/bootstrap.min',
            bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min',
            'jquery-ui': 'components/jquery-ui/jquery-ui.min',
            moment: 'components/moment/min/moment-with-locales',
            codemirror: 'components/codemirror',
            termjs: 'components/xterm.js/xterm',
            typeahead: 'components/jquery-typeahead/dist/jquery.typeahead.min',
          },
          map: { // for backward compatibility
              "*": {
                  "jqueryui": "jquery-ui",
              }
          },
          shim: {
            typeahead: {
              deps: ["jquery"],
              exports: "typeahead"
            },
            underscore: {
              exports: '_'
            },
            backbone: {
              deps: ["underscore", "jquery"],
              exports: "Backbone"
            },
            bootstrap: {
              deps: ["jquery"],
              exports: "bootstrap"
            },
            bootstraptour: {
              deps: ["bootstrap"],
              exports: "Tour"
            },
            "jquery-ui": {
              deps: ["jquery"],
              exports: "$"
            }
          },
          waitSeconds: 30,
      });

      require.config({
          map:
19:22:00.886762 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 4097, win 1365, length 0
E..(.t@.@..Y........C7N...YDR...P..U....
19:22:00.886784 IP localhost.dnp-sec > localhost.17207: Flags [P.], seq 4097:6780, ack 985, win 357, length 2683
E.
.D.@.@..z........N.C7R.....YDP..e.... {
              '*':{
                'contents': 'services/contents',
              }
          }
      });

      // error-catching custom.js shim.
      define("custom", function (require, exports, module) {
          try {
              var custom = require('custom/custom');
              console.debug('loaded custom.js');
              return custom;
          } catch (e) {
              console.error("error loading custom.js", e);
              return {};
          }
      })

    document.nbjs_translations = {"domain": "nbjs", "locale_data": {"nbjs": {"": {"domain": "nbjs"}}}};
    document.documentElement.lang = navigator.language.toLowerCase();
    </script>

    
    

</head>

<body class="terminal-app "
 
data-base-url="/"
data-ws-url=""
data-ws-path="terminals/websocket/1"

dir="ltr">

<noscript>
    <div id='noscript'>
      Jupyter Notebook requires JavaScript.<br>
      Please enable it to proceed. 
  </div>
</noscript>

<div id="header" role="navigation" aria-label="Top Menu">
  <div id="header-container" class="container">
  <div id="ipython_notebook" class="nav navbar-brand"><a href="/tree" title='dashboard'>
      <img src='/static/base/images/logo.png?v=641991992878ee24c6f3826e81054a0f' alt='Jupyter Notebook'/>
  </a></div>

  
<span id="save_widget" class="save_widget"></span>

  

  
  
  
  

    <span id="login_widget">
      
        <button id="logout" class="btn btn-sm navbar-btn">Logout</button>
      
    </span>

  

  
  
  </div>
  <div class="header-bar"></div>

  
  
</div>

<div id="site">

<div class="terminado-container-container">
  <div id="terminado-container" class="container"></div>
</div>

</div>






    


<script src="/static/terminal/js/main.min.js?v=6262b4282179b19a60b923a8da11524f" type="text/javascript" charset="utf-8"></script>


<script type='text/javascript'>
  function _remove_token_from_url() {
    if (window.location.search.length <= 1) {
      return;
    }
    var search_parameters = window.location.search.slice(1).split('&');
    for (var i = 0; i < search_parameters.length; i++) {
      if (search_parameters[i].split('=')[0] === 'token') {
        // remote token from search parameters
        search_parameters.splice(i, 1);
        var new_search = '';
        if (search_parameters.length) {
          new_search = '?' + search_parameters.join('&');
        }
        var new_url = window.location.origin + 
                      window.location.pathname + 
                      new_search + 
                      window.location.hash;
        window.history.replaceState({}, "", new_url);
        return;
      }
    }
  }
  _remove_token_from_url();
</script>
</body>

</html>
19:22:00.886790 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 6780, win 2389, length 0
E..(.u@.@..X........C7N...YDR..GP.	U....
19:22:00.887588 IP localhost.17207 > localhost.dnp-sec: Flags [F.], seq 985, ack 6780, win 2389, length 0
E..(.v@.@..W........C7N...YDR..GP.	U....
19:22:00.887797 IP localhost.dnp-sec > localhost.17207: Flags [F.], seq 6780, ack 986, win 357, length 0
E..(D.@.@...........N.C7R..G..YEP..e....
19:22:00.887806 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 6781, win 2389, length 0
E..(.w@.@..V........C7N...YER..HP.	U....
19:22:01.440568 IP localhost.17209 > localhost.dnp-sec: Flags [S], seq 2910896894, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4=.@.@...........C9N..............(..............
19:22:01.440581 IP localhost.dnp-sec > localhost.17209: Flags [S.], seq 3537863437, ack 2910896895, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4..@.@.<.........N.C9.............(..............
19:22:01.440592 IP localhost.17209 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
E..(=.@.@...........C9N.........P..V....
19:22:01.440637 IP localhost.17209 > localhost.dnp-sec: Flags [P.], seq 1:1069, ack 1, win 342, length 1068
E..T=.@.@...........C9N.........P..V.I..GET /api/config/common?_=1586344920931 HTTP/1.1
Host: MY_NAME.frp.MY_DOMAIN
X-Real-IP: 49.65.160.255
X-Forwarded-For: 49.65.160.255
Connection: upgrade
Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545
Accept: application/json, text/javascript, */*; q=0.01
X-XSRFToken: 2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Referer: http://MY_NAME.frp.MY_DOMAIN/terminals/1
Accept-Language: zh-cn
X-Requested-With: XMLHttpRequest


19:22:01.440642 IP localhost.dnp-sec > localhost.17209: Flags [.], ack 1069, win 359, length 0
E..(|]@.@..p........N.C9.......+P..g....
19:22:01.442882 IP localhost.17211 > localhost.dnp-sec: Flags [S], seq 2509124032, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4..@.@.n,........C;N...1..........(..............
19:22:01.442898 IP localhost.dnp-sec > localhost.17211: Flags [S.], seq 1809169794, ack 2509124033, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4..@.@.<.........N.C;k.....1......(..............
19:22:01.442911 IP localhost.17211 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
E..(..@.@.n7........C;N...1.k...P..V....
19:22:01.442944 IP localhost.17211 > localhost.dnp-sec: Flags [P.], seq 1:1071, ack 1, win 342, length 1070
E..V..@.@.j.........C;N...1.k...P..V.K..GET /api/config/terminal?_=1586344920930 HTTP/1.1
Host: MY_NAME.frp.MY_DOMAIN
X-Real-IP: 49.65.160.255
X-Forwarded-For: 49.65.160.255
Connection: upgrade
Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545
Accept: application/json, text/javascript, */*; q=0.01
X-XSRFToken: 2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Referer: http://MY_NAME.frp.MY_DOMAIN/terminals/1
Accept-Language: zh-cn
X-Requested-With: XMLHttpRequest


19:22:01.442951 IP localhost.dnp-sec > localhost.17211: Flags [.], ack 1071, win 359, length 0
E..(B.@.@...........N.C;k.....5.P..g....
19:22:01.443859 IP localhost.17213 > localhost.dnp-sec: Flags [S], seq 3274167748, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4*.@.@..0........C=N..'...........(..............
19:22:01.443868 IP localhost.dnp-sec > localhost.17213: Flags [S.], seq 4230541836, ack 3274167749, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0
E..4..@.@.<.........N.C=.(...'.......(..............
19:22:01.443876 IP localhost.17213 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0
E..(*.@.@..;........C=N..'...(..P..V....
19:22:01.443896 IP localhost.17213 > localhost.dnp-sec: Flags [P.], seq 1:1026, ack 1, win 342, length 1025
E..)*.@.@..9........C=N..'...(..P..V....GET /terminals/websocket/1 HTTP/1.1
Host: MY_NAME.frp.MY_DOMAIN
X-Real-IP: 49.65.160.255
X-Forwarded-For: 49.65.160.255
Connection: upgrade
Origin: http://MY_NAME.frp.MY_DOMAIN
Pragma: no-cache
Cache-Control: no-cache
Sec-WebSocket-Key: cVDdl1dv5VOpGGRW4RddkQ==
Sec-WebSocket-Version: 13
Sec-WebSocket-Extensions: x-webkit-deflate-frame
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15
Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545


19:22:01.443901 IP localhost.dnp-sec > localhost.17213: Flags [.], ack 1026, win 358, length 0
E..(.[@.@./s........N.C=.(...'..P..f....
19:22:01.451792 IP localhost.dnp-sec > localhost.17209: Flags [P.], seq 1:328, ack 1069, win 359, length 327
E..o|^@.@..(........N.C9.......+P..g.c..HTTP/1.1 200 OK
Content-Length: 2
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'
Content-Type: application/json
Date: Wed, 08 Apr 2020 11:22:01 GMT
Etag: "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"
Server: TornadoServer/6.0.3
X-Content-Type-Options: nosniff

{}
19:22:01.451800 IP localhost.17209 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0
E..(=.@.@...........C9N....+...UP..^....
19:22:01.452058 IP localhost.17209 > localhost.dnp-sec: Flags [F.], seq 1069, ack 328, win 350, length 0
E..(=.@.@...........C9N....+...UP..^....
19:22:01.452296 IP localhost.dnp-sec > localhost.17209: Flags [F.], seq 328, ack 1070, win 359, length 0
E..(|_@.@..n........N.C9...U...,P..g....
19:22:01.452305 IP localhost.17209 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0
E..(=.@.@...........C9N....,...VP..^....
19:22:01.464671 IP localhost.dnp-sec > localhost.17211: Flags [P.], seq 1:328, ack 1071, win 359, length 327
E..oB.@.@...........N.C;k.....5.P..g.c..HTTP/1.1 200 OK
Content-Length: 2
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none'
Content-Type: application/json
Date: Wed, 08 Apr 2020 11:22:01 GMT
Etag: "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"
Server: TornadoServer/6.0.3
X-Content-Type-Options: nosniff

{}
19:22:01.464680 IP localhost.17211 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0
E..(..@.@.n5........C;N...5.k...P..^....
19:22:01.464721 IP localhost.dnp-sec > localhost.17213: Flags [P.], seq 1:308, ack 1026, win 358, length 307
E..[.\@.@..?........N.C=.(...'..P..f.O..HTTP/1.1 400 Bad Request
Content-Length: 34
Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report
Content-Type: text/html; charset=UTF-8
Date: Wed, 08 Apr 2020 11:22:01 GMT
Server: TornadoServer/6.0.3
X-Content-Type-Options: nosniff

Can "Upgrade" only to "WebSocket".
19:22:01.464727 IP localhost.17213 > localhost.dnp-sec: Flags [.], ack 308, win 350, length 0
E..(*.@.@..9........C=N..'...(.@P..^....
19:22:01.465036 IP localhost.17211 > localhost.dnp-sec: Flags [F.], seq 1071, ack 328, win 350, length 0
E..(..@.@.n4........C;N...5.k...P..^....
19:22:01.465169 IP localhost.17213 > localhost.dnp-sec: Flags [F.], seq 1026, ack 308, win 350, length 0
E..(*.@.@..8........C=N..'...(.@P..^....
19:22:01.465358 IP localhost.dnp-sec > localhost.17213: Flags [F.], seq 308, ack 1027, win 358, length 0
E..(.]@.@./q........N.C=.(.@.'..P..f....
19:22:01.465371 IP localhost.17213 > localhost.dnp-sec: Flags [.], ack 309, win 350, length 0
E..(*.@.@..7........C=N..'...(.AP..^....
19:22:01.465413 IP localhost.dnp-sec > localhost.17211: Flags [F.], seq 328, ack 1072, win 359, length 0
E..(B.@.@...........N.C;k.....5.P..g....
19:22:01.465422 IP localhost.17211 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0
E..(..@.@.n3........C;N...5.k...P..^....
<!-- gh-comment-id:610902126 --> @licsber commented on GitHub (Apr 8, 2020): other info if helpd ``` (base) [licsber@licsber ~]$ sudo tcpdump -i lo -A tcpdump: verbose output suppressed, use -v or -vv for full protocol decode listening on lo, link-type EN10MB (Ethernet), capture size 262144 bytes 19:22:00.871504 IP localhost.17207 > localhost.dnp-sec: Flags [S], seq 2375767403, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4.q@.@..P........C7N...Uk.........(.............. 19:22:00.871523 IP localhost.dnp-sec > localhost.17207: Flags [S.], seq 1384561099, ack 2375767404, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4..@.@.<.........N.C7R.....Ul.....(.............. 19:22:00.871540 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 E..(.r@.@..[........C7N...UlR...P..V.... 19:22:00.871583 IP localhost.17207 > localhost.dnp-sec: Flags [P.], seq 1:985, ack 1, win 342, length 984 E....s@.@...........C7N...UlR...P..V....GET /terminals/1 HTTP/1.1 Host: MY_NAME.frp.MY_DOMAIN X-Real-IP: 49.65.160.255 X-Forwarded-For: 49.65.160.255 Connection: upgrade Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545 Upgrade-Insecure-Requests: 1 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 Referer: http://MY_NAME.frp.MY_DOMAIN/tree? Accept-Language: zh-cn 19:22:00.871592 IP localhost.dnp-sec > localhost.17207: Flags [.], ack 985, win 357, length 0 E..(D.@.@...........N.C7R.....YDP..e.... 19:22:00.886741 IP localhost.dnp-sec > localhost.17207: Flags [P.], seq 1:4097, ack 985, win 357, length 4096 E..(D.@.@...........N.C7R.....YDP..e....HTTP/1.1 200 OK Content-Length: 6463 Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report Content-Type: text/html; charset=UTF-8 Date: Wed, 08 Apr 2020 11:22:00 GMT Etag: "8f511761a842217401ec06f4e737a9b3604ecaf1" Server: TornadoServer/6.0.3 X-Content-Type-Options: nosniff <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title></title> <link id="favicon" rel="shortcut icon" type="image/x-icon" href="/static/base/images/favicon-terminal.ico?v=85fc3a76e3f42aa9a236062a830cb194"> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <link rel="stylesheet" href="/static/components/jquery-ui/themes/smoothness/jquery-ui.min.css?v=3c2a865c832a1322285c55c6ed99abb2" type="text/css" /> <link rel="stylesheet" href="/static/components/jquery-typeahead/dist/jquery.typeahead.min.css?v=7afb461de36accb1aa133a1710f5bc56" type="text/css" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="/static/style/style.min.css?v=e91a43337d7c294cc9fab2938fa723b3" type="text/css"/> <link rel="stylesheet" href="/static/terminal/css/override.css?v=b71f5060e3fa5cdd606894114e92b952" type="text/css" /> <link rel="stylesheet" href="/static/components/xterm.js-css/index.css?v=88b4f56f82473c085b7429dbe73d9b0d" type="text/css" /> <link rel="stylesheet" href="/custom/custom.css" type="text/css" /> <script src="/static/components/es6-promise/promise.min.js?v=f004a16cb856e0ff11781d01ec5ca8fe" type="text/javascript" charset="utf-8"></script> <script src="/static/components/react/react.production.min.js?v=34f96ffc962a7deecc83037ccb582b58" type="text/javascript"></script> <script src="/static/components/react/react-dom.production.min.js?v=b14d91fb641317cda38dbc9dbf985ab4" type="text/javascript"></script> <script src="/static/components/create-react-class/index.js?v=94feb9971ce6d26211729abc43f96cd2" type="text/javascript"></script> <script src="/static/components/requirejs/require.js?v=951f856e81496aaeec2e71a1c2c0d51f" type="text/javascript" charset="utf-8"></script> <script> require.config({ urlArgs: "v=20200407210045", baseUrl: '/static/', paths: { 'auth/js/main': 'auth/js/main.min', custom : '/custom', nbextensions : '/nbextensions', kernelspecs : '/kernelspecs', underscore : 'components/underscore/underscore-min', backbone : 'components/backbone/backbone-min', jed: 'components/jed/jed', jquery: 'components/jquery/jquery.min', json: 'components/requirejs-plugins/src/json', text: 'components/requirejs-text/text', bootstrap: 'components/bootstrap/dist/js/bootstrap.min', bootstraptour: 'components/bootstrap-tour/build/js/bootstrap-tour.min', 'jquery-ui': 'components/jquery-ui/jquery-ui.min', moment: 'components/moment/min/moment-with-locales', codemirror: 'components/codemirror', termjs: 'components/xterm.js/xterm', typeahead: 'components/jquery-typeahead/dist/jquery.typeahead.min', }, map: { // for backward compatibility "*": { "jqueryui": "jquery-ui", } }, shim: { typeahead: { deps: ["jquery"], exports: "typeahead" }, underscore: { exports: '_' }, backbone: { deps: ["underscore", "jquery"], exports: "Backbone" }, bootstrap: { deps: ["jquery"], exports: "bootstrap" }, bootstraptour: { deps: ["bootstrap"], exports: "Tour" }, "jquery-ui": { deps: ["jquery"], exports: "$" } }, waitSeconds: 30, }); require.config({ map: 19:22:00.886762 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 4097, win 1365, length 0 E..(.t@.@..Y........C7N...YDR...P..U.... 19:22:00.886784 IP localhost.dnp-sec > localhost.17207: Flags [P.], seq 4097:6780, ack 985, win 357, length 2683 E. .D.@.@..z........N.C7R.....YDP..e.... { '*':{ 'contents': 'services/contents', } } }); // error-catching custom.js shim. define("custom", function (require, exports, module) { try { var custom = require('custom/custom'); console.debug('loaded custom.js'); return custom; } catch (e) { console.error("error loading custom.js", e); return {}; } }) document.nbjs_translations = {"domain": "nbjs", "locale_data": {"nbjs": {"": {"domain": "nbjs"}}}}; document.documentElement.lang = navigator.language.toLowerCase(); </script> </head> <body class="terminal-app " data-base-url="/" data-ws-url="" data-ws-path="terminals/websocket/1" dir="ltr"> <noscript> <div id='noscript'> Jupyter Notebook requires JavaScript.<br> Please enable it to proceed. </div> </noscript> <div id="header" role="navigation" aria-label="Top Menu"> <div id="header-container" class="container"> <div id="ipython_notebook" class="nav navbar-brand"><a href="/tree" title='dashboard'> <img src='/static/base/images/logo.png?v=641991992878ee24c6f3826e81054a0f' alt='Jupyter Notebook'/> </a></div> <span id="save_widget" class="save_widget"></span> <span id="login_widget"> <button id="logout" class="btn btn-sm navbar-btn">Logout</button> </span> </div> <div class="header-bar"></div> </div> <div id="site"> <div class="terminado-container-container"> <div id="terminado-container" class="container"></div> </div> </div> <script src="/static/terminal/js/main.min.js?v=6262b4282179b19a60b923a8da11524f" type="text/javascript" charset="utf-8"></script> <script type='text/javascript'> function _remove_token_from_url() { if (window.location.search.length <= 1) { return; } var search_parameters = window.location.search.slice(1).split('&'); for (var i = 0; i < search_parameters.length; i++) { if (search_parameters[i].split('=')[0] === 'token') { // remote token from search parameters search_parameters.splice(i, 1); var new_search = ''; if (search_parameters.length) { new_search = '?' + search_parameters.join('&'); } var new_url = window.location.origin + window.location.pathname + new_search + window.location.hash; window.history.replaceState({}, "", new_url); return; } } } _remove_token_from_url(); </script> </body> </html> 19:22:00.886790 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 6780, win 2389, length 0 E..(.u@.@..X........C7N...YDR..GP. U.... 19:22:00.887588 IP localhost.17207 > localhost.dnp-sec: Flags [F.], seq 985, ack 6780, win 2389, length 0 E..(.v@.@..W........C7N...YDR..GP. U.... 19:22:00.887797 IP localhost.dnp-sec > localhost.17207: Flags [F.], seq 6780, ack 986, win 357, length 0 E..(D.@.@...........N.C7R..G..YEP..e.... 19:22:00.887806 IP localhost.17207 > localhost.dnp-sec: Flags [.], ack 6781, win 2389, length 0 E..(.w@.@..V........C7N...YER..HP. U.... 19:22:01.440568 IP localhost.17209 > localhost.dnp-sec: Flags [S], seq 2910896894, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4=.@.@...........C9N..............(.............. 19:22:01.440581 IP localhost.dnp-sec > localhost.17209: Flags [S.], seq 3537863437, ack 2910896895, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4..@.@.<.........N.C9.............(.............. 19:22:01.440592 IP localhost.17209 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 E..(=.@.@...........C9N.........P..V.... 19:22:01.440637 IP localhost.17209 > localhost.dnp-sec: Flags [P.], seq 1:1069, ack 1, win 342, length 1068 E..T=.@.@...........C9N.........P..V.I..GET /api/config/common?_=1586344920931 HTTP/1.1 Host: MY_NAME.frp.MY_DOMAIN X-Real-IP: 49.65.160.255 X-Forwarded-For: 49.65.160.255 Connection: upgrade Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545 Accept: application/json, text/javascript, */*; q=0.01 X-XSRFToken: 2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 Referer: http://MY_NAME.frp.MY_DOMAIN/terminals/1 Accept-Language: zh-cn X-Requested-With: XMLHttpRequest 19:22:01.440642 IP localhost.dnp-sec > localhost.17209: Flags [.], ack 1069, win 359, length 0 E..(|]@.@..p........N.C9.......+P..g.... 19:22:01.442882 IP localhost.17211 > localhost.dnp-sec: Flags [S], seq 2509124032, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4..@.@.n,........C;N...1..........(.............. 19:22:01.442898 IP localhost.dnp-sec > localhost.17211: Flags [S.], seq 1809169794, ack 2509124033, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4..@.@.<.........N.C;k.....1......(.............. 19:22:01.442911 IP localhost.17211 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 E..(..@.@.n7........C;N...1.k...P..V.... 19:22:01.442944 IP localhost.17211 > localhost.dnp-sec: Flags [P.], seq 1:1071, ack 1, win 342, length 1070 E..V..@.@.j.........C;N...1.k...P..V.K..GET /api/config/terminal?_=1586344920930 HTTP/1.1 Host: MY_NAME.frp.MY_DOMAIN X-Real-IP: 49.65.160.255 X-Forwarded-For: 49.65.160.255 Connection: upgrade Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545 Accept: application/json, text/javascript, */*; q=0.01 X-XSRFToken: 2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 Referer: http://MY_NAME.frp.MY_DOMAIN/terminals/1 Accept-Language: zh-cn X-Requested-With: XMLHttpRequest 19:22:01.442951 IP localhost.dnp-sec > localhost.17211: Flags [.], ack 1071, win 359, length 0 E..(B.@.@...........N.C;k.....5.P..g.... 19:22:01.443859 IP localhost.17213 > localhost.dnp-sec: Flags [S], seq 3274167748, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4*.@.@..0........C=N..'...........(.............. 19:22:01.443868 IP localhost.dnp-sec > localhost.17213: Flags [S.], seq 4230541836, ack 3274167749, win 43690, options [mss 65495,nop,nop,sackOK,nop,wscale 7], length 0 E..4..@.@.<.........N.C=.(...'.......(.............. 19:22:01.443876 IP localhost.17213 > localhost.dnp-sec: Flags [.], ack 1, win 342, length 0 E..(*.@.@..;........C=N..'...(..P..V.... 19:22:01.443896 IP localhost.17213 > localhost.dnp-sec: Flags [P.], seq 1:1026, ack 1, win 342, length 1025 E..)*.@.@..9........C=N..'...(..P..V....GET /terminals/websocket/1 HTTP/1.1 Host: MY_NAME.frp.MY_DOMAIN X-Real-IP: 49.65.160.255 X-Forwarded-For: 49.65.160.255 Connection: upgrade Origin: http://MY_NAME.frp.MY_DOMAIN Pragma: no-cache Cache-Control: no-cache Sec-WebSocket-Key: cVDdl1dv5VOpGGRW4RddkQ== Sec-WebSocket-Version: 13 Sec-WebSocket-Extensions: x-webkit-deflate-frame User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15 Cookie: __cfduid=d0b75c1ee3b4105df1ccd63642e80569f1586033865; username-MY_NAME-frp-licsber-site-19999="2|1:0|10:1584979649|37:username-MY_NAME-frp-licsber-site-19999|44:ZWUxZjE3YTA5NTk1NDYyMzhjNTkzMGJjYmQ5YWFkMGQ=|dc1488ab959092a1bbc2e4d438904e88bb149319b46a79d281ec418a66170e67"; username-MY_NAME-frp-licsber-site="2|1:0|10:1584976696|31:username-MY_NAME-frp-licsber-site|44:YWRlNTU2YmRiNGNiNGE3ZGE3YWM4ZjA5ZTE3ZDA0MTE=|99ada4790a7e663763e0347fe04b7a615c60e413cee573c79229f2496d725631"; _xsrf=2|684d3e63|68ed8b2d4dd9023fa943e42e1507da37|1584003545 19:22:01.443901 IP localhost.dnp-sec > localhost.17213: Flags [.], ack 1026, win 358, length 0 E..(.[@.@./s........N.C=.(...'..P..f.... 19:22:01.451792 IP localhost.dnp-sec > localhost.17209: Flags [P.], seq 1:328, ack 1069, win 359, length 327 E..o|^@.@..(........N.C9.......+P..g.c..HTTP/1.1 200 OK Content-Length: 2 Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none' Content-Type: application/json Date: Wed, 08 Apr 2020 11:22:01 GMT Etag: "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f" Server: TornadoServer/6.0.3 X-Content-Type-Options: nosniff {} 19:22:01.451800 IP localhost.17209 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0 E..(=.@.@...........C9N....+...UP..^.... 19:22:01.452058 IP localhost.17209 > localhost.dnp-sec: Flags [F.], seq 1069, ack 328, win 350, length 0 E..(=.@.@...........C9N....+...UP..^.... 19:22:01.452296 IP localhost.dnp-sec > localhost.17209: Flags [F.], seq 328, ack 1070, win 359, length 0 E..(|_@.@..n........N.C9...U...,P..g.... 19:22:01.452305 IP localhost.17209 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0 E..(=.@.@...........C9N....,...VP..^.... 19:22:01.464671 IP localhost.dnp-sec > localhost.17211: Flags [P.], seq 1:328, ack 1071, win 359, length 327 E..oB.@.@...........N.C;k.....5.P..g.c..HTTP/1.1 200 OK Content-Length: 2 Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report; default-src 'none' Content-Type: application/json Date: Wed, 08 Apr 2020 11:22:01 GMT Etag: "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f" Server: TornadoServer/6.0.3 X-Content-Type-Options: nosniff {} 19:22:01.464680 IP localhost.17211 > localhost.dnp-sec: Flags [.], ack 328, win 350, length 0 E..(..@.@.n5........C;N...5.k...P..^.... 19:22:01.464721 IP localhost.dnp-sec > localhost.17213: Flags [P.], seq 1:308, ack 1026, win 358, length 307 E..[.\@.@..?........N.C=.(...'..P..f.O..HTTP/1.1 400 Bad Request Content-Length: 34 Content-Security-Policy: frame-ancestors 'self'; report-uri /api/security/csp-report Content-Type: text/html; charset=UTF-8 Date: Wed, 08 Apr 2020 11:22:01 GMT Server: TornadoServer/6.0.3 X-Content-Type-Options: nosniff Can "Upgrade" only to "WebSocket". 19:22:01.464727 IP localhost.17213 > localhost.dnp-sec: Flags [.], ack 308, win 350, length 0 E..(*.@.@..9........C=N..'...(.@P..^.... 19:22:01.465036 IP localhost.17211 > localhost.dnp-sec: Flags [F.], seq 1071, ack 328, win 350, length 0 E..(..@.@.n4........C;N...5.k...P..^.... 19:22:01.465169 IP localhost.17213 > localhost.dnp-sec: Flags [F.], seq 1026, ack 308, win 350, length 0 E..(*.@.@..8........C=N..'...(.@P..^.... 19:22:01.465358 IP localhost.dnp-sec > localhost.17213: Flags [F.], seq 308, ack 1027, win 358, length 0 E..(.]@.@./q........N.C=.(.@.'..P..f.... 19:22:01.465371 IP localhost.17213 > localhost.dnp-sec: Flags [.], ack 309, win 350, length 0 E..(*.@.@..7........C=N..'...(.AP..^.... 19:22:01.465413 IP localhost.dnp-sec > localhost.17211: Flags [F.], seq 328, ack 1072, win 359, length 0 E..(B.@.@...........N.C;k.....5.P..g.... 19:22:01.465422 IP localhost.17211 > localhost.dnp-sec: Flags [.], ack 329, win 350, length 0 E..(..@.@.n3........C;N...5.k...P..^.... ```
Author
Owner

@fatedier commented on GitHub (Apr 9, 2020):

I followed your reproduce operations and nginx return the header Server: nginx/1.17.9 with no other errors.

Maybe it's your own environment problem.

<!-- gh-comment-id:611346588 --> @fatedier commented on GitHub (Apr 9, 2020): I followed your reproduce operations and nginx return the header `Server: nginx/1.17.9` with no other errors. Maybe it's your own environment problem.
Author
Owner

@licsber commented on GitHub (Apr 10, 2020):

I followed your reproduce operations and nginx return the header Server: nginx/1.17.9 with no other errors.

Maybe it's your own environment problem.

I use docker to run nginx:latest (1.17.9) to reproduce, but has correct return header.

Maybe this is a bug on nginx 1.16.1.

Sorry for taking your time. tks!

This issue can be closed. ta!

<!-- gh-comment-id:611850960 --> @licsber commented on GitHub (Apr 10, 2020): > I followed your reproduce operations and nginx return the header `Server: nginx/1.17.9` with no other errors. > > Maybe it's your own environment problem. I use docker to run nginx:latest (1.17.9) to reproduce, but has correct return header. Maybe this is a bug on nginx 1.16.1. Sorry for taking your time. tks! This issue can be closed. ta!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1373
No description provided.