| 1 |
# Debugging level |
| 2 |
set debug 3 |
| 3 |
|
| 4 |
# Log file: comment out to use stderr, use "syslog:facility" for syslog |
| 5 |
set log_file "/var/log/l2tpns" |
| 6 |
|
| 7 |
# Write pid to this file |
| 8 |
set pid_file "/var/run/l2tpns.pid" |
| 9 |
|
| 10 |
# This host name, if different from the OS one |
| 11 |
#set hostname "localhost" |
| 12 |
|
| 13 |
# Shared secret with LAC |
| 14 |
set l2tp_secret "secret" |
| 15 |
|
| 16 |
# MTU of interface for L2TP traffic |
| 17 |
#set l2tp_mtu 1500 |
| 18 |
|
| 19 |
# MRRU for MP traffic |
| 20 |
#set mp_mrru 1614 |
| 21 |
|
| 22 |
# PPP counter and timer values |
| 23 |
#set ppp_restart_time 3 |
| 24 |
#set ppp_max_configure 10 |
| 25 |
#set ppp_max_failure 5 |
| 26 |
|
| 27 |
# Can be set to "on-mismatch" to enable proxy LCP negotiation |
| 28 |
# (e.g. if LAC cannot pass LCP through) |
| 29 |
#set lcp_renegotiation "always" |
| 30 |
|
| 31 |
# Only 2 DNS server entries are allowed |
| 32 |
set primary_dns 10.0.0.1 |
| 33 |
set secondary_dns 10.0.0.2 |
| 34 |
|
| 35 |
# Can have multiple radius server entries, but ony one radius secret |
| 36 |
set primary_radius 10.0.0.3 |
| 37 |
#set primary_radius_port 1812 |
| 38 |
#set secondary_radius 0.0.0.0 |
| 39 |
#set secondary_radius_port 1812 |
| 40 |
set radius_secret "secret" |
| 41 |
# Set this to yes once you have confirmed that your RADIUS server provides MessageAuthenticator in its responses |
| 42 |
#set radius_require_message_authenticator auto |
| 43 |
|
| 44 |
# Acceptable authentication types (pap, chap) in order of preference |
| 45 |
#set radius_authtypes "pap" |
| 46 |
|
| 47 |
# Turn on or off Radius Accounting |
| 48 |
#set radius_accounting no |
| 49 |
|
| 50 |
# Port for DAE RADIUS requests |
| 51 |
#set radius_dae_port 3799 |
| 52 |
|
| 53 |
# Allow multiple logins for the same username |
| 54 |
#set allow_duplicate_users no |
| 55 |
|
| 56 |
# Kill timedout sessions ? (default yes) |
| 57 |
#set kill_timedout_sessions no |
| 58 |
|
| 59 |
# Allow multiple logins for specific username |
| 60 |
#set guest_account "" |
| 61 |
|
| 62 |
# Write usage accounting files into specified directory |
| 63 |
#set accounting_dir "/var/run/l2tpns/acct" |
| 64 |
|
| 65 |
# Listen address for L2TP |
| 66 |
#set bind_address 1.1.1.1 |
| 67 |
|
| 68 |
# Listen address for CLI |
| 69 |
set cli_bind_address 127.0.0.1 |
| 70 |
|
| 71 |
# Send a gratiuitous ARP for bind address |
| 72 |
#set send_garp no |
| 73 |
|
| 74 |
# Gateway address given to clients |
| 75 |
#set peer_address 0.0.0.0 |
| 76 |
|
| 77 |
# Default throttle rate in kb/s |
| 78 |
#set throttle_speed 0 |
| 79 |
|
| 80 |
# Number of buckets to allocate for throttling |
| 81 |
#set throttle_buckets 3000 |
| 82 |
|
| 83 |
# If set to true, dump current speed to stderr every second |
| 84 |
#set dump_speed no |
| 85 |
|
| 86 |
# Number of packets to read from tun/udp/cluster fd when select |
| 87 |
# returns readable |
| 88 |
#set multi_read_count 10 |
| 89 |
|
| 90 |
# Set scheduling priority of process to SCHED_FIFO |
| 91 |
#set scheduler_fifo no |
| 92 |
|
| 93 |
# Lock pages into memory |
| 94 |
#set lock_pages no |
| 95 |
|
| 96 |
# Maximum number of host unreachable packets to send per second |
| 97 |
#set icmp_rate 0 |
| 98 |
|
| 99 |
# Maximum number of downstream packets per 0.1s to handle for each |
| 100 |
# session (0 = ulimited) |
| 101 |
#set packet_limit 0 |
| 102 |
|
| 103 |
# Cluster multicast address, interface |
| 104 |
#set cluster_address 239.192.13.13 |
| 105 |
#set cluster_port 32792 |
| 106 |
#set cluster_interface eth0 |
| 107 |
|
| 108 |
# Cluster multicast TTL |
| 109 |
#set cluster_mcast_ttl 1 |
| 110 |
|
| 111 |
# Cluster timers (1/10th second) |
| 112 |
#set cluster_hb_interval 5 |
| 113 |
#set cluster_hb_timeout 150 |
| 114 |
|
| 115 |
# Minimum number of slaves before master withdraws routes |
| 116 |
#set cluster_master_min_adv 1 |
| 117 |
|
| 118 |
# IPv6 address prefix |
| 119 |
#set ipv6_prefix :: |
| 120 |
|
| 121 |
# Only 2 IPv6 DNS server entries are allowed |
| 122 |
#set primary_ipv6_dns 2001:db8::1 |
| 123 |
#set secondary_ipv6_dns 2001:db8::2 |
| 124 |
|
| 125 |
# BGP NEXT_HOP path attribute |
| 126 |
#set nexthop 10.0.1.1 |
| 127 |
#set nexthop6 2001:db8::1 |
| 128 |
|
| 129 |
# Route metric (lower is preferred) |
| 130 |
#set route_metric 1 |
| 131 |
# Route protocol number to use |
| 132 |
#set route_protocol 42 |
| 133 |
|
| 134 |
# Time between last packet sent and LCP ECHO generation (default 10 seconds) |
| 135 |
#set echo_timeout 10 |
| 136 |
# Drop sessions who have not responded within idle_echo_timeout seconds (default 240 seconds) |
| 137 |
#set idle_echo_timeout 240 |
| 138 |
# Change this value to no to force generation of LCP ECHO every echo_timeout seconds, even there are activity on the link (default yes) |
| 139 |
set ppp_keepalive yes |
| 140 |
|
| 141 |
# Drop/kill sessions |
| 142 |
#load plugin "sessionctl" |
| 143 |
|
| 144 |
# Throttle/snoop based on RADIUS |
| 145 |
#load plugin "autothrottle" |
| 146 |
#load plugin "autosnoop" |
| 147 |
|
| 148 |
# Control throttle/snoop with nsctl |
| 149 |
#load plugin "throttlectl" |
| 150 |
#load plugin "snoopctl" |
| 151 |
|
| 152 |
# Punt RX speed if not supplied |
| 153 |
#load plugin "setrxspeed" |
| 154 |
|
| 155 |
# Remove domain from username |
| 156 |
#load plugin "stripdomain" |
| 157 |
|
| 158 |
# Walled garden |
| 159 |
#load plugin "garden" |
| 160 |
|
| 161 |
# Kernel acceleration, enable on no more than one instance on the same machine! |
| 162 |
#set kernel_accel yes |
| 163 |
# |
| 164 |
# You will probably want to also enable MSS clamping, which l2tpns won't be able to do any more: |
| 165 |
# iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu |
| 166 |
# ip6tables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu |
| 167 |
# or |
| 168 |
# nft add rule inet filter forward tcp flags syn tcp option maxseg size set rt mtu |
| 169 |
# |
| 170 |
# and allow dhcpv6 traffic: |
| 171 |
# iptables -A INPUT -i ppp+ -p udp --sport 546 --dport 547 -j ACCEPT |
| 172 |
# |
| 173 |
# and increase the memory available for igmp6 for DHCPv6 and RS: |
| 174 |
# sysctl net.core.optmem_max=10485760 |