Showing posts with label Setup. Show all posts
Showing posts with label Setup. Show all posts

Wednesday, July 10, 2013

Setup PPTP Server on Ubuntu 12.4 Server.

This guide has been tested with Ubuntu 12.4 Server.

Setup PPTP Server

First we need to install pptp server using apt-get 
 
# sudo apt-get install pptpd

Then we need to configure the pptpd.
 
# sudo nano /etc/pptpd.conf

Add server IP and client IP at the end of the file. You can add like below:
 
localip 192.168.0.1
remoteip 192.168.0.100-200

This sets up the PPTP server to use IP 192.168.0.1 while distributing the IP range 192.168.0.100 to 192.168.0.200 to PPTP clients. Change these as you wish as long as they are private IP addresses and do not conflict with IP addresses already used by your server.

Configure DNS servers to use when clients connect to this PPTP server
 
# sudo nano /etc/ppp/pptpd-options

Uncomment the ms-dns and add google like below or OpenDNS
 
ms-dns 8.8.8.8
ms-dns 8.8.4.4

Now add a VPN user in /etc/ppp/chap-secrets file.
 
# sudo nano /etc/ppp/chap-secrets

The column is username. Second column is server name, you can put “pptpd” in there. Third column is password. The last column is the IP addresses, you can put * to allow all IP.
 
# client        server  secret                  IP addresses
username * myPassword *

Finally start your server
 
# /etc/init.d/pptpd restart

Setup IP Forwarding

To enable IPv4 forward. Change /etc/sysctl.conf file, add forward rule blew.


 
# sudo nano /etc/sysctl.conf

Uncomnent the line
 
net.ipv4.ip_forward=1

Then reload the configuration
 
sudo sysctl -p

Add forward rule in iptables
 
# sudo nano /etc/rc.local

adding to the bottom just before the exit 0
 
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
iptables -A FORWARD -p tcp --syn -s 192.168.0.0/24 -j TCPMSS --set-mss 1356

This example is using 192.168.0 for its PPTP subnet. The second rule adjusts the MTU size :
You are done. Just reboot your server and you should be able to connect to using PPTPD and send all your traffic through this server.

Wednesday, August 3, 2011

How to Setup Hotmail on iDevice

Microsoft today rolled out Exchange ActiveSync (EAS), which lets users get push notifications on phones and other mobile devices, as part of the Wave 4 release of Windows Live Hotmail. Some users reported EAS working for them two months ago, but only now has Microsoft made it official: e-mail, calendar, and contacts can be pushed automatically to your phone from Hotmail. To enable EAS, use the following settings:

Field Setting
Server/URL m.hotmail.com
Username Full e-mail address (such as: yourname@hotmail.com)
Domain Leave this blank
SSL Enable this
Certificate Accept the SSL certificate when prompted
Mail, Contacts, Calendar, Tasks All can be enabled

Many phones already support ActiveSync for connecting to an Exchange server, but the feature will be particularly useful on phones that support dual ActiveSync accounts, including devices running Microsoft's upcoming Windows Phone 7 OS. Users who don't connect to an Exchange Server, but still have a device with ActiveSync support can also use the new Hotmail feature. Microsoft says over 300 million mobile devices currently support EAS; a full list is available on the Windows Live Solution Center.

Hotmail users have been begging for IMAP and other enhanced syncing capabilities for ages. Microsoft still won't budge on IMAP, but the company did rollout POP3 last year, and now with EAS support this year, it's clear the software giant is finally listening.

Try, Setup Hotmail ActiveSync on iPad device

Microsoft has provided steps for enabling Hotmail ActiveSync on iPad devices.

An iPad supports only a single ActiveSync profile. If your iPad has the existing ActiveSync profile, back up the data and delete it.

1. ON the Home Screen, tap Settings >“Mail, Contacts, Calendar” > “Add Account” > “Microsoft Exchange”
2. Enter the following in fields:

Email: your full Hotmail email address
Domain: Leave blank
Username: your full Hotmail email address
Password: your password
Description: Hotmail

Server: m.hotmail.com

SSL: Enabled
Certificate: Accept the SSL certificate when prompted
Mail, Contacts, Calendar, Tasks: All can be enabled.

3. After finishing the configure, select the data to sync and tap on Save button.

iPad will connect to Hotmail ActiveSync and perform an initial sync for the selected data. You are able to push email, calendar, and contacts with Exchange ActiveSync now. Enjoy it!