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:
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
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
sent [LCP ConfRej id=0x1
sent [LCP ConfAck id=0x2
sent [CCP ConfReq id=0x1
sent [IPCP ConfReq id=0x1
sent [IPCP ConfAck id=0x1
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]
Здравейте!
Дали е възможно да се включва pptp клиента по разписание, само за определено време през cron? Например от 10:00 – 11:00 часа. Ако с рутер на Ubiquity не става, какъв бихте ми препоръчали?
Никога не съм се замислял за подобно нещо, каква е идеята все пак ?