
mpd.conf:
Код: Выделить всё
startup:
set netflow peer 127.0.0.1 9996
default:
load pptp_server
pptp_server:
create bundle template B
set iface enable proxy-arp
set iface enable netflow-in
set iface enable netflow-out
set iface idle 1800
set iface enable tcpmssfix
set ipcp yes vjcomp
set ipcp ranges 172.16.0.1/32 172.16.0.0/16
set ipcp dns XXX.XXX.XXX.XXX
set bundle enable compression
set ccp yes mppc
set mppc yes e40
set mppc yes e128
set mppc yes stateless
create link template L pptp
set link action bundle B
set link enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
load radius
set link keep-alive 10 60
set link mtu 1460
set pptp self 10.0.0.1
set pptp disable windowing
set pptp enable always-ack
set link enable incoming
radius:
set radius config /etc/radius.conf
set radius server 127.0.0.1 1812 1813
set radius retries 3
set radius timeout 3
set radius me 127.0.0.1
set auth acct-update 300
set auth enable radius-auth
set auth enable radius-acct
set radius enable message-authentic
В лог ошибка сыпиться:
Код: Выделить всё
ModFWMan: No valid rule found for AID 10 RouterID 1 State 0
Код: Выделить всё
ID Тарифа: N
1) Включение: table 1 add UIP 1
1) Выключение: table 1 delete UIP 1
2) Включение: table 2 add UIP 2
2) Выключение: table 2 delete UIP 2
ipfw pipe 1 config bw 128Kbit/s queue 20 mask src-ip 0xffffffff
ipfw pipe 2 config bw 128Kbit/s queue 20 mask dst-ip 0xffffffff
ipfw add 100 pipe tablearg ip from table\(1\) to any in recv ng*
ipfw add 200 pipe tablearg ip from any to table\(2\) out xmit ng*
NatIP="XXX.XXX.XXX.XXX"
ipfw nat 123 config ip ${NatIP} log
ipfw add 300 nat 123 ip from table\(1\) to any
ipfw add 400 nat 123 ip from any to ${NatIP}
ipfw add 65533 allow all from any to any