radiohead
Well-Known Member
Moin Forum,
ich versuche gerade einen PPTP Server aufzusetzen und bin dabei folgendem Tutorial gefolgt:
http://blogs.techrepublic.com.com/networking/?p=44&tag=rbxccnbtr1
http://blogs.techrepublic.com.com/networking/?p=48
Mein System ist ein OpenBSD 4.3 stable. Das einzige, was ich nicht gemacht habe, ist den Kernel zu kompilieren, denn die GRE Option scheint ja bei 4.3 schon mit im GENERIC drin zu sein, sie war bei mir nicht auskommentiert.
Jetzt taucht in /var/log/daemon folgendes auf, wenn sich ein Client verbinden will:
Ich verstehe auch nicht ganz, wo dieses Label ipparam herkommt. Das wird nirgends erwähnt und noipparam ist in der pptpd.conf auch auskommentiert, da er ja dem Client eine IP aus dem Bereich geben soll. Ich hänge hier noch meine Configs an:
pptpd.conf:
ppp.conf:
/etc/ppp/secure:
/etc/ppp/ppp.secret:
Jemand eine Idee, warum der Fehler so auftaucht?
Danke im voraus!
ich versuche gerade einen PPTP Server aufzusetzen und bin dabei folgendem Tutorial gefolgt:
http://blogs.techrepublic.com.com/networking/?p=44&tag=rbxccnbtr1
http://blogs.techrepublic.com.com/networking/?p=48
Mein System ist ein OpenBSD 4.3 stable. Das einzige, was ich nicht gemacht habe, ist den Kernel zu kompilieren, denn die GRE Option scheint ja bei 4.3 schon mit im GENERIC drin zu sein, sie war bei mir nicht auskommentiert.
Jetzt taucht in /var/log/daemon folgendes auf, wenn sich ein Client verbinden will:
Code:
Jul 17 13:26:31 voldemort pptpd[22104]: MGR: Manager process started
Jul 17 13:27:15 voldemort pptpd[8501]: CTRL: Client 80.187.101.2 control connection started
Jul 17 13:27:15 voldemort pptpd[8501]: CTRL: Starting call (launching pppd, opening GRE)
Jul 17 13:27:15 voldemort ppp[18044]: Warning: Label ipparam rejected -direct connection: Configuration label not found
Jul 17 13:27:15 voldemort pptpd[8501]: GRE: read(fd=7,buffer=3c0046a0,len=8196) from PTY failed: status = 0 error = No error
Jul 17 13:27:15 voldemort pptpd[8501]: CTRL: PTY read or GRE write failed (pty,gre)=(7,6)
Jul 17 13:27:15 voldemort pptpd[8501]: CTRL: Client 80.187.101.2 control connection finished
Ich verstehe auch nicht ganz, wo dieses Label ipparam herkommt. Das wird nirgends erwähnt und noipparam ist in der pptpd.conf auch auskommentiert, da er ja dem Client eine IP aus dem Bereich geben soll. Ich hänge hier noch meine Configs an:
pptpd.conf:
Code:
###############################################################################
# $Id: pptpd.conf,v 1.8 2004/04/28 11:36:07 quozl Exp $
#
# Sample Poptop configuration file /etc/pptpd.conf
#
# Changes are effective when pptpd is restarted.
###############################################################################
# TAG: ppp
# Path to the pppd program, default '/usr/sbin/pppd' on Linux
#
#ppp /usr/sbin/pppd
# TAG: option
# Specifies the location of the PPP options file.
# By default PPP looks in '/etc/ppp/options'
#
#option /etc/ppp/options.pptpd
option /etc/ppp/ppp.conf
# TAG: debug
# Turns on (more) debugging to syslog
#
#debug
# TAG: stimeout
# Specifies timeout (in seconds) on starting ctrl connection
#
# stimeout 10
# TAG: noipparam
# Suppress the passing of the client's IP address to PPP, which is
# done by default otherwise.
#
#noipparam
# TAG: logwtmp
# Use wtmp(5) to record client connections and disconnections.
#
logwtmp
# TAG: bcrelay <if>
# Turns on broadcast relay to clients from interface <if>
#
#bcrelay eth1
# TAG: localip
# TAG: remoteip
# Specifies the local and remote IP address ranges.
#
# Any addresses work as long as the local machine takes care of the
# routing. But if you want to use MS-Windows networking, you should
# use IP addresses out of the LAN address space and use the proxyarp
# option in the pppd options file, or run bcrelay.
#
# You can specify single IP addresses seperated by commas or you can
# specify ranges, or both. For example:
#
# 192.168.0.234,192.168.0.245-249,192.168.0.254
#
# IMPORTANT RESTRICTIONS:
#
# 1. No spaces are permitted between commas or within addresses.
#
# 2. If you give more IP addresses than MAX_CONNECTIONS, it will
# start at the beginning of the list and go until it gets
# MAX_CONNECTIONS IPs. Others will be ignored.
#
# 3. No shortcuts in ranges! ie. 234-8 does not mean 234 to 238,
# you must type 234-238 if you mean this.
#
# 4. If you give a single localIP, that's ok - all local IPs will
# be set to the given one. You MUST still give at least one remote
# IP for each simultaneous client.
#
# (Recommended)
localip 10.0.100.254
remoteip 10.0.100.200-205
listen MY_EXTERNAL_IP
pidfile /var/run/pptpd.pid
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245
ppp.conf:
Code:
loop:
set timeout 0
set log phase chat connect lcp ipcp command
set device localhost:pptp
set dial
set login
set mppe * stateful
# Server (local) IP address, Range for Clients, and Netmask
# Use the same IP addresses you specified in /etc/pppd.conf :
set ifaddr 10.0.100.254 10.0.100.200-205 255.255.255.255
set server /tmp/loop "" 0177
loop-in:
set timeout 0
set log phase lcp ipcp command
allow mode direct
pptp:
load loop
# Disable unsecured auth
disable pap
disable chap
enable mschapv2
disable deflate pred1
deny deflate pred1
disable ipv6
accept mppe
enable proxy
accept dns
# DNS Servers to assign client
# Use your own DNS server IP address :
set dns 10.0.100.231
# NetBIOS/WINS Servers to assign client
# Use your own WINS server IP address :
# set nbns 20.1.1.100
set device !/etc/ppp/secure
/etc/ppp/secure:
Code:
#!/bin/sh
exec /usr/sbin/ppp -direct loop-in
/etc/ppp/ppp.secret:
Code:
jle MY_PASS * * *
Jemand eine Idee, warum der Fehler so auftaucht?
Danke im voraus!