Hello,
my system is OpenBSD 4.3 GENERIC#698 i386
the tasks are:
1. setup client connection to poptop server without mppe
2. provide vpn service to subnets 10.0.0.0/8 and 192.168.0.0/16 with
mppe (default windows connection settings)
3. nat incoming vpn connections to outgiong vpn connection

ppp.conf
default:
  set log Phase Chat LCP IPCP CCP tun command
  disable ipv6cp

hole1:
 set device "!/usr/local/sbin/pptp  $server  --nolaunchpppd"
 set log Phase LCP IPCP CCP tun command
 disable acfcomp protocomp
 deny acfcomp
 enable lqr
 set lqrperiod 5
 set cd 5
 set redial 30
 set timeout 0
 set authname $login
 set authkey $password
 set dial
 set login
 add! default HISADDR
 enable mssfixup
 disable ipv6cp
 accept MSChapV2
 #set mppe 128 stateless

pptp:
   enable  MSChapV2
   set timeout 0
   set iffaddr 172.16.250.1 172.16.250.32-172.16.250.63 255.255.255.255
   set dns $dns_server
   set mppe 128 stateless
   enable proxy
   disable deflate pred1
   set timeout 0
------------------------------------------------------------------------

$ sysctl net.inet.gre.allow
net.inet.gre.allow=1

$ grep -v ^# /etc/pptpd.conf | grep -v ^$
debug
noipparam

and from that here we go

# ppp -ddial hole1
Working in ddial mode
Using interface: tun0
root @ yangtzi # tail /var/log/messages
Feb 22 13:11:39 yangtzi ppp[2892]: tun0: Warning: debug: Invalid command
Feb 22 13:11:39 yangtzi ppp[2892]: tun0: Warning: debug: Failed 1
Feb 22 13:11:39 yangtzi ppp[2892]: tun0: Warning: dump: Invalid command
Feb 22 13:11:39 yangtzi ppp[2892]: tun0: Warning: dump: Failed 1
Feb 22 13:11:39 yangtzi ppp[27146]: tun0: Warning: Carrier settings ignored
Feb 22 13:12:12 yangtzi last message repeated 11 times
Feb 22 13:14:15 yangtzi last message repeated 41 times
Feb 22 13:15:30 yangtzi last message repeated 25 times
Feb 22 14:00:01 yangtzi syslogd: restart
Feb 22 14:49:32 yangtzi ppp[6665]: tun0: Warning: Carrier settings ignored
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33208
        groups: lo
        inet 127.0.0.1 netmask 0xff000000
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
rl0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        lladdr 00:02:44:bf:fb:5d
        groups: egress
        media: Ethernet autoselect (100baseTX full-duplex)
        status: active
        inet 10.21.52.128 netmask 0xffffff00 broadcast 10.21.52.255
        inet6 fe80::202:44ff:febf:fb5d%rl0 prefixlen 64 scopeid 0x1
enc0: flags=0<> mtu 1536
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33208
        groups: pflog
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
        groups: tun

whats this ?
help figure out please

Reply via email to