--- embedaddon/mpd/conf/mpd.conf.sample 2012/02/21 23:32:47 1.1 +++ embedaddon/mpd/conf/mpd.conf.sample 2016/11/01 09:56:13 1.1.1.3 @@ -9,7 +9,7 @@ # in at the console. Lines without padding are labels. Lines # starting with a "#" are comments. # -# $Id: mpd.conf.sample,v 1.1 2012/02/21 23:32:47 misho Exp $ +# $Id: mpd.conf.sample,v 1.1.1.3 2016/11/01 09:56:13 misho Exp $ # ################################################################# @@ -51,7 +51,7 @@ dialup: # Create static modem link named L1 create link static L1 modem # Configure modem - set modem device /dev/cuad0 + set modem device /dev/cuau0 set modem var $DialPrefix "DT" set modem var $Telephone "1-415-555-1212" set modem script DialPeer @@ -98,7 +98,7 @@ dialin: set link no pap chap eap set link enable chap-md5 # Configure modem - set modem device /dev/cuad0 + set modem device /dev/cuau0 set modem var $DialPrefix "DT" set modem idle-script AnswerCall # Permit incoming calls using this link @@ -106,7 +106,7 @@ dialin: multi_dialup: # -# Example of a multi-link dialup setup, using links "usr1" and "usr2" +# Example of a multi-link dialup setup, using links "L1" and "L2" # Similar to the first example, but uses two links together, and # does not do dial-on-demand. # @@ -119,12 +119,12 @@ multi_dialup: # Create links and open them create link static L1 modem load common - set modem device /dev/cuad0 + set modem device /dev/cuau0 open create link static L2 modem load common - set modem device /dev/cuad1 + set modem device /dev/cuau1 open common: @@ -278,8 +278,17 @@ pptp_client: # create bundle static B1 + set bundle enable compression + set ccp yes mppc + set mppc no e40 + set mppc yes e128 + set mppc yes stateless set iface route default set ipcp ranges 0.0.0.0/0 0.0.0.0/0 +# Enable network Address Translation (NAT) +# and forward tcp port 80 to the internal network machine with IP 192.168.0.1 + set iface enable nat + set nat red-port tcp 0.0.0.0 80 192.168.0.1 80 create link static L1 pptp set link action bundle B1