Difference between revisions of "PPTP server"

From ArchWiki
Jump to: navigation, search
(some cleanup)
(comply with Help:Style for the installation instructions)
Line 5: Line 5:
This entry will show you on how to create a PPTP server in Arch.
This entry will show you on how to create a PPTP server in Arch.
We installed pptpd with :
[[pacman|Install]] {{Pkg|pptpd}}, available in the [[Official Repositories]].
pacman -S pptpd  
Now, edit the file '''/etc/pptpd.conf'''
Now, edit the file '''/etc/pptpd.conf'''

Revision as of 04:46, 24 March 2012

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.

Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어

External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

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.

This entry will show you on how to create a PPTP server in Arch.

Install pptpd, available in the Official Repositories.

Now, edit the file /etc/pptpd.conf

option /etc/ppp/pptpd-options

Now, edit the file /etc/ppp/pptpd-options

name pptpd

Now we must add my users & passwords in "/etc/ppp/chap-secrets"

<username>     pptpd     <password>   *

Now, enable IP Forwarding by editing "/etc/sysctl.conf"


Now apply the changes made to sysctl.conf

# sysctl -p

Configure your iptables settings to enable access for PPTP Clients

iptables -A INPUT -i ppp+ -j ACCEPT
iptables -A OUTPUT -o ppp+ -j ACCEPT

iptables -A INPUT -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -p 47 -j ACCEPT
iptables -A OUTPUT -p 47 -j ACCEPT

iptables -F FORWARD
iptables -A FORWARD -j ACCEPT

iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
iptables -A POSTROUTING -t nat -o ppp+ -j MASQUERADE

Now save the new iptables rules with:

# rc.d save iptables

Read Iptables for more information.

Now you can start your PPTP Server by this command and enjoy

# rc.d start pptpd

You can use this script to auto install pptpd server