904f4d3832
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
- build the docker container:
podman build .
- get a session cookie:
podman run -it $IMAGE authenticate --servercert pin-sha256:4uihYZlNNqOumDmmg9/Nn50TiI5vmPIq2iqmmzgKlxA= --no-system-trust --pfs --protocol=gp remote.vpn.server
- 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
- send the cookie:
echo 'authcookie=...' | nc -w 1 localhost 1235
- use the host:
curl localhost:1234
Description
Languages
C
89.4%
Shell
5.2%
CMake
2.9%
Dockerfile
2.5%