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 wheezy main contrib non-free deb-src wheezy main contrib non-free   deb wheezy-updates main contrib non-free deb-src wheezy-updates main contrib non-free   deb wheezy/updates main contrib non-free deb-src wheezy/updates main contrib non-free   deb wheezy-backports main contrib non-free deb-src wheezy-backports main contrib non-freedeb […]

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. […]