Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Nov 2002 00:40:23 -0800
From:      steve@Watt.COM (Steve Watt)
To:        net@freebsd.org
Subject:   MPD UDP setup
Message-ID:  <200211150840.gAF8eNri047989@wattres.Watt.COM>

next in thread | raw e-mail | index | archive | help
Everyone's favorite, I know. :)

I'm trying to set up an MPD-based configuration that does the same
thing as my current userland-ppp setup.

The current setup is that the remote network is connected to a
FreeBSD-Ancient (3-STABLE) box, which is then running a userland
ppp over udp to the local network.  The remote always initiates the
connection.

My box is a 4-STABLE, and I'm currently using "ppp -direct vpn-in"
started from inetd to field the packets.

What I'd like to do is use mpd instead of inetd, but I'm having a
bit of an argument getting the link set up correctly.

What I have on the local end is:

(bit of mpd.conf)
netremote:
	new -i ng0 netremote netremote
	set bundle disable multilink
	set iface disable on-demand
	set iface route 192.168.242.0/24
	set link enable acfcomp protocomp
	set link enable chap
	set link keep-alive 10 60
	set link mtu 1460
	set ipcp yes vjcomp
	set ipcp ranges 192.168.241.10/32 192.168.242.0/24
	set ipcp dns 192.168.241.10
	open iface

and in the mpd.links file:
netremote:
	set link type udp
	set udp self [my-global-ip-address] 3141
	set udp peer [their-global-ip-addr] 3141

When I try to start mpd, I get the following in my error
log, and don't see anything bound to UDP:3141...

Nov 14 23:57:59 wattres mpd: [netremote] can't bind ksocket node: Invalid argument 

I'm puzzled.

Thanks,

(p.s. Not subscribed to freebsd-net, so include me in replies.  Yes, I did
search the archives first.)

-- 
Steve Watt KD6GGD  PP-ASEL-IA          ICBM: 121W 56' 57.8" / 37N 20' 14.9"
 Internet: steve @ Watt.COM                         Whois: SW32
   Free time?  There's no such thing.  It just comes in varying prices...

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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