Assigning a specific IP address and Interface with MPD

From: Jay Hall (jhall_at_vandaliamo.net)
Date: 04/22/04

  • Next message: Michael Bretterklieber: "Re: Assigning a specific IP address and Interface with MPD"
    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"


  • Next message: Michael Bretterklieber: "Re: Assigning a specific IP address and Interface with MPD"

    Relevant Pages

    • Re: Mpd-4.2 released.
      ... Maxim Zenin did some effort to create such templates. ... His work was done on 3.18 version of mpd mainly for PPPoE server usage. ... >>link together with VirtaulTemplate interface in one vpdn-group config ... > One of problems is more or less new config file syntax required. ...
      (freebsd-net)
    • Re: Named could not listen on UDP socket: permission denied
      ... > ng0 is my main internet interface and is created on early boot ... > by mpd. ... > The reason is that if mpd is restarted for some reason, interface ng0 ... Only manual restart of named helps it bind ...
      (freebsd-net)
    • Music Playing Daemon for Linux
      ... We just done with our 0.8.0 release of mpd ... very lean music playing daemon. ... interface and a PHP ...
      (comp.os.linux.development.apps)
    • ng_ether and interface naming (bug or feature?)
      ... that changing interface names from rc.conf ... compiled into kernel. ... For example, when mpd is used as PPPoE server, rc.conf ... Error in creation ng_pppoe node on net1: ...
      (freebsd-net)
    • Re: MPD 3.13 PPTP server MTU problems & questions
      ... MPD 3.13 PPTP server MTU problems & questions ... client, it will change the MTU and mark it as UP. ... Interface down, mpd running, no client connected: ...
      (freebsd-net)