Archive for July, 2007

h1

Changing the date in linux

July 4, 2007

We must type this commands:

If we want to set this date: 05-27-2007, 23:50

date --set "2007-05-27 23:50"

With this, we just set the system date. Now we will set the BIOS date.

hwclock --set --date="2007-06-27 23:50"

To see the system/BIOS hour, just type date/hwclock.

Have a nice day ;)

h1

IPTables: Deny Messenger access

July 3, 2007

We can use the next rule to deny MSN Messenger access in our LAN. You must have Kernel 2.6.14 with the IPTables STRING module:

iptables -I FORWARD -p tcp -m string --string "VER " --from 51 --to 56 --algo bm -j REJECT

The STRING module search into the packet a text string. The “from” “to” parameters means the TCP header end and end of data.

Source: VivaLinux!