version 1.1.1.1, 2012/02/21 23:32:47
|
version 1.1.1.4, 2016/11/02 09:50:33
|
Line 51 dialup:
|
Line 51 dialup:
|
# Create static modem link named L1 |
# Create static modem link named L1 |
create link static L1 modem |
create link static L1 modem |
# Configure modem |
# Configure modem |
set modem device /dev/cuad0 | set modem device /dev/cuau0 |
set modem var $DialPrefix "DT" |
set modem var $DialPrefix "DT" |
set modem var $Telephone "1-415-555-1212" |
set modem var $Telephone "1-415-555-1212" |
set modem script DialPeer |
set modem script DialPeer |
Line 98 dialin:
|
Line 98 dialin:
|
set link no pap chap eap |
set link no pap chap eap |
set link enable chap-md5 |
set link enable chap-md5 |
# Configure modem |
# Configure modem |
set modem device /dev/cuad0 | set modem device /dev/cuau0 |
set modem var $DialPrefix "DT" |
set modem var $DialPrefix "DT" |
set modem idle-script AnswerCall |
set modem idle-script AnswerCall |
# Permit incoming calls using this link |
# Permit incoming calls using this link |
Line 106 dialin:
|
Line 106 dialin:
|
|
|
multi_dialup: |
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 |
# Similar to the first example, but uses two links together, and |
# does not do dial-on-demand. |
# does not do dial-on-demand. |
# |
# |
Line 119 multi_dialup:
|
Line 119 multi_dialup:
|
# Create links and open them |
# Create links and open them |
create link static L1 modem |
create link static L1 modem |
load common |
load common |
set modem device /dev/cuad0 | set modem device /dev/cuau0 |
open |
open |
|
|
create link static L2 modem |
create link static L2 modem |
load common |
load common |
set modem device /dev/cuad1 | set modem device /dev/cuau1 |
open |
open |
|
|
common: |
common: |
Line 278 pptp_client:
|
Line 278 pptp_client:
|
# |
# |
|
|
create bundle static B1 |
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 iface route default |
set ipcp ranges 0.0.0.0/0 0.0.0.0/0 |
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 |
create link static L1 pptp |
set link action bundle B1 |
set link action bundle B1 |