ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Sergey Bolshakov2 <parus7@bk.ru>
To: Vitaly Gorshkov <vita55555@mail.ru>,
	ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] route , помогите пожалуста
Date: Thu, 16 Feb 2006 19:57:12 +0300
Message-ID: <200602161957.12575.parus7@bk.ru> (raw)
In-Reply-To: <8710300563.20060216180808@mail.ru>

В сообщении от Четверг 16 Февраль 2006 18:08 Vitaly Gorshkov 
написал(a):
> при старте соединение к прову поднимается тут:
>  /etc/rc.d/rc.local
> pptp 10.10.14.2  user yanus require-mschap-v2 noauth
> попробовал добавить дальше:
>
> route add default dev ppp0
> не помогает - видимо ppp0 еще не успевает подняться.
>
> приходиться ручками потом прописывать.
>
> я так понимаю нужно такой скриптик кторый бы в цикле гонял провреку
> на ppp0 , а при наличие ppp0 выполнял бы:
> route add default dev ppp0
>
> или паузу на 5 сек вставить.
>
>
> помогите плиз.

Не ясная задача, зачем городить огород со скриптами. 
Роутинг обычно делается через iptables. 
# ifconfig eth0 192.168.0.1 netmask 255.255.255.0 
Следующей командой компьютер с Linux превращается в маршрутизатор.
# echo 1 > /proc/sys/net/ipv4/ip_forward 
Теперь производим маскарадинг:
# iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j 
MASQUERADE 

Что за система. Если Altlinux то  есть толковая документация.

Сергей Большаков Второй




  parent reply	other threads:[~2006-02-16 16:57 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-02-16 15:08 Vitaly Gorshkov
2006-02-16 15:53 ` Терешков Евгений
2006-02-16 16:57 ` Sergey Bolshakov2 [this message]
2006-02-16 17:27   ` Терешков Евгений
2006-02-16 21:12     ` [Comm] [jt]route " Sergey Bolshakov2
2006-02-17  7:14       ` Re[2]: " Vitaly Gorshkov
2006-02-17  7:31         ` Grigory Fateyev
2006-02-20  6:06           ` Re[2]: " Vitaly Gorshkov
2006-02-20  6:48             ` Шенцев Алексей Владимирович
2006-02-20  6:56               ` Re[2]: " Vitaly Gorshkov
2006-02-20  7:02                 ` Шенцев Алексей Владимирович
2006-02-16 17:24 ` [Comm] route " Valery V. Inozemtsev

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=200602161957.12575.parus7@bk.ru \
    --to=parus7@bk.ru \
    --cc=community@lists.altlinux.org \
    --cc=vita55555@mail.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