Technology related solutions, tips, tricks, and other interesting topics
If you want to block a range of IP addresses from accessing your CentOS server you can issue the following IPTables firewall command: /sbin/iptables -I INPUT -m iprange –src-range 192.168.1.1-192.168.1.2.100 -j DROP Replace “192.168.1.1-192.168.1.2.100″ with the IP range you want to block. This command only works with the IPTables firewall so if your operating system [...]
In: General IT Info
6 Jun 2008Command to recursively chmod only directories: find . -type d -exec chmod 755 {} \; How to recursively set the execute bit on every directory: chmod -R a+X * The +X flag sets the execute bit on directories only How to recursively chmod only files: find . -type f -exec chmod 644 {} \; How [...]
To determine what daemon or program is listening on a port in Linux or OS X you can use the lsof command. You need to run the command while logged in as root or if your operating system supports sudo like OS X, you can use that. Command to run in Linux: lsof -i -nP [...]
In: Apple|General IT Info
5 Mar 2008This tip is really a generic *Nix command so it should not only work in OS X but also in other flavors of UNIX such as Linux. In OS X a lot of the log files are auto-archived into compressed GZIP files in Tiger (Mac OS X 10.4) and BZ2 files in Leopard (Mac OS [...]
This blog is about technology related topics. It will primarily contain problems and solutions to IT problems that I encounter on a day-to-day basis. In addition interesting things I come across either on or off the internet will be posted here as well. I will also include step-by-step tutorials to common tasks people may need to do with their computers.