mpd.conf со встроенным NAT для ОГО Укртелекома

DmitryS

Member
cd /usr/ports/net/mpd5
make install


ee /usr/local/etc/mpd5/mpd.conf

startup:
# configure mpd users
set user your_login your_password
# configure the console
set console self 127.0.0.1 5005
set console open
# configure the web server
set web self 127.0.0.1 5006
set web open


default:
load PPPoE

PPPoE:
create bundle static B1
set iface route default
set ipcp ranges 0.0.0.0/0 0.0.0.0/0
set ipcp yes vjcomp
set iface disable on-demand
set iface idle 0
set iface enable tcpmssfix

set iface enable nat

# Если нужны скрипты
# set iface up-script /usr/local/etc/ip-world.sh
# set iface down-script /usr/local/etc/ipd-world.sh


set nat enable incoming
set nat enable same-ports

create link static L1 pppoe
set link action bundle B1

set auth authname xxxxxx@dsl.ukrtel.net
set auth password xxxxxx

set link max-redial 0
set link mtu 1492
set link keep-alive 10 60
set pppoe iface em0
set pppoe service "Ukrtel"
open

Выделенные значения обязательно сменить
 
Верх