-- Leo's gemini proxy

-- Connecting to gmi.noulin.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

Simple spartan client and server


Feed


date: 2023-02-23 14:59:44


categories: linux


firstPublishDate: 2023-01-23 10:09:00


`spartclient` and `sparline` are 2 simple spartan clients and `spartserv` is a simple spartan server written in C.


2023-02-23 Update: There is also `spartasm`, a spartan server written in x64 assembly, also available in `spartserv` git repo (link below).


About the spartan protocol:

Spartan on the web


Spartan on gemini


Spartan on spartan


The source code is available at:

spartserv git


spartserv git (gemini link)


Each tool consists of a single C file less than 500 lines of code.


`spartservPrivDrop.c` is a secure spartan server, read `README.md` above for the setup. `spartservPrivDrop` runs in a sandbox created with `chroot` and bpf filters to only allow the necessary syscalls.


Tor setup


These clients and server work with the tor network.


`spartserv` is setup as a regular onion service, see my article 'Using tor' to setup the onion service.

Using Tor


The hostname in `spartserv.c` has to be set to the onion address.


Then `sparline` client with `torsocks`:


torsocks sparline spartan://address.onion:3000

The pages load in about 1 second.


tags: #spartan #tor


Feed

-- Response ended

-- Page fetched on Tue May 21 22:56:26 2024