Open 0pcom opened 5 months ago
I get this error on test one:
[2024-07-03T11:35:58.089356979Z] INFO [dmsgwebsrv]: Error during copy: read tcp 127.0.0.1:56900->127.0.0.1:8000: use of closed network connection
[2024-07-03T11:35:58.089403212Z] INFO [dmsgwebsrv]: Error during copy: readfrom tcp 127.0.0.1:56900->127.0.0.1:8000: EOF
Have same error on test two, also second proxy never run there:
mohammed@workstation:~$ ncat 127.0.0.1 8004
Ncat: Connection refused.
Just first reverse proxy tcp server running, and 8004 never serving, based on logs.
[2024-07-03T11:38:38.038530211Z] DEBUG [dmsgweb]: Dmsg network ready.
[2024-07-03T11:38:38.038625645Z] DEBUG [dmsgweb]: proxyTCPConn(0)
[2024-07-03T11:38:38.038616644Z] DEBUG [dmsg_client]: Serving session. remote_pk=02a2d4c346dabd165fd555dfdba4a7f4d18786fe7e055e562397cd5102bdd7f8dd
2024/07/03 11:38:38 Serving TCP on 127.0.0.1:8003
Testing
serve hello world via tcp on port 8000
serve hello world via tcp on port 8002
(optional sanity check) test the tcp proxy
use ncat to access the tcp server via the proxy
then, stop the terminal running tcp-proxy.
Now, test proxying via
dmsg web srv
Those ports are now served over dmsg
COPY THE CLIENT PK
use dmsgweb we can put them back on other localhost ports so that we can access with netcat
Keep in mind that the logic for a simgle instance is different from multiple instances, so test these separately
one:
two:
Now attempt to access them via ncat (desired output shown below)