tcpproxy

tcpproxy proxies a tcp port via openconnect

Security

tcpproxy is probably not secure. Use it only in a containerized environment with non-sensitive data. Don't allow untrusted data to be passed in either direction. Make sure both endpoints are trusted and not attempting exploitation, and that they sanitize inputs.

Usage

  1. build the docker container: podman build .
  2. get a session cookie: podman run -it $IMAGE authenticate --servercert pin-sha256:4uihYZlNNqOumDmmg9/Nn50TiI5vmPIq2iqmmzgKlxA= --no-system-trust --pfs --protocol=gp remote.vpn.server
  3. start a connection: podman run -e HOST=example.com -p 1235:1235 -it $IMAGE connect --servercert pin-sha256:4uihYZlNNqOumDmmg9/Nn50TiI5vmPIq2iqmmzgKlxA= --no-system-trust --pfs --protocol=gp remote.vpn.server
  4. send the cookie: echo 'authcookie=...' | nc -w 1 localhost 1235
  5. use the host: curl localhost:1234
Description
No description provided
Readme 52 KiB
Languages
C 89.4%
Shell 5.2%
CMake 2.9%
Dockerfile 2.5%