backup
tar cvpzf transporter-$(date +%Y%m%d).tgz –exclude=/proc –exclude=/dev –exclude=/lost+found –exclude=/transporter.tgz –exclude=/mnt –exclude=/sys –exclude=/var/lib/mysql / nice -n 17 mysqldump –user=root –password=secret –add-drop-table ispconfig > ispconfig-`date +%y%m%d`.sql nice -n 17 mysqldump –user=root...
Read Moressh keys
ssh-keygen -t rsa This will prompt you for a secret passphrase. If this is your primary identity key, make sure to use a good passphrase. If this works right you will get two files called id_rsa and id_rsa.pub in your .ssh dir. ssh-copy-id -i ~/.ssh/id_rsa.pub username@mystery Now remote is ready to accept your ssh key. How to tell it which keys to use? The ssh-add command will do it. For...
Read Moreexclude ip address from transparent proxy with shorewall
People frequently ask How can I exclude certain internal systems from using the proxy? I want to allow those systems to go directly to the net. Suppose that you want to exclude 192.168.1.5 and 192.168.1.33 from the proxy. Your rules would then be: #ACTION SOURCE DEST PROTO DEST PORT(S) SOURCE ORIGINAL # PORT(S) DEST ACCEPT $FW net tcp www REDIRECT loc:!192.168.1.5,192.168.1.33 3128 tcp www...
Read Moresquid proxy allow through firewall
REDIRECT loc:!10.0.0.119,10.0.0.250 3128 tcp www – #redirector to squid
Read Moremultiple screens
startup_message off defscrollback 10000 hardstatus alwayslastline hardstatus string “%{kG}%50>%-w%{ky}%n %t%{-}%+w%{-} %>%=%{ky}Ctrl-A ?%{-} for help” screen -t Host100 ssh 192.168.1.100 screen -t Host101 ssh 192.168.1.101 screen -t Host102 ssh 192.168.1.102 screen -t Host103 ssh 192.168.1.103 screen -t Host104 ssh 192.168.1.104 You would then invoke this configuration with the...
Read More