I tried configure pppd client to get access in VPN net, and have been stoping on this trouble.
"""
Serial connection established.
using channel 12 Using interface ppp0
Connect: ppp0 <--> /dev/pts/5
sent [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x0> <magic 0xbcabfb71> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <mru 552> <asyncmap 0x0> <magic 0xbcabfb71> <pcomp> <accomp>]
sent [LCP ConfNak id=0x1 <magic 0xeb43b145>]
rcvd [LCP ConfNak id=0x1 <magic 0xeb43b145>]
sent [LCP ConfReq id=0x2 <mru 552> <asyncmap 0x0> <magic 0x3612d092> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x2 <mru 552> <asyncmap 0x0> <magic 0x3612d092> <pcomp> <accomp>]
sent [LCP ConfNak id=0x2 <magic 0x14e16651>]
sent [LCP ConfReq id=0x2 <mru 552> <asyncmap 0x0> <magic 0x3612d092> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x7e650199> <pcomp> <accomp>]
sent [LCP ConfAck id=0x1 <asyncmap 0x0> <auth chap MD5> <magic 0x7e650199> <pcomp> <accomp>]
rcvd [LCP ConfAck id=0x2 <mru 552> <asyncmap 0x0> <magic 0x3612d092> <pcomp> <accomp>]
rcvd [CHAP Challenge id=0x0 <7a60583679d510e7d5536858bba6b8696ee5>, name = "napalm.astu.org"]
sent [CHAP Response id=0xd9 <ebd370c4c095b032736980507a66a458>, name = "sergienko"]
rcvd [CHAP Success id=0xd9 "<\37777777743\37777777777\37777777677\003"]
CHAP authentication succeeded: <M-cM-^?M-?^C
Couldn't set pass-filter in kernel: Invalid argument
sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 192.168.1.1>]
sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr 192.168.1.1>]
rcvd [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
Deflate (15) compression enabled
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 192.168.13.86>]
sent [IPCP ConfReq id=0x3 <compress VJ 0f 01> <addr 192.168.13.86>]
rcvd [IPCP ConfAck id=0x3 <compress VJ 0f 01> <addr 192.168.13.86>]
local IP address 192.168.13.86
remote IP address 192.168.1.1
Script /etc/ppp/ip-up started (pid 4419)
Script /etc/ppp/ip-up finished (pid 4419), status = 0x0
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
rcvd [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfAck id=0x1 <deflate 15> <deflate(old#) 15>]
sent [CCP ConfReq id=0x2 <deflate 15> <deflate(old#) 15> <bsd v1 15>]
CCP: timeout sending Config-Requests
Terminating on signal 2.
Script /etc/ppp/ip-down started (pid 4431)
sent [LCP TermReq id=0x2 "User request"]
Script pptp 192.168.1.1 --nolaunchpppd finished (pid 4406), status = 0x0
Modem hangup
Connection terminated.
Connect time 0.8 minutes.
Sent 71903547 bytes, received 193 bytes.
Waiting for 1 child processes...
script /etc/ppp/ip-down, pid 4431
Script /etc/ppp/ip-down finished (pid 4431), status = 0x0
"""""
As u can see pppo interfave dieing after reciving some packeges by CCP protocol.Before terminating interface living somewhere 1 minute and at this time we can see interface config by command ifconfig.
""""
ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.13.86 P-t-P:192.168.1.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:552 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:121550 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:145 (145.0 b) TX bytes:27930242 (26.6 Mb)
"""""
And routing table:
"""""
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.1 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 172.20.0.1 255.255.0.0 UG 0 0 0 eth0
172.20.0.0 * 255.255.0.0 U 0 0 0 eth0
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.1.1 0.0.0.0 UG 0 0 0 ppp0
"""""
If someone know what a problem please answer what i forgot to do.
For more detailt i put the config file to pppd and some server information.
"""
remotename VPN-Flex
linkname VPN-Flex
ipparam VPN-Flex
pty "pptp 192.168.1.1 --nolaunchpppd"
name sergienko
usepeerdns
noauth
file /etc/ppp/options.pptp
debug
connect /bin/true
defaultroute
netmask 255.255.255.0
noipdefault
kdebug 1
bsdcomp 0
"""""
Server info
server ip 192,168,1,1
Standing on FreeBSD