Author: ETP

Simple ip6tables rules

*filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT -A INPUT -p tcp -m tcp –dport 80 -j ACCEPT -A INPUT -p tcp -m tcp –dport 443 -j ACCEPT -A INPUT…

IPv6 setup

Just configured IPv6 in IPv4 tunnel to HE from D-link DIR-825. Steps taken: Register and login to HE Do 1st test and create tunnel DIR-825 needs 2.05EU firmware DIR-825 config Local and remote IP addresses as defined in HE tunnel…

suhosin error with cacti

Problem: Debian squeeze, suhosin and cacti interworking issue Symptoms: following entries in syslog May 25 09:54:02 machine suhosin[12340]: ALERT – script tried to increase memory_limit to 536870912 bytes which is above the allowed value (attacker ‘REMOTE_ADDR not set’, file ‘/usr/share/cacti/site/poller.php’,…

PHP class returning data one by one

Prototyping for a class returning items one by one <?php class printer { function printer() { $in = new data(); while($line = $in->getNext()) { echo $line; echo “\n”; } return; } } class data { function __construct() { $this->i =…