Skip to content

Instantly share code, notes, and snippets.

View wica128's full-sized avatar

Jiri Hoogeveen wica128

  • Netherlands
View GitHub Profile
@wica128
wica128 / snippet.txt
Created July 6, 2016 18:27 — forked from sampowers/map_remote_ipmi_ports_to_loopback_ip.sh
SSH tunnel 127.0.0.2 to supermicro IPMI system
#!/bin/bash
set -x
shell='user@ssh-host-on-ipmi-network'
ipmihost='192.168.1.16'
ifalias='127.0.0.2'
ports="80 443 623 5900 5901 5120 5123 8889"
for p in $ports; do
fwportspec=" ${fwportspec} -L $ifalias:$p:$ipmihost:$p "