Assigning a specific IP address and Interface with MPD
From: Jay Hall (jhall_at_vandaliamo.net)
Date: 04/22/04
- Previous message: Brooks Davis: "Re: RFC: if_clone overhaul"
- Next in thread: Michael Bretterklieber: "Re: Assigning a specific IP address and Interface with MPD"
- Reply: Michael Bretterklieber: "Re: Assigning a specific IP address and Interface with MPD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 22 Apr 2004 04:16:06 -0500 To: freebsd-net@freebsd.org
I have setup a VPN for the company I work for in which all of the remote
offices connect to the Headquarters office using MPD. And this works
great until I have to re-establish the connections.
What I am trying to do, and maybe there is a better way, is to control
what ng interface a client connects on so mpd can add routes for me
based on the set iface route statement.
For example in my mpd.conf configuration file on the server I have the lines
pptp0:
.....
new -i ng0 pptp0 pptp0
set ipcp 10.129.10.40/32 10.129.10.100/32
set iface route 10.128.10.0/24
...
pptp1:
......
new -i ng1 pptp1 pptp1
set ipcp 10.129.10.40/32 10.129.10.101/32
set iface route 10.129.10.0/24
.....
On the client side (all are identical with the exception of the first
ipcp address)
........
new -i ng0 vpn vpn
set ipcp 10.129.10.100/32 10.129.10.40/32
set iface route 10.129.10.0/24
.........
In mpd.secret on the server I have (usernames and passwords have been
changed)
user1 "user1" 10.129.10.100
user2 "user2: 10.129.10.101
I am seeing the correct IP addresses assigned as each user logs in, but
they are not on the interface I would expect them to be on.
Is it possible to do this? Or should I work on trying to add the routes
as the interfaces come up based on the IP address they are assigned?
Thanks in advance for your assistance.
Jay
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
- Previous message: Brooks Davis: "Re: RFC: if_clone overhaul"
- Next in thread: Michael Bretterklieber: "Re: Assigning a specific IP address and Interface with MPD"
- Reply: Michael Bretterklieber: "Re: Assigning a specific IP address and Interface with MPD"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|