:: Setup PPTPd VPN on Linux

40 sec read

:: What is PPTP
The Point-to-Point Tunneling Protocol (PPTP) is a method for implementing virtual private networks. PPTP uses a control channel over TCP and a GRE tunnel operating to encapsulate PPP packets. – WikiPedia
 
:: Verifying PPTPd is working

cat /dev/ppp
cat: /dev/ppp: No such device or address

 
:: How to setup pptpd vpn in Debian Linux
+ Installing pptpd

aptitude install pptpd

+ Configure pptpd

vi /etc/pptpd.conf

setup or change on these line:

localip 1.2.3.4
remoteip 10.0.0.1-200

* 1.2.3.4 = your server ip
** 10.0.0.1-200 = ip address for clients
 
+ Setup DNS Server for clients (Google public DNS)

vi /etc/ppp/pptpd-options

uncomment or setup in these line, like:

ms-dns 8.8.8.8
ms-dns 8.8.4.4

+ Create user login info for PPTP VPN

vi /etc/ppp/chap-secrets

add username anda password for the clients, example:

userjono * passwd123 *

+ Setup MTU

vi /etc/ppp/ip-up

add this line :

ifconfig $1 mtu 1400

+ Restarting pptpd

/etc/init.d/pptpd restart

 
:: Setup Firewall
+ Enable NAT connection

iptables -t nat -A POSTROUTING -j SNAT --to-source 1.2.3.4

* 1.2.3.4 = your server ip
 
+ Save configuration

iptables-save
iptables-save > /etc/iptables.conf
cat > /etc/network/if-pre-up.d/iptables <

 
:: Enable ip forwarding

vi /etc/sysctl.conf

add this line:

net.ipv4.ip_forward = 1

then apply the configuration

sysctl -p

 
:: Links
+ Google
+ PutDispenserHere

How to fix problem with the editor ‘vi’

:: git error with vi error: There was a problem with the editor 'vi'   :: how to fix the problem 0. check path...
Sysadmin.ID
10 sec read

Apache :: MP4 Streaming

:: How to Enable mp4 Streaming in Apache + Installing mod h624 streaming wget //h264.code-shop.com/download/apache_mod_h264_streaming-2.2.7.tar.gz tar -xzf apache_mod_h264_streaming-2.2.7.tar.gz cd mod_h264_streaming-2.2.7/ ./configure --with-apxs=`which apxs2` make...
Sysadmin.ID
18 sec read

Apache :: Flash / FLV Streaming

:: How to Configure Apache for FLV Streaming + Installing mod_flvx wget //people.apache.org/~pquerna/modules/mod_flvx.c which apxs /usr/bin/apxs /usr/bin/apxs -cia mod_flvx.c + setup mod_flvx in http.conf...
Sysadmin.ID
15 sec read

Leave a Reply

Your email address will not be published. Required fields are marked *