
configure
set firewall options mss-clamp interface-type pptp
set firewall options mss-clamp mss 1360
set interfaces pptp-client pptpc1 default-route auto
set interfaces pptp-client pptpc1 mtu 1500
set interfaces pptp-client pptpc1 name-server auto
set interfaces pptp-client pptpc1 password 1234
set interfaces pptp-client pptpc1 require-mppe
set interfaces pptp-client pptpc1 server-ip 192.168.10.1
set interfaces pptp-client pptpc1 user-id samyil
commit
save
exit
ubnt@ubnt# show interfaces pptp-client
pptp-client pptpc1 {
default-route auto
password 1234
require-mppe
server-ip 192.168.10.1
user-id samyil
}
[edit]
ubnt@ubnt# run show interfaces pptp-client
pptpc1: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1488 qdisc pfifo_fast state UNKNOWN qlen 100
link/ppp
inet 192.168.10.254 peer 192.168.10.201/32 scope global pptpc1
valid_lft forever preferred_lft forever
RX: bytes packets errors dropped overrun mcast
1430942 11561 0 0 0 0
TX: bytes packets errors dropped carrier collisions
2309536 20623 0 0 0 0
[edit]
ubnt@ubnt# run show interfaces pptp-client pptpc1 log
Thu Jan 1 01:08:33 UTC 2015: PPP interface pptpc1 created
Thu Jan 1 01:08:35 UTC 2015: Stopping PPP daemon for pptpc1
Thu Jan 1 01:08:35 UTC 2015: Starting PPP daemon for pptpc1
Serial connection established.
using channel 1
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <magic 0xc77f3624> <pcomp>]
rcvd [LCP ConfReq id=0x1 <mru 1492> <asyncmap 0x0> <auth chap MS-v2> <magic 0x1bbb5cae> <pcomp> <accomp>]
lcp_reqci: returning CONFREJ.
sent [LCP ConfRej id=0x1 <asyncmap 0x0> <accomp>]
rcvd [LCP ConfAck id=0x1 <magic 0xc77f3624> <pcomp>]
rcvd [LCP ConfReq id=0x2 <mru 1492> <auth chap MS-v2> <magic 0x1bbb5cae> <pcomp>]
lcp_reqci: returning CONFACK.
sent [LCP ConfAck id=0x2 <mru 1492> <auth chap MS-v2> <magic 0x1bbb5cae> <pcomp>]
sent [LCP EchoReq id=0x0 magic=0xc77f3624]
rcvd [LCP EchoReq id=0x0 magic=0x1bbb5cae]
sent [LCP EchoRep id=0x0 magic=0xc77f3624]
rcvd [CHAP Challenge id=0xc1 <28e649de1080f52dd34720f37c966b32>, name = "pptpd"]
sent [CHAP Response id=0xc1 <a4c5e6985a4175754aea9082a4429e590000000000000000fb66178a1715c6017d71f58fc08d2b1e7e8fc5d2d5e6a32a00>, name = "samyil"]
rcvd [LCP EchoRep id=0x0 magic=0x1bbb5cae]
rcvd [CHAP Success id=0xc1 "S=6719FCC2EAE38F7146AEE008973A220BF8C62B7A M=Access granted"]
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 192.168.10.201>]
ipcp: returning Configure-ACK
sent [IPCP ConfAck id=0x1 <addr 192.168.10.201>]
rcvd [IPCP ConfRej id=0x1 <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 192.168.10.254>]
sent [IPCP ConfReq id=0x3 <addr 192.168.10.254>]
rcvd [IPCP ConfAck id=0x3 <addr 192.168.10.254>]
ipcp: up
Script /etc/ppp/ip-pre-up started (pid 2108)
Script /etc/ppp/ip-pre-up finished (pid 2108), status = 0x0
local IP address 192.168.10.254
remote IP address 192.168.10.201
Script /etc/ppp/ip-up started (pid 2159)
Script /etc/ppp/ip-up finished (pid 2159), status = 0x0
[edit]