• Type:

CH Show HN: ip2unix – Turn IP sockets into Unix domain sockets

For example the following could be put into a file given by the -f command
line argument:

out,port=53,ignore
out,tcp,path=/run/some.socket
in,addr=1.2.3.4,path=/run/another.socket
in,port=80,address=abcd::1,blackhole
in,port=80,reject=EADDRINUSE
in,tcp,port=22,systemd=ssh

Each line corresponds to a single rule, that is processed in order of
appearance and the above example would result in the following:

$ ip2unix -r out,port=53,ignore 
          -r out,tcp,path=/run/some.socket 
          -r in,addr=1.2.3.4,path=/run/another.socket 
          -r in,port=80,address=abcd::1,blackhole 
          -r in,port=80,reject=EADDRINUSE 
          -r in,tcp,port=22,systemd=ssh

Read More

Previous Post

CH Show HN: Minimal music player, uses YouTube as source

Next Post

CH Show HN: Map33.js – a library to build 3D maps with Three.js

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top