Domain Name Yahoo

Easy Help Troubleshoot Your Linux Box



  

How to create very simple Linux Gateway

Some administrator doesn’t realize that to have a pc gateway is very usefull.
They can manage the connection if they have 2 or more connections to be load balanced or just automatic backup connection.

The principal of a gateway is every packet and requested through the ethernet card are will be forwarded.
Check your ip address first:

# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:50:8D:63:A1:A4
inet addr:192.168.1.5  Bcast:192.168.1.255  Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
RX packets:383259 errors:0 dropped:0 overruns:0 frame:0
TX packets:376249 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:52177377 (49.7 MiB)  TX bytes:53007914 (50.5 MiB)
Interrupt:16 Base address:0xa000
To enable forwarded packet :
 # echo 1 > /proc/sys/net/ipv4/ip_forward

This means every ipv4 packet will be forwarded.
The question is forwarded to where ?
You can manage these by creating route.
# route add default gw 192.168.1.10

192.168.1.10 is internet gateway given by your modem, adsl or dial-up modem.

Test it by changing the gateway into 192.168.1.5 on one of the computer on your network( Pc A).
All requested by PC A will be go through 192.168.1.5
And of course you have to configure the firewall about this.
Meanwhile I turn off the firewall first. Because I want to do more about this gateway.

That is for now, next I will share how to handle 2 or more different connection with only 1 single gateway without creating DNS and others.

January 29th, 2010 Posted by admin | Gateway, firewall | no comments

Connect Your Blackberry using UBUNTU

