October 3, 2008

Connecting to the Remote Windows Console with Mac’s RDP Client

Ever needed to connect to the remote console of the machine rather than running through a terminal services session so that you could install certain software, or reset stuck terminal services sessions from a remote location? All you have to do is type /console behind the host in the window.

Remote Desktop Connecting to Console

August 20, 2008

Blocking a certain IP address with iptables

To block an ip address from accessing your linux box, you can use the following iptables rule:

iptables -A INPUT -s 222.124.24.131 -j DROP

If you just need to block a certain port (i.e. port 22 for SSH), you would do it like so:

iptables -A INPUT -s 222.124.24.131 -p tcp --destination-port 22 -j DROP