Dave a écrit :
Hi,
> Anyway, i've read l2tp doesn't require gre, but just udp, so i
> thought i'd try it. The problem is it's not happening. Does
> anyone have a working example?
The vm running mpd has 2 interfaces vxn0 and vxn1 :
[EMAIL PROTECTED]:~> ifconfig -a
vxn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.1.231 netmask 0xffffff00 broadcast 192.168.1.255
ether 00:0c:29:96:ba:17
vxn1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
inet 192.168.32.10 netmask 0xffffff00 broadcast 192.168.32.255
ether 00:0c:29:96:ba:21
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
The following setup permits access to 192.168.32/24 for a host
connecting via l2tp with the right credentials to 192.168.1.231/32
<mpd.conf>
startup:
set global enable tcp-wrapper
set console port 5005
set console ip 0.0.0.0
set console user foo bar
set console user foo1 bar1
set console open
default:
load l2tp
l2tp:
new -i ng0 l2tp l2tp
set iface disable on-demand
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set bundle disable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set link mtu 1460
set ipcp yes vjcomp
set ipcp ranges 192.168.32.10/32 192.168.32.100/32
set ipcp dns 192.168.32.10
set ipcp nbns 192.168.32.10
</mpd.conf>
<mpd.links>
l2tp:
set link type l2tp
set l2tp self 192.168.1.231
set l2tp enable incoming
set l2tp disable originate
</mpd.links>
<mpd.secret>
user password
</mpd.secret>
This is just a test configuration, It misses the following points :
- Bind an ip address to a login/password
- Provide a domain-name to the l2tp client
- Support multiple clients
- Support pppoe link running simultaneously
Ideas welcome for points 1 & 2.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mpd-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mpd-users