xin/bins/icb-irc-tunnel.nix

15 lines
351 B
Nix
Raw Normal View History

{ pkgs, icbirc }:
''
2022-09-23 09:29:51 -06:00
#!${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
2022-10-03 09:32:33 -06:00
${pkgs.openssh}/bin/ssh -NTL 7326:localhost:7326 \
-oServerAliveInterval=60 \
-oExitOnForwardFailure=yes \
anonicb@slackers.openbsd.org
''