Linux

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
Linux

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
Linux

List rpm package content

To list the contents of a package just run the command # rpm -ql packagename Example # rpm -ql nmap /usr/bin/nmap /usr/share/doc/nmap-3.70 /usr/share/doc/nmap-3.70/COPYING /usr/share/doc/nmap-3.70/COPYING.OpenSSL /usr/share/doc/nmap-3.70/README /usr/share/doc/nmap-3.70/nmap-fingerprinting-article.txt /usr/share/doc/nmap-3.70/nmap.deprecated.txt /usr/share/doc/nmap-3.70/nmap.usage.txt /usr/share/doc/nmap-3.70/nmap_doc.html /usr/share/doc/nmap-3.70/nmap_manpage.html /usr/share/man/man1/nmap.1.gz /usr/share/nmap /usr/share/nmap/nmap-mac-prefixes /usr/share/nmap/nmap-os-fingerprints /usr/share/nmap/nmap-protocols /usr/share/nmap/nmap-rpc /usr/share/nmap/nmap-service-probes /usr/share/nmap/nmap-services

Read More