xin/bins/icb-irc-tunnel.nix

16 lines
353 B
Nix

{ pkgs
, icbirc
,
}: ''
#!${pkgs.yash}/bin/yash
${pkgs.procps}/bin/pkill icbirc
${icbirc}/bin/icbirc -l 127.0.0.1 -s localhost -p 6644
${icbirc}/bin/icbirc -l 127.0.0.1 -s localhost -p 6645
${pkgs.openssh}/bin/ssh -NTL 7326:localhost:7326 \
-oServerAliveInterval=60 \
-oExitOnForwardFailure=yes \
anonicb@slackers.openbsd.org
''