misc linux reference stuff

to set up an ip alias (2ndary ip address on a single nic)

edit /etc/network/interfaces
copy the main interface, paste it, replace eth0 with eth0:1, remove the gateway and dns entries
and execute /etc/init.d/networking restart

then to set up the ip it uses for outbound connections
ip route show
and then execute:
ip route replace default (followed by whatever was in the ip route show for the default)
and then at the end put in 'src' or whatever the ip address you want the outbound traffic to come from is

ruby script to keep an ssh tunnel open

a networking routing problem I learned something from recently