Archive for January, 2011

How to Change Mac Address in Windows 7

Thursday, January 6th, 2011

I was asked today to go to Sali’s cousin to configure second notebook with Windows 7to be able to use the Lan Internet connection.

So to be able for the second laptop to be able to connect to the internet over the same utp cable, I had to change the second pc LAN device MAC address to be equal to the first PC (the one who already could connect to the internet).

First I needed to get the original MAC address of the notebook which could already connect to the internet, to do so I used the command:

C:> ipconfig /all

The command will list you all the Interfaces on the pc with all their MAC addresses, use the MAC address which is for the Network LAN Interface:

So Here is how I changed the MAC address on the Windows 7:

1. First go to Control Panel, Network and Internet

Control Panel ->

2. Then go to Network and Sharing Center, Change Adapter Settings

Network and Sharing Center -> Change Adapter Settings

3. Next navigate to Local Area Connection, Properties
Local Area Connection -> Properties

4. Now you need to choose the Internet Protocol Version 4 (TCP/IPv4)
Internet Protocol Version 6 (TCP/IPv6)
(Click Over Configure)

5. Now choose Advanced

6. From Property choose Network Address

Property -> Network Address

7. Click on Value

Value -> Enter new mac address

In the field just fill in the 1st notebook’s mac address

Now the MAC address is duplicated from the first notebook to the second one.
The Network Cable when plugged in to either the first or the second PC will be able to provide both the notebooks with internet 🙂

Make active FTP work in VSFTPD

Wednesday, January 5th, 2011

If the vsftpd daemon ‘s active mode connections is not working in CentOS, Debian, Redhat etc. then it’s probably caused by the iptables firewall rules.

I just experienced that problem to fix it I had to enable the connections in iptables’s INPUT chain to port number 21

For example in CentOS I needed to add the following iptables rule:

-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT

An alternative way to add the same rule on all Linux disributions is through the command:

linux# /sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 20 -j ACCEPT
linux# /sbin/iptables-save

The second command /sbin/iptables-save will save out all your existent iptables rules to a iptables rule file and on next boot if your Linux’s iptables configured rules are enabling on the Linux startup via a init script like for instance with the cmd /etc/init.d/iptables start the above saved rules with iptables-save will get loaded.

Enabling Active FTP connections on CentOS 5.5

Tuesday, January 4th, 2011

If you experience problems with making your CentoOS 5.5 work with active ftp connections , e.g. every connection you make to the FTP needs to be in a passive mode or the file transfer or FTP directory listing doesn’t initialize at all, here is how you can solve it:

Edit the file /etc/sysconfig/iptables-config and change their the line:

IPTABLES_MODULES="ip_conntrack_netbios_ns"

to look like:

IPTABLES_MODULES=”ip_conntrack_netbios_ns ip_nat_ftp ip_conntrack_ftp”

Adding the two modules ip_nat_ftp and ip_conntrack_ftp will instruct the CentOS’s /etc/init.d/iptables firewall rules to initialize the kernel modules ip_nat_ftp and ip_conntrack_ftp

This modules solves problems with Active FTP not working caused by a host running behind a firewall router or behind a NAT.

This will hopefully resolve your issues with Active FTP not working on CentOS.

If loading this two kernel modules doesn’t solve the issues and you’re running vsftpd FTP server, then it’s likely that the Active FTP non-working problems are caused by your VSFTPD configuration.

If that’s the case something that might help is setting in /etc/vsftpd/vsftpd.conf the following variables:

pasv_enable=NO
pasv_promiscuous=YES

Of course as a final step you will need to restart the iptables firewall:

[root@centos: ~]# /etc/init.d/iptables restart
Flushing firewall rules: [ OK ]
Setting chains to policy ACCEPT: filter [ OK ]
Unloading iptables modules: [ OK ]
Applying iptables firewall rules: [ OK ]
Loading additional iptables modules: ip_conntrack_netbios_ns
ip_nat_ftp ip_conntrack_ftp [ OK ]

As you can see the two modules ip_nat_ftp and ip_conntrack_ftp are now loaded as additional modules.
Moreover if you have also modified your vsftpd.conf you need to restart the vsftpd via the init script:

[root@centos: ~]# /etc/init.d/vsftpd restart
Shutting down vsftpd: [ OK ]
Starting vsftpd for vsftpd: [ OK ]

