EdgeRouter pptp client

edgerouter-x


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: 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 ] rcvd [LCP ConfReq id=0x1 ] lcp_reqci: returning CONFREJ.
sent [LCP ConfRej id=0x1 ] rcvd [LCP ConfAck id=0x1 ] rcvd [LCP ConfReq id=0x2 ] lcp_reqci: returning CONFACK.
sent [LCP ConfAck id=0x2 ] 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 , 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 ] rcvd [CCP ConfReq id=0x1 ] sent [CCP ConfAck id=0x1 ] rcvd [CCP ConfAck id=0x1 ] MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 ] rcvd [IPCP ConfReq id=0x1 ] ipcp: returning Configure-ACK
sent [IPCP ConfAck id=0x1 ] rcvd [IPCP ConfRej id=0x1 ] sent [IPCP ConfReq id=0x2 ] rcvd [IPCP ConfNak id=0x2 ] sent [IPCP ConfReq id=0x3 ] rcvd [IPCP ConfAck id=0x3 ] 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]

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

This Post Has 2 Comments

  1. Иван Йорданов

    Здравейте!

    Дали е възможно да се включва pptp клиента по разписание, само за определено време през cron? Например от 10:00 – 11:00 часа. Ако с рутер на Ubiquity не става, какъв бихте ми препоръчали?

  2. Самуил Арсов

    Никога не съм се замислял за подобно нещо, каква е идеята все пак ?