FreeBSD
Установка и настройка mpd5 server
- Подробности
- Категория: FreeBSD
- Опубликовано 23.06.2013 16:24
- Автор: 1111
- Просмотров: 481
Устанавливаем mpd5
cd /usr/ports/net/mpd5
make install clean
Создаем
touch /usr/local/etc/mpd5/mpd.conf
Редактируем
ee /usr/local/etc/mpd5/mpd.conf
startup:
set user login password admin
set user login password user
set web self 192.168.3.1 5066
set web enable auth
set web open
set console self 127.0.0.1 5067
set console open
set netflow peer 127.0.0.1 9996
default:
load pptp_server
pptp_server:
# Create bundle template
create bundle template B
set bundle disable compression
set bundle disable encryption
set iface disable on-demand
set iface disable proxy-arp
set iface idle 1800
set iface enable tcpmssfix
set iface enable netflow-in
set iface enable netflow-out
set ipcp ranges 1.1.1.1/32 1.0.0.0/16
set ipcp yes vjcomp
# set ipcp dns 192.168.3.1
set ipcp dns 192.168.3.1
set ipcp nbns 192.168.3.1
# Create link template
create link template L pptp
set link action bundle B
set link enable peer-as-calling
set link disable multilink
set link yes acfcomp protocomp
set link no chap pap eap
set link enable chap
load radius
set link keep-alive 10 60
set link mtu 1500
set link mru 1500
set link enable incoming
Создаем
touch /usr/local/etc/mpd5/mpd.secret
Редактируем
ee /usr/local/etc/mpd5/mpd.secret
user password *
ee /etc/syslog.conf
*.* /var/log/mpd.log
touch /var/log/mpd.log
/etc/rc.d/syslogd reload
ee /etc/rc.conf
mpd_enable="YES"
/usr/local/etc/rc.d/mpd5 start
Разрешаем в фаирволе pf порт 1723 для работы mpd
pass in log on $ext_if proto{ tcp, udp } from any to 10.0.0.17 port keep state
где 10.0.0.17 ип сервера где будет mpd server