From: Afanasov Dmitry <ender@atrus.ru> To: community@altlinux.ru Subject: Re: [Comm] запарил vpn(что делать с gateway`ем) Date: Fri, 11 Feb 2005 09:45:58 +0300 Message-ID: <20050211064558.GB23603@nick.comp-mir.ru> (raw) In-Reply-To: <4207A7C6.6010902@pochta.ru> вот телегу завернули, через ip route пошли разруливать :) на мой взгляд есть намного проще вариант: надо заменить default gw в любом случае, сохранив при этом маршрут до vpn сервера. его адрес я так и не увидел. для этого: для начала добавить маршут до vpn сервера ip route add <vpn-server> via 192.168.1.5 dev eth1 (или route add <vpn-server> gw 192.168.1.5 dev eth1) задача: чтобы у тебя при отсутсвии default gw vpn-server всё также был доступен. в принципе в инитскрипте можно даже шваркнуть default gw, всё равно pppd его проставит. но тогда добавить static route на vpn server. далее. после добавления маршрута подключаемся к vpn server'у. в конце у тебя должно быть нечто вроде этого: vpn-server 192.168.1.5 255.255.255.255 UH 0 0 0 eth1 83.172.0.250 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0 192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 83.172.0.250 0.0.0.0 UG 0 0 0 eth1 у тебя проблема в отваливании vpn подключения, так как неизвестно, куда сслать vpn пакет. при таком варианте маршрут до vpn server'а известен, так что смело рисуем default gw на remote point в ppp подключении. фишка: если прописать дополнительно в /etc/ppp/options (или где там ето у теюя) cleardefaultroute, то этот самый default route ppp при подключении шваркнет, а при отключении восстановит. что самое весёлое, в мане я этот параметр не нашёл - в дефолтном конфиге pptp выкопал :) -- С уважением, Афанасов Дмитрий
next prev parent reply other threads:[~2005-02-11 6:45 UTC|newest] Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-07 17:39 some_x 2005-02-07 18:59 ` Denis Kirienko 2005-02-07 19:19 ` some_x 2005-02-07 19:47 ` Denis Kirienko 2005-02-07 21:41 ` some_x 2005-02-07 22:05 ` Denis Kirienko 2005-02-08 4:27 ` some_x 2005-02-08 6:26 ` [Comm] Re: запарил vpn( что делать с gateway`ем ) max 2005-02-08 14:53 ` some_x 2005-02-09 6:21 ` max 2005-02-08 5:06 ` [Comm] запарил vpn(что делать с gateway`ем) Gleb Kulikov 2005-02-08 15:54 ` some_x 2005-02-09 11:05 ` Gleb Kulikov 2005-02-08 17:17 ` some_x 2005-02-11 6:45 ` Afanasov Dmitry [this message] 2005-02-11 6:55 ` Albert R. Valiev 2005-02-11 8:00 ` небольшие баги стартовых скриптов (was: [Comm] запарил vpn(что делать с gateway`ем)) Afanasov Dmitry 2005-02-15 22:31 ` Afanasov Dmitry 2005-02-13 7:33 ` [Comm] запарил vpn(что делать с gateway`ем) some_x 2005-02-13 8:20 ` Gleb Kulikov 2005-02-13 9:57 ` Alexei Takaseev 2005-02-14 4:11 ` Albert R. Valiev 2005-02-13 18:42 ` Afanasov Dmitry 2005-02-16 15:19 ` some_x 2005-02-15 15:50 ` Afanasov Dmitry 2005-02-19 15:53 ` Igor V.Marenkov aka some_x
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=20050211064558.GB23603@nick.comp-mir.ru \ --to=ender@atrus.ru \ --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