If adding this two modules and adding this two extra variables in vsftpd configuration doesn’t help with making your FTP server to work in Active FTP mode , it’s very likely that the whole troubles comes from the firewall configuration, so an edit of /etc/sysconfig/iptables would be necessary;

To find out if the firewall is the source of the FTP not able to enter active mode, stop your firewall for a while by issuing the cmd:

[root@centos:~]# /etc/init.d/iptables stop

If iptables is the source of thepassive ftp troubles, an iptables rules similar to this should make your firewall allow active ftp connections;

*filter :INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT
[0:0] -A INPUT -i lo -j ACCEPT -A INPUT -d 127.0.0.0/255.0.0.0 -i ! lo -j REJECT –reject-with icmp-port-unreachable
-A INPUT -m state –state RELATED,ESTABLISHED -j ACCEPT
-A INPUT -p tcp -m tcp –dport 80 -j ACCEPT
-A INPUT -p tcp -m state –state NEW -m tcp –dport 44444 -j ACCEPT
-A INPUT -p tcp -m state –state NEW -m tcp –dport 21 -j ACCEPT -A INPUT -p icmp -m icmp –icmp-type 8 -j ACCEPT
-A INPUT -j REJECT –reject-with icmp-port-unreachable -A FORWARD -j REJECT –reject-with icmp-port-unreachable
-A OUTPUT -j ACCEPT -A OUTPUT -p tcp -m tcp –dport 21 -m state –state ESTABLISHED,RELATED -j ACCEPT

 

Keygenjukebox – an online radio consisting only of keygen soundtracks music

Tuesday, January 4th, 2011

A friend of mine pro-xex , just passed a link to me to KeyGenJukebox .It’s amazing that somebody took the time to start a radio with all the great musics that came together with the old school keygenerators.

The music is quite nice and quite similar to the demoscene music

Just enjoy and check out the great geeky radio 🙂

Happy New 2011 Year to everybody

Sunday, January 2nd, 2011

I just wanted to wish a blessed, peaceful and prosperious year 2011!
Let with the coming of the new year our troubles decrease, our joys increase and the blessings of God pour on all of us Christians!

The last year was not that bad but still for me wasn’t in the best years I’ve experienced, I truly hope with the new 2011 year everything will come to place.

This New Year was a bit different from the standard ones I had in Bulgaria, since I’m Holland.

To make things even more interesting I’ve spend the new year in Schiedam (a city municipality of Rotterdam).

The New Year eve, I’ve spend with Two Chineese girls (Grace and Yen).
So for me it was like a Chineese Christmas.
We ate traditional Chineese food prepared with some Dutch commodities.
After and throughout the breakfast we have listened to some classic music and a few Bulgarian Christmas songs.

We drinked wine and wished each other a succesful new 2011.
What was nice was we ate the food with chineese sticks, so it was quite a challenge for me to grab the food 🙂 but I should say I’m getting more and more proficient in eating with Chineese sticks.

After we completed the meal we had some music like revolutionary communistic music Katyiusha , some other Soviet typical songs plus some old fashioned other Russian music from Soviet time like for instance Chiburashka

I’ve played them the bulgarian communistic soundtrack of the Communistic movie, entitled “Nie sme na vseki kilometyr”, “We are at every kilometer”.
This song is a absolute Bulgarian classics from a sequel about partizans and the Red Revolution.
Though I myself did not have any communistic convictions, this kind of stuff is a bit linked to our past in Bulgaria so the old songs bringed some good memories about the past.
For the two Chineese girls it was also nice since China is still under the rule of Communistic Democacy

To make things even better I played them the Slavonic Orthodox Church absolute classic Mnogaq Leta which we usually use to play or sing in Bulgaria on every New Year eve or on many other occasions especially in major Church festivals.
It was really odd for me that both Chineese girls, cleared up the table in about 10:30, and they went back to their rooms.
In Bulgaria we always stay together to Welcome the new year and most of the time we try to eat continously until at least 00:30 in the turned new year.

So from my personal cultural perspective, our New Year in Bulgria is generally more joyful.

Here in Holland it appears they have the same culture of blowing up a lot of rays and mini-bombs.
This was quite similar in Bulgaria but I never thought they blow off so many fireworks and blasting stuff.

Actually I really hate this part of New Year celebration, because of the dozens of blows all around the New Year looks like a mini war always and even thought it might be funny for many youngsters I still find it a profane way to celebrate.

But enough talk again I to my readers a Godspeed in the New Year 2011! Cheers!