I'm trying to setup npppd as change for poptop.
I'm able connect to server from Internet,
but I'm not able to get access to resources
behind server and even server.
I repeat all step from here except 1, 2, 3, 6:
http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/usr.sbin/npppd/Attic/HOWTO_PIPEX_NPPPD.txt?rev=1.3;content-type=text%2Fplain
tun0 used for openvpn, but I need pptp for mobile devices.
# uname -vrp
5.1 GENERIC.MP#188 i386
# npppd -d
2012-10-16 22:18:07:NOTICE: Starting npppd pid=25397 version=5.0.0
2012-10-16 22:18:07:NOTICE: Load configuration from='/etc/npppd/npppd.conf'
successfully.
2012-10-16 22:18:07:INFO: tun1 Started ip4addr=10.0.0.1
2012-10-16 22:18:07:INFO: Listening /var/run/npppd_ctl (npppd_ctl)
2012-10-16 22:18:07:INFO: pool name=default dyn_pool=[10.0.0.0/25]
pool=[10.0.0.0/24]
2012-10-16 22:18:07:INFO: Added 2 routes for new pool addresses
2012-10-16 22:18:07:INFO: Loading pool config successfully.
2012-10-16 22:18:07:INFO: realm name=local(local) Loaded users
from='/etc/npppd/npppd-users.csv' successfully. 1 users
2012-10-16 22:18:07:INFO: pptpd Listening 0.0.0.0:1723/tcp (PPTP PAC) [PPTP]
2012-10-16 22:18:07:INFO: pptpd Listening 0.0.0.0:gre (PPTP PAC)
2012-10-16 22:18:07:INFO: tun1 is using ipcp=default(1 pools).
2012-10-16 22:18:34:INFO: pptpd ctrl=0 Starting peer=77.52.3x.x:4411/tcp
sock=194.106.x.x:1723/tcp
2012-10-16 22:18:34:INFO: pptpd ctrl=0 RecvSCCRQ protocol_version=1.0
framing=async bearer=analog max_channels=0 firmware_revision=2600(0x0a28)
host_name="" vendor_string="Microsoft Windows NT"
2012-10-16 22:18:34:INFO: pptpd ctrl=0 SendSCCRP protocol_version=1.0 result=1
error=0 framing=sync bearer=digital max_channels=4
firmware_revision=1282(0x0502) host_name="" vendor_string=""
2012-10-16 22:18:34:INFO: pptpd ctrl=0 call=0 RecvOCRQ call_id=0
call_serial_number=37740 max_bps=300 min_bps=100000000 bearer=analog,digital
framing=async,sync recv_winsz=64 packet_proccessing_delay=0 phone_nunmber=
subaddress=
2012-10-16 22:18:34:INFO: pptpd ctrl=0 call=65160 SendOCRP call_id=65160
peers_call_id=0 result=1 error=0 cause=0 conn_speed=10000000 recv_winsz=64
packet_proccessing_delay=0 physical_channel_id=65160
2012-10-16 22:18:34:NOTICE: pptpd ctrl=0 call=65160 logtype=PPPBind ppp=0
2012-10-16 22:18:34:INFO: ppp id=0 layer=base logtype=Started
tunnel=PPTP(77.52.x.x:4411)
2012-10-16 22:18:34:INFO: pptpd ctrl=0 call=65160 RecvSLI accm=ffffffff:ffffffff
2012-10-16 22:18:34:INFO: ppp id=0 layer=lcp logtype=Opened mru=1400/1400
auth=MS-CHAP-V2 magic=c4655616/38d539d0
2012-10-16 22:18:34:INFO: ppp id=0 layer=lcp RecvId magic=38d539d0
text=MSRASV5.10
2012-10-16 22:18:34:INFO: ppp id=0 layer=lcp RecvId magic=38d539d0
text=MSRAS-0-ASUS-A6J
2012-10-16 22:18:34:INFO: ppp id=0 layer=chap proto=mschap_v2 logtype=Success
username="admin" realm=local
2012-10-16 22:18:34:INFO: pptpd ctrl=0 call=65160 RecvSLI accm=ffffffff:ffffffff
2012-10-16 22:18:34:INFO: ppp id=0 layer=mppe mismatch our=128bit,stateless
peer=mppc,40bit,128bit,56bit,stateless
2012-10-16 22:18:34:INFO: ppp id=0 layer=ipcp IP Address peer=0.0.0.0
our=10.0.0.5.
2012-10-16 22:18:34:INFO: ppp id=0 layer=mppe logtype=Opened
our=128bit,stateless peer=128bit,stateless
2012-10-16 22:18:34:INFO: ppp id=0 layer=ipcp logtype=Opened ip=10.0.0.5
assignType=dynamic
2012-10-16 22:18:34:NOTICE: ppp id=0 layer=base logtype=TUNNELSTART
user="admin" duration=1sec layer2=PPTP layer2from=77.52.x.x:4411
auth=MS-CHAP-V2Â ip=10.0.0.5 iface=tun1
2012-10-16 22:18:34:NOTICE: ppp id=0 layer=base Using pipex=yes
# ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33196
       priority: 0
       groups: lo
       inet6 ::1 prefixlen 128
       inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
       inet 127.0.0.1 netmask 0xff000000
