Simple iptables

setup iptables for ssh, zabbix, ping, http cat /etc/network/if-pre-up.d/*   echo -e ‘#!/bin/bash   /sbin/iptables-restore < /etc/iptables.up.rules’ > /etc/network/if-pre-up.d/iptables   chmod +x /etc/network/if-pre-up.d/iptables   echo -e ‘*filter :INPUT DROP [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [11:844] -A INPUT -p tcp -m tcp –dport 22 -j ACCEPT -A INPUT -p tcp -m tcp –dport 10050 -s […]

My Debian wheezy minimal postinst

nano /etc/apt/sources.listnano /etc/apt/sources.list deb http://ftp.fi.debian.org/debian/ wheezy main contrib non-free deb-src http://ftp.fi.debian.org/debian/ wheezy main contrib non-free   deb http://ftp.fi.debian.org/debian/ wheezy-updates main contrib non-free deb-src http://ftp.fi.debian.org/debian/ wheezy-updates main contrib non-free   deb http://security.debian.org/ wheezy/updates main contrib non-free deb-src http://security.debian.org/ wheezy/updates main contrib non-free   deb http://ftp.fi.debian.org/debian/ wheezy-backports main contrib non-free deb-src http://ftp.fi.debian.org/debian/ wheezy-backports main contrib non-freedeb http://ftp.fi.debian.org/debian/ […]

Redmine from wheezy-backports, autocreate repos and access control

I had some trouble getting Redmine with subversion installed on debian wheezy. The main problem was the outdated version in the default repositories. I decided to use wheezy-backports repo to get a fresh but reliable version installed. I also wanted automatic repository creation and redmine usernames and passwords to control the access to the repositories. […]