One of the blackberry feature is Bluetooth, and we can use it to transfer file.Here is the steps :

  • Activate your Blackberry bluetooth and set it to Discoverable Mode ( You will see ‘waiting for connection’ message on the blackberry.
  • On Ubuntu, open terminal akses root, you can use # sudo su to always work as root.
  • Scan Blackberry Bluetooth using hcitool

# hcitool scan

Scanning …00:1C:CC:4C:4A:32 BlackBerry 8310

Now, scan your blackberry for other available services.# sdptool browse

Inquiring …
Browsing 00:1C:CC:4C:4A:32 …
Service Name: Dialup Networking
Service RecHandle: 0×10000
Service Class ID List:
“Dialup Networking” (0×1103)
“Generic Networking” (0×1201)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 1
Profile Descriptor List:
“Dialup Networking” (0×1103)
Version: 0×0100

Service Name: Headset
Service RecHandle: 0×10001
Service Class ID List:
“Headset Audio Gateway” (0×1112)
“Generic Audio” (0×1203)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100

Service Name: Hands-free
Service RecHandle: 0×10002
Service Class ID List:
“Handsfree Audio Gateway” (0×111f)
“Generic Audio” (0×1203)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 3
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Profile Descriptor List:
“Handsfree” (0×111e)
Version: 0×0105

Service Name: Advanced Audio
Service Provider: BlackBerry
Service RecHandle: 0×10003
Service Class ID List:
“Audio Source” (0×110a)
Protocol Descriptor List:
“L2CAP” (0×0100)
PSM: 25
“AVDTP” (0×0019)
uint16: 0×100
Profile Descriptor List:
“Advanced Audio” (0×110d)
Version: 0×0100

Service Name: A/V Remote Control TG
Service Provider: BlackBerry
Service RecHandle: 0×10004
Service Class ID List:
“AV Remote Target” (0×110c)
Protocol Descriptor List:
“L2CAP” (0×0100)
PSM: 23
“AVCTP” (0×0017)
uint16: 0×100
Profile Descriptor List:
“AV Remote” (0×110e)
Version: 0×0100

Service Name: BlackBerry Desktop Service P:0×2DF2F542 R:0×03 V:0×20104
Service RecHandle: 0×10005
Service Class ID List:
UUID 128: 426c6163-6b42-6572-7279-44736b746f70
“Serial Port” (0×1101)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 4
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100

Service Name: Phonebook Access PSE
Service RecHandle: 0×10006
Service Class ID List:
“Phonebook Access - PSE” (0×112f)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 5
“OBEX” (0×0008)
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Profile Descriptor List:
“Phonebook Access” (0×1130)
Version: 0×0100

Service Name: BlackBerry Bypass Service P:0×2DF2F542 R:0×03 V:0×20003
Service RecHandle: 0×10007
Service Class ID List:
UUID 128: 426c6163-6b42-6572-7279-427970617373
“Serial Port” (0×1101)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 6
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100

There you are, there are quite complete service from the blackberry.We can use it as a modem or audio gateway and transfering files.

  • Now, connect/pair your Ubuntu System with the blackberry.

# rfcomm connect rfcomm0 00:1c:cc:4c:4a:32

00:1c:cc:4c:4a:32 is the id number result from hcitool scan above.

After succesfully paired, you may use nautilus and start transfering your files send to bluetooth.done.

December 27th, 2009 Posted by admin | Blackberry, Ubuntu | no comments

Ways To Jumpstart Your IT Career

While trying to establish a career in the field of Information Technology (IT), you may often find yourself confused and indecisive. Though you may plan to do something different with your IT career, you simply may not get around to it and remain only aspiring for that perfect opportunity. In order to be recognized you must excel.

In order to excel you must be qualified, experienced and able to perform in situations that may challenge others in your field. Some basic ways of doing this are to develop skills, develop credibility through certification and be ready to think outside the box for solutions. Gaining Knowledge And Acquiring New Skills The monotonous routine of your regular job is one of the biggest and most significant reasons for the loss of interest in your job. If you love what you do, nothing can be worse than that.

However, if you do not like your job and you continue with it out of some sort of compulsion, then it is best to break all mental barriers and come out of it. You should start learning new skills that will add value to your career prospects and help you in securing the career that you aspire for. If you are tired of doing server jobs, allow some time for acquiring Cisco skills. Similarly, you can consider learning some Linux skills if you have been working as a Microsoft Exchange specialist. Developing new skills can provide you the advantage to get the next promotion.

Getting Certified Whether you work long term for one company or are looking for other opportunities to grow elsewhere, certifications in your area of expertise add the required credibility to take on greater responsibility and earn more. Some disciplines such as medicine, accounting and law require frequent certifications to maintain the license to practice these professions. Even when such certifications are not required, it’s very important to develop a certification plan to advance your career. Consider that you are always competing for your job with others in the company and outside. Consider also who your company would prefer, a person with an impressive list of certifications or one who has stagnated in their education goals. Companies work with limited resources. Without a doubt additional certifications add to the perceived value of an employee and companies tend to reward such initiatives.

Getting Prepared For Changes Sometimes, you may need to take a step backward in order to finally move forward. If you are seen or perceived by your employer only as a “server guy” but wish to work in a different domain, be ready to work nights or do additional shifts to gain work experience in the area you prefer. You may go through some temporary financial hardships as a result of the job change, but it might prove to be your best career move in the long term. If changes are made according to your master career plan they are likely to yield much better results than simply reacting to short term situations. Do Not Get Typecast Make sure you are useful to your company in many disciplines. This is essential for job security and career growth. If you do no more than is expected of you then you are tied to the one job you do.

However if you have initiative and break the typecast of the job to do more than is required, chances are that you will be noticed and rewarded.
Tony Jacowski is a quality analyst for The MBA Journal. Aveta Solution’s Six Sigma Online offers online six sigma training and certification classes for lean six sigma, black belts, green belts, and yellow belts.
This resource is one of the master piece from expert author at FreeSubmitArticles.com.

December 26th, 2009 Posted by admin | General | no comments

Automatic Shutdown/Restart on Windows 2000 Advance Server

Shutdown or restart command in Microsoft Windows Operating System is using external file called shutdown.exe
For windows XP, this file is included after installation the operating system.
Simply open your command prompt from Start-Run-cmd, then:

C:\> shutdown /?

You should see a complete usage instruction.

On Windows 2000 Operating System, shutdown.exe is not included. You have to get it from it’s Distribution Kit Disc.
What if the disc is gone ?
That is the common problem from people, including me.
I have search around Search Engine, Google , yahoo, bing, etc.. etc.. They all keep saying that you have to get it from The Distribution Kit or Use the third-party softwares.

One thing I dont like from Windows Operating Systems that people easily create some variant of viruses, trojans, worms, hidding inside  the windows executable files.

Here is the trick to be able Shutdown/Restart automatic on Windows 2000.
You need Windows XP connected to your Windows 2000
Use Schedule task on windows XP to shutdown/restart the windows 2000 using shutdown.exe -m \\windows2000 -f -r
To see complete usage : c:\> shutdown /?

Please note, you need to logged on as domain administrator to be able  to shutting down Windows 2000

December 7th, 2009 Posted by admin | Domain, Windows | no comments

Fight the spammer with Disable Open Relay

Yes lets fight with spam.
These days spammers are in love with my server, damn.
I just realize it, when I keep getting email bounced from the recipient guardian, such as barracuda.
When I check and recheck, the mail server is running as open relay server.
Here is what I did to protect.

Firstable, I already have Qmail + Vpopmail running properly and compiled as enabled roaming user that mean is smtp authenticate feature is enabled.

Secondly, You dont need to create secure connection using CRAMD5, AUTH PLAIN, AUTH LOGIN. Dont missunderstood, these secure connections are nothing to do with open relay, if you want to enable this feature that will be great.

Third, you must edit your /etc/tcp.smtp . tcp.smtp is a file to manage connection to your smtp port. Do google about this. You will find dozen knowledge about it.
The point is you must add these line :

127.:allow,RELAYCLIENT=”"
:allow,SMTPAUTH=”"
:deny

That means, allways allow connection from localhost and always allow incoming connection that using smtp authentication and deny the rest except the “rcpt to: ” is in the /var/qmail/control/rcpthosts file.

# service qmail stop
# service qmail cdb
# service qmail start

November 25th, 2009 Posted by admin | CentOS, Email, Ubuntu | no comments