Schaltwerk!
Donnerstag, 6. Januar 2011
PPTP VPN Ubuntu 10.04 iphone/mac
Hier mal ein kleines tut zum erstellen einer PPTP VPN Verbindung.

- apt-get install pptpd pptp-linux ppp ufw
- ufw allow 22(Freigabe des ssh Ports in der FW)
- ufw allow 1723(Freigabe des PPTP Ports)
- ufw enable
- vi /etc/network/interfaces
- auto eth0:0
- iface eth0:0 inet static
address 192.168.88.1
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
(gateway und dns-nameserver solltet ihr nach eurer
Konfiguration anpassen!)
- vi /etc/ppp/pptpd-options
(folgende Zeilen auskomentieren:)
“refuse-pap”
“refuse-chap”
“refuse-mschap”
“refuse-mschap-v2″
“require-mppe-128″

replace “#ms-dns 10.0.0.1″ with “ms-dns 8.8.8.8″
replace “#ms-dns 10.0.0.2″ with “ms-dns 4.4.4.4″)
- vi /etc/pptpd.conf
localip 192.168.88.1
remoteip 192.168.88.2-20
- /etc/ppp/chap-secrets
benutzername pptdp passwort
- vi /etc/sysctl.conf
net.ipv4.ip_forward=1(auskommentieren)
- vi /etc/default/ufw
Change the value of “DEFAULT_FORWARD_POLICY”
from “DROP” to “ACCEPT”
- vi /etc/ufw/before.rules
# nat Table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow forward traffic from eth0:0 to eth0
-A POSTROUTING -s 192.168.88.0/24 -o eth0 -j
MASQUERADE

# don’t delete the ‘COMMIT’ line or these nat table rules won’t be processed
COMMIT


Danach sollte man einen Neustart durchführen.

... comment

status
Menu
Suche
 

xml version of this page

made with antville