6 proto_pptp_init_config() {
10 proto_config_add_string "username"
11 proto_config_add_string "password"
12 proto_config_add_string server
19 json_get_var server server
20 proto_add_host_dependency "$interface" "$server"
22 json_get_var username username
23 json_get_var password password
24 echo "pptp_setup($interface), username=$username, password=$password"
25 proto_init_update "pptp-$interface" 1
27 proto_add_ipv4_address "192.168.9.1" 32
28 proto_add_dns_server "192.168.9.2"
29 proto_add_ipv4_route "0.0.0.0" 0 192.168.9.2
31 json_add_string "ppp-type" "pptp"
33 proto_send_update "$interface"
35 proto_run_command "$interface" sleep 30
38 proto_pptp_teardown() {