ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Ilya Palagin <tux@fioc.kz>
To: community@altlinux.ru
Subject: [Comm] Re: ppp netmask help
Date: Fri, 31 Jan 2003 10:57:10 +0600
Message-ID: <3E3A0226.6010606@fioc.kz> (raw)
In-Reply-To: <20030131100248.3add8ea5.Maxim.Savrilov@socenter.ru>

Maxim.Savrilov@socenter.ru wrote:
...
> есть, провайдер отдает мне всегда один адрес
> SNAT счас поставлю
> но вряд ли это поможет, ведь так?
Главной проблеме - нет.

...
> /etc/mgetty+sendfax/mgetty.config
> debug 4
> 
> fax-id 7 383-2 209090
> 
> port ttyS1
> #  speed 57600
> #  switchbd 19200
> #  fax-only no
> #data-only yes
> speed 115200 
> init-chat "" ATZ OK AT&F1M0E1Q0S0=0 OK 
> answer-chat "" ATA CONNECT \c \r 
> statistics-chat "" AT OK ATI2 OK 
> statistics-file /var/log/mgetty/statistics.ttyS1 
> 
> 


> /etc/ppp/options
> lock
> /etc/ppp/options.ttyS1
...
 >
Попробуйте такое (это не совсем то же самое):

----------------/etc/ppp/options----------------
ms-dns <см. ниже про адрес DNS>
crtscts
lock
modem
asyncmap 0
netmask 255.255.255.0
nodetach
proxyarp
noauth
debug
----------------

Для порта, модем на котором смотрит в интернет:
----------------/etc/ppp/options.ttyS0----------------
defaultroute
----------------

Для порта dial-in клиента:
----------------/etc/ppp/options.ttyS1----------------
nodefaultroute
192.168.0.1:192.168.0.9
----------------



> 
> /etc/inittab
> T1:2345:respawn:/sbin/mgetty /dev/ttyS1
> 
> /etc/passwd
> pppsmi:x:515:515::/home/pppsmi:/usr/sbin/pppd
> smi:x:500:500::/home/smi:/bin/bash
при использовании autoppp это не имеет значения, я обычно кладу сюда 
что-то типа
pppsmi:x:515:515::/no/where:/bin/false

...
> все это пробовалось в различных комбинациях
> если у пользователя shell bash
> то для этого закомментированные строки в login.config раскомментаривались
> если pppd, то так как есть
А вот это раскомментировали в mgetty+sendfax/login.config:
/AutoPPP/ -     a_ppp   /usr/sbin/pppd auth -chap +pap login debug


> соединяется в любом случае, в обоих случаях клиент видит только 192.168.0.1
> причем если я говорю
> nslookup www.ru 192.168.0.1
> то-есть прямо говорю использовать named, что на шлюзе
> то он отвечает что-то вроде "не моге найти имя для 192.168.0.1"
В качестве nameserver используется bind?  В случае с ppp ситуация особая 
- по умолчанию named сканирует систему на наличие интерфейсов раз в час, 
т.е. если ppp не поднят на момент запуска named, он может оставаться 
незамеченным и запросы на 192.168.0.1 обрабатываться не будут (можете 
это проверить, перезапустив named при поднятом ppp). К качестве адреса 
DNS сервера лучше указывать адрес какого-нибудь eth.

Кроме того, в логах есть какие-нибудь ругательства?



           reply	other threads:[~2003-01-31  4:57 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20030131100248.3add8ea5.Maxim.Savrilov@socenter.ru>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E3A0226.6010606@fioc.kz \
    --to=tux@fioc.kz \
    --cc=community@altlinux.ru \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git