Нужно сделать так, чтоб одна из внутренних машин имела внешний адрес у себя на интерфейсе. Как я понимаю, единственный вариант - pppoe.
Запускаю pppoe-server на роутере:
Код: Выделить всё
pppoe-server -I eth0Содержимое файла /etc/ppp/pppoe-server-options взял из инета.
Вроде, на данном этапе не сильно важно.
Код: Выделить всё
name pppoe
logfile /var/log/log.pppoe
require-pap
require-chap
require-mschap
require-mschap-v2
lcp-echo-interval 20
lcp-echo-failure 3
ms-dns 212.188.4.10
ms-dns 195.34.32.116
netmask 255.255.255.0
nobsdcomp
lockНа компе установил и настроил pppoeconf
Файл /etc/ppp/peers/dsl-provider
Код: Выделить всё
# Configuration file for PPP, using PPP over Ethernet
# to connect to a DSL provider.
#
# See the manual page pppd(8) for information on all the options.
##
# Section 1
#
# Stuff to configure...
# MUST CHANGE: Uncomment the following line, replacing the user@provider.net
# by the DSL user name given to your by your DSL provider.
# (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
#user myusername@myprovider.net
# Use the pppoe program to send the ppp packets over the Ethernet link
# This line should work fine if this computer is the only one accessing
# the Internet through this DSL connection. This is the right line to use
# for most people.
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1452"
# An even more conservative version of the previous line, if things
# don't work using -m 1452...
#pty "/usr/sbin/pppoe -I eth0 -T 80 -m 1412"
# If the computer connected to the Internet using pppoe is not being used
# by other computers as a gateway to the Internet, you can try the following
# line instead, for a small gain in speed:
#pty "/usr/sbin/pppoe -I eth0 -T 80"
# The following two options should work fine for most DSL users.
# Assumes that your IP address is allocated dynamically
# by your DSL provider...
noipdefault
# Try to get the name server addresses from the ISP.
usepeerdns
# Use this connection as the default route.
# Comment out if you already have the correct default route installed.
defaultroute
##
# Section 2
#
# Uncomment if your DSL provider charges by minute connected
# and you want to use demand-dialing.
#
# Disconnect after 300 seconds (5 minutes) of idle time.
#demand
#idle 300
##
# Section 3
#
# You shouldn't need to change these options...
debug
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1492
# RFC 2516, paragraph 7 mandates that the following options MUST NOT be
# requested and MUST be rejected if requested by the peer:
# Address-and-Control-Field-Compression (ACFC)
noaccomp
# Asynchronous-Control-Character-Map (ACCM)
default-asyncmap
plugin rp-pppoe.so eth1
user "test"Запускаю pon dsl-provider
Логи на компе:
Код: Выделить всё
pppd[15657]: PADS: Service-Name: ''
pppd[15657]: PPP session is 2
pppd[15657]: using channel 2
pppd[15657]: Using interface ppp0
pppd[15657]: Connect: ppp0 <--> eth1
pppd[15657]: sent [LCP ConfReq id=0x2 <mru 1492> <magic 0xae01dfc6>]
last message repeated 9 times
pppd[15657]: LCP: timeout sending Config-Requests
pppd[15657]: Connection terminated.
pppd[15657]: Modem hangupЛоги на роутере:
Код: Выделить всё
pppoe-server[1821]: Session 2 created for client 00:50:ba:5d:86:df (10.67.15.2) on eth0 using Service-Name ''
pppoe-server[1549]: Session 2 closed for client 00:50:ba:5d:86:df (10.67.15.2) on eth0
pppoe-server[1549]: Sent PADTКак я понимаю, сервер не отвечает на запросы клиента.
Нужна помощь в настройке и понимании принципа работы.
