cosmosocks icon indicating copy to clipboard operation
cosmosocks copied to clipboard

Socks server written in Cosmopolitan libc

Build and test

Windows Apple Ubuntu Android OpenBSD NetBSD FreeBSD

Overview

Cosmosocks is a socks server written entirely in Cosmopolitian libc. This allows the socks program to run across any platform cosmopolitan can run on, which includes Windows, Linux, MacOS and more.

Running

The two binaries that are built are cosmosocks_server and cosmosocks_server_ape. The two binaries are functionally the same, but the former will unpack itself into a temporary directory while the later will dynamically overwrite itself.

# Basic run with no arguments will bind global on port 1080
cosmosocks_server

# Specify a port to bind to
cosmosocks_server -p 8080

# Specify a username/password for authentication
cosmosocks_server -U user -P password

Downloading

Release binaries are available on GitHub.

Building

All dependencies are provided in this repository. Building the program is simple as running make.

If you want to use a different cosmopolitan amalgamation, you can specify it with COSMO:

make COSMO=amalgamation-dbg
make COSMO=amalgamation-tiny