Skip to content

micahyoung/code-server-chisel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wrapper for chisel server for ease-of-use in code-server

Features

  • Runs server as libary, configured for code-server port-forwarding
  • Listens for initial "Open in Browser" connection and returns configured chisel client command with cookie header

Usage

In code-server Terminal

  1. Run local command that needs to be forwarded

    Ex: netcat listening on UDP 9999

    netcat -l -k -u localhost 9999  # or any command
  2. Build and run with tunnel port

    go build \
        -ldflags="-s -w -X github.com/jpillora/chisel/share.BuildVersion=1.9.1" \
        -o code-server-chisel \
        github.com/micahyoung/code-server-chisel
    
    ./code-server-chisel server -p 8082
  3. Click "Open in Browser" and copy command to clipboard

On client workstation terminal

  1. Paste the copied command, replacing the # add local port comment with the server-side local command port

    Ex: pasted command with "9999/udp" appended

    chisel client --header 'Cookie: code-server-session=...' https://localhost:8080/proxy/8082 9999/udp
  2. Run the local client command to send data

    echo "hello" | nc -u localhost 9999

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages