i386/146143: mpd on-demand mode. When set idle > 0 up-script &&
down-script run each time on connect and disconect
Vladimir
rootd at mail.ru
Thu Apr 29 08:50:04 UTC 2010
>Number: 146143
>Category: i386
>Synopsis: mpd on-demand mode. When set idle > 0 up-script && down-script run each time on connect and disconect
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-i386
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Apr 29 08:50:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Vladimir
>Release: FreeBSD 6.2-RELEASE-p12
>Organization:
>Environment:
FreeBSD server.ru 6.2-RELEASE-p12 FreeBSD 6.2-RELEASE-p12 #1: Tue Aug 19 11:54:05 MSD 2008 root at server.ru:/usr/obj/usr/src/sys/SERVER i386
>Description:
mpd-4.4.1_1
When tunel open, run up-script and then down-script.
When tunel close, run down-script and then up-script
>How-To-Repeat:
mpd.conf
default:
load vpn
vpn:
new -i ng0 vpn vpn
set iface mtu 1460
set iface addrs <local_ip> <remote_net>
set iface enable on-demand
set iface idle 30
set link keep-alive 0 0
set link max-redial 0
set bundle disable noretry
set ipcp ranges 172.19.247.129/32 0.0.0.0/0
set ipcp no vjcomp
set auth authname login
set auth password pass
set iface enable tcpmssfix
set iface up-script /usr/local/etc/mpd4/up-vpn.sh
set iface down-script /usr/local/etc/mpd4/down-vpn.sh
set link accept chap
set link no pap
set bundle disable multilink
set bundle disable crypt-reqd
set ccp yes mpp-e40
set ccp no mpp-e128
set ccp no mpp-stateless
open iface
mpd.link
vpn:
set link type pptp
set pptp peer <peer_ip>
set pptp self <local_ip>
set pptp enable originate
set pptp disable incoming windowing
up-vpn.sh
echo /var/tmp/up.log
down-vpn.sh
echo /var/tmp/down.log
______________________
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-i386
mailing list