em0: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
       lladdr 00:18:7d:0e:f5:34
       priority: 0
       media: Ethernet autoselect (100baseTX full-duplex)
       status: active
       inet 192.168.5.80 netmask 0xffffff00 broadcast 192.168.5.255
em1: flags=28843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,NOINET6> mtu 1500
       lladdr 00:18:7d:0e:f5:33
       priority: 0
       groups: egress
       media: Ethernet autoselect (100baseTX
full-duplex,rxpause,txpause)
       status: active
       inet 194.106.x.x netmask 0xfffffffc broadcast 194.106.218.99
enc0: flags=0<>
       priority: 0
       groups: enc
       status: active
rum0: flags=28802<BROADCAST,SIMPLEX,MULTICAST,NOINET6> mtu 1500
       lladdr 6c:62:6d:12:5d:59
       priority: 4
       groups: wlan
       media: IEEE802.11 autoselect mode 11g hostap
       status: no network
       ieee80211: nwid OpenBSDwifi chan 2 bssid 6c:62:6d:12:5d:59 100dBm
       inet 192.168.55.1 netmask 0xffffff00 broadcast 192.168.55.255
tun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500
       priority: 0
       groups: tun
       status: active
       inet 192.168.99.1 --> 192.168.99.2 netmask 0xffffffff
pflog0: flags=141<UP,RUNNING,PROMISC> mtu 33196
       priority: 0
       groups: pflog
tun1: flags=43<UP,BROADCAST,RUNNING> mtu 1500
       priority: 0
       groups: tun
       status: active
       inet 10.0.0.1 netmask 0xffffffff
# netstat -rn | grep 10.
default           194.106.x.x    UGS    4984
74385705Â Â Â Â -Â Â Â Â 8 em1
10.0.0.0/25       127.0.0.1         UGBdm    Â
0Â Â Â Â Â Â Â 0 33196Â Â Â 56 lo0
10.0.0/24         127.0.0.1         UGBdm    Â
0Â Â Â Â Â Â Â 0 33196Â Â Â 56 lo0
10.0.0.1          127.0.0.1         UGHd     Â
1Â Â Â Â Â Â Â 0 33196Â Â Â 56 lo0
10.0.0.1/32Â Â Â Â Â Â Â 10.0.0.1Â Â Â Â Â Â Â Â Â Â UÂ Â Â Â Â Â Â Â Â
0Â Â Â Â Â Â Â 0Â Â Â Â -Â Â Â Â 4 tun1
10.0.0.5          10.0.0.1          UGHd     Â
0Â Â Â Â Â Â 79Â 1400Â Â Â 56 tun1
# npppctl session all
Ppp Id = 1
         Ppp Id                 : 1
         Username               : admin
         Realm Name             : local
         Concentrated Interface : tun1
         Assigned IPv4 Address  : 10.0.0.5
         Tunnel Protocol        : PPTP
         Tunnel From            :
77-52-x-x.dialup.umc.net.ua:4528
         Start Time             : 2012/10/16 22:35:50
         Elapsed Time           : 17 sec
         Input Bytes            : 15722 (15.4 KB)
         Input Packets          : 30
         Input Errors           : 0 (0.0%)
         Output Bytes           : 454
         Output Packets         : 16
         Output Errors          : 0 (0.0%)
###npppd.conf###
interface_list:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â tun1
interface.tun1.ip4addr:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 10.0.0.1
pool.dyna_pool:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 10.0.0.0/25
pool.pool:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
10.0.0.128/25
auth.local.realm_list:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â local
auth.local.realm.acctlist:Â Â Â Â Â Â Â Â Â Â Â Â Â /etc/npppd/npppd-users.csv
realm.local.concentrate:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â tun1
lcp.mru:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 1400
auth.method:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â mschapv2 chap
ipcp.dns_primary:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 192.168.5.80
pptpd.enabled:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â true
pptpd.ip4_allow:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â 0.0.0.0/0
l2tpd.enabled:Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â false
##part of pf.conf###
set skip on { lo, enc0, tun1 }
pass in on $ext_if proto gre from any to em1
pass in on $ext_if inet proto tcp from any to em1 port pptp modulate state
pass out on $ext_if proto gre from em1 to any