xin/bins/icb-irc-tunnel.nix

19 lines
430 B
Nix
Raw Permalink Normal View History

2023-09-12 08:44:05 -06:00
{ pkgs
, icbirc
,
2023-07-11 09:12:50 -06:00
}: ''
2022-09-23 09:29:51 -06:00
#!${pkgs.yash}/bin/yash
${pkgs.procps}/bin/pkill icbirc
2024-02-29 19:50:21 -07:00
# porters
${icbirc}/bin/icbirc -d -l 127.0.0.1 -s localhost -p 6644 >/tmp/icbirc-porters &
# hackers
${icbirc}/bin/icbirc -d -l 127.0.0.1 -s localhost -p 6645 >/tmp/icbirc-hackers &
2022-10-03 09:32:33 -06:00
${pkgs.openssh}/bin/ssh -NTL 7326:localhost:7326 \
-oServerAliveInterval=60 \
-oExitOnForwardFailure=yes \
anonicb@slackers.openbsd.org
''