1. Install the Yum Repository for PPTP
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm
2. Then proceed with installing ppp & pptpd
yum install ppp
yum –enablerepo=pptp-stable install pptp
On newer CentOS distributions, ppp is already installed and at 2.4.4 or later, as of this writing pptpd needs 2.4.3 , so you may need to remove ppp and have yum install it automatically as a dependancy of pptpd
3. After installation finnish open /etc/pptpd.conf and change the configuration for localip & remoteip
4. After that open the file / etc / ppp / options.pptpd and change sesuia ms-dns dns server / isp you (I filled in with open dns ip)
5. Then make your VPN use
echo “username pptpd password *”>> / etc / ppp / chap-secrets
IP Forwarding & Nat
1. Set IPForward
edit /etc/sysctl.conf and update
net.ipv4.ip_forward = 1
Then run `sysctl -p` to make the system update itself with the above param.
2. Set Nat
Add the following to /etc/sysconfig/iptables to add a new nat chain/rule
:PREROUTING ACCEPT [5476825:840006712]
:POSTROUTING ACCEPT [11279:680432]
:OUTPUT ACCEPT [10099:609991]
-A POSTROUTING -s 10.0.0.0/255.255.255.0 -o eth1 -j MASQUERADE
I bought my iPhone 3G on the day it was launched in India: August 22, 2008. I had to go book mine a day before and I guess that made it easier, I did not have to wait in a queue. I just landed at the store, showed my booking receipt, they charged my card for the balance and handed me the phone – but then they took it back to ‘activate’ it and gave it back after another couple of minutes. Largely a smooth process – compared to the horrific stories about the US Launch on July 11.
The first thing I did was to turn off the 3G radio. Since India does not have 3G yet, and not expected for another 6 months on Airtel. It’s best to turn this off to save battery. To do this, just go to Settings->General->Network and turn off ‘Enable 3G’.
Next thing I noticed is that iTunes would take way too long to backup the phone everytime I wanted to sync. So I disabled the automatic backup by doing the following on my mac:
Open Terminal, type: defaults write com.apple.iTunes DeviceBackupsDisabled -bool true
and hit return
Note iTunes should not be running when you do this. Launch iTunes after doing this and it won’t backup the phone every time. I am thinking that I would like to re-enable backup by changing the ‘true’ above to ‘false’ once in a month.
For Windows folks:
1. Locate your iTunesPrefs.xml file. It’s usually located in C:\Documents and Settings\username\Application Data\Apple Computer\iTunes or C:\Documents and Settings\username\Local Settings\Application Data\Apple computer\iTunes.
2. Open it in Notepad and search for a section called User Preferences and paste the following snipped into the User Preferences Section after the first <dict>:
3. Save the file and launch iTunes. You may want to take a backup of your existing iTunesPrefs.xml first.
Next: Turn off the Equalizer of the iPod since it eats up battery when it plays songs. Turn off the EQ by going to the Settings > iPod > EQ and change to Off.
I’ll add more as I use my iPhone more 🙂