Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Mar 2004 12:21:21 +0100
From:      Harald Schmalzbauer <h@schmalzbauer.de>
To:        Michael Bretterklieber <mbretter@a-quadrat.at>
Cc:        freebsd-current@freebsd.org
Subject:   Re: [Mpd-users] Re: MSS and mpd
Message-ID:  <200403181221.26102.h@schmalzbauer.de>
In-Reply-To: <Pine.WNT.4.58.0403180952371.1776@BRUTUS>
References:  <200403112102.i2BL2oID000848@arch20m.dellroad.org> <200403180111.52548.h@schmalzbauer.de> <Pine.WNT.4.58.0403180952371.1776@BRUTUS>

next in thread | previous in thread | raw e-mail | index | archive | help

--Boundary-02=_2YYWADXFxkkjq2V
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Am Donnerstag, 18. M=E4rz 2004 09:57 schrieb Michael Bretterklieber:
> Hi,
>
> On Thu, 18 Mar 2004, Harald Schmalzbauer wrote:
> > Thank you very much for investigating. Since I don't have any spare line
> > I was forced to reselect PPTP.
>
> no problem, the better solution would be having a ng_tcpmss rather then
> passing every TCP-SYN packet to Mpd.

Hmm, this really sounds good. Great idea, but again I can't help since I=20
hardly speak C.

I also would love to see mpd in the FreeBSD base-system. I know that GENERI=
C=20
doesn't include NETGRAPH at all but afaik all modules can be loaded at=20
runtime.

I did it for me privatly, if someone's interested, here's my diff (mpd with=
 PF=20
on -current with line disconnect at 5 past 6 in the morning since the=20
provider forces 24h disconnect and refreshing PF and ntp)

Thanks all,

=2DHarry

=2D-- /dev/null   Thu Mar 18 12:00:21 2004
+++ /etc/rc.d/mpd       Thu Mar 18 00:38:54 2004
@@ -0,0 +1,29 @@
+#!/bin/sh
+#
+# $FreeBSD: src/etc/rc.d/mpd, $
+#
+
+# PROVIDE: mpd
+# REQUIRE: netif isdnd
+# KEYWORD: FreeBSD nojail
+
+. /etc/rc.subr
+
+name=3Dmpd
+rcvar=3D"mpd_enable"
+start_cmd=3D"mpd_start"
+stop_cmd=3D"killall mpd"
+pidfile=3D"/var/run/${name}.pid"
+
+mpd_start()
+{
+       # start mpd daemon
+       #
+
+       echo "Starting mpd..."
+       /usr/local/sbin/mpd -b -c 2121 -p $pidfile
+
+}
+
+load_rc_config $name
+run_rc_command "$1"
=2D-- /etc/rc.d/NETWORKING.orig   Thu Mar 18 12:16:30 2004
+++ /etc/rc.d/NETWORKING        Tue Mar 16 02:37:05 2004
@@ -5,7 +5,7 @@
 #

 # PROVIDE: NETWORKING NETWORK
=2D# REQUIRE: dhclient netif routing network_ipv6 isdnd ppp-user
+# REQUIRE: dhclient netif mpd routing network_ipv6 isdnd ppp-user
 # REQUIRE: routed mrouted route6d mroute6d
 # KEYWORD: FreeBSD
=2D-- /etc/defaults/rc.conf.orig  Thu Mar 18 12:10:16 2004
+++ /etc/defaults/rc.conf       Thu Mar 18 12:09:20 2004
@@ -133,6 +133,8 @@
 ppp_profile=3D"papchap"  # Which profile to use from /etc/ppp/ppp.conf.
 ppp_user=3D"root"                # Which user to run ppp as

+mpd_enable=3D"NO"
+
 ### Network daemon (miscellaneous) ###
 syslogd_enable=3D"YES"           # Run syslog daemon (or NO).
 syslogd_program=3D"/usr/sbin/syslogd" # path to syslogd, if you want a=20
different one.
=2D-- /dev/null   Thu Mar 18 12:18:17 2004
+++ /etc/rc.local       Wed Mar 17 23:57:45 2004
@@ -0,0 +1,3 @@
+echo "loading PF rules..."
+sleep 10
+pfctl -f /etc/pf.conf -e
=2D-- /etc/crontab.orig   Thu Mar 18 12:11:39 2004
+++ /etc/crontab        Thu Mar 18 00:48:35 2004
@@ -17,10 +17,12 @@
 0      *       *       *       *       root    newsyslog
 #
 # Perform daily/weekly/monthly maintenance.
=2D1      3       *       *       *       root    periodic daily
=2D15     4       *       *       6       root    periodic weekly
=2D30     5       1       *       *       root    periodic monthly
+#1     3       *       *       *       root    periodic daily
+#15    4       *       *       6       root    periodic weekly
+#30    5       1       *       *       root    periodic monthly
 #
 # Adjust the time zone if the CMOS clock keeps local time, as opposed to
 # UTC time.  See adjkerntz(8) for details.
 1,31   0-5     *       *       *       root    adjkerntz -a
+# Zwecks Zwangstrennung und dynamischer IP ein reload alle 24h
+5      6       *       *       *       root    /usr/local/sbin/reconnect.sh
=2D-- /dev/null   Thu Mar 18 12:12:17 2004
+++ /usr/local/sbin/reconnect.sh        Thu Mar 18 00:41:41 2004
@@ -0,0 +1,14 @@
+#!/bin/sh
+echo "stoping mpd (M-net PPTP)"
+/etc/rc.d/mpd stop
+pfctl -F all
+echo "waiting 70 seconds until reconnect.................."
+sleep 70
+/etc/rc.d/mpd start
+sleep 10
+echo "reinitialising Packet Filter..."
+pfctl -f /etc/pf.conf
+echo "updating timeserver..."
+/etc/rc.d/ntpd stop
+/etc/rc.d/ntpd start
+echo "reconnect done. "
>
> > I'm very interested in things going on, but couldn't find a web interfa=
ce
> > for the mpd-users list, which is the one from
> > http://sourceforge.net/projects/mpd isn't it?
>
> http://lists.sourceforge.net/lists/listinfo/mpd-users
>
> bye,
> --
> ------------------------------- ----------------------------------
> Michael Bretterklieber          - http://www.bretterklieber.com
> A-Quadrat Automation GmbH       - http://www.a-quadrat.at
> Tel: ++43-(0)3172-41679         - GSM: ++43-(0)699 12861847
> ------------------------------- ----------------------------------
> "...the number of UNIX installations has grown to 10, with more
> expected..." - Dennis Ritchie and Ken Thompson, June 1972

--Boundary-02=_2YYWADXFxkkjq2V
Content-Type: application/pgp-signature
Content-Description: signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAWYY2Bylq0S4AzzwRAubjAJ9TTko/G7Uj0O35Z6yy1pduLazUhgCdFc2Y
aTHAhWi0OtUHp6wwjY7KO40=
=bksr
-----END PGP SIGNATURE-----

--Boundary-02=_2YYWADXFxkkjq2V--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403181221.26102.h>