Web

WordPress pagination test

This is just a test post to test pagination in WordPress. Pagination is unfortunately a function that not all theme creators implement. You can paginate by using the <!–nextpage–> Quicktag. More information about wordpress pagination can be found in WordPress documentation http://codex.wordpress.org/Template_Tags/wp_link_pages.

Read More
Network

Rate-limit the amount of iptables logging

It is a good idea to place a log chain just above your drop or reject rule and usually you would do a -A INPUT -j LOG The above rule can cause flooding your system. You should instead use the following iptables rule to avoid your logs being flooded and DDOS’ing -A INPUT -m limit […]

Read More
Network

Determine which interface is eth0

It can sometimes be difficult to determine which networcard is eth0, eth1 and so on. A easy way to determine it is to use the ethtool command ethtool -p eth0 10 This makes the network cards LED blink for 10 seconds, and this happens without interrupting the network traffic. You do offcourse need physical access […]

Read More
Network

Configure squid to ignore some sites

If you are using squid like me, it is sometimes useful to avoid cacheing some internet addresses. To accomplish this you could edit your /etc/squid/squid.conf file and add the following line acl NOCACHEDOMAIN dstdomain www.vg.no no_cache deny NOCACHEDOMAIN This makes it possible to view www.vg.no without viewing a squid cached page.

Read More
Linux

rpcbind and auth ports open

The last time I installed Debian Etch i closed both port 111 and 113 but since I’ve forgot it already and a new installation is in progress, this post should remind me how to do it in the future. The code view below shows the ports nmap found were in a open state PORT STATE […]

Read More