From: Alexander Vasiliev <vav@tascom.ru> To: Alexander Vasiliev <community@altlinux.ru> Subject: Re: [Comm] пробл с VPN Date: Fri, 15 Oct 2004 14:56:44 +0400 Message-ID: <20041015105644.GA14031@dennis.td.tascom.ru> (raw) In-Reply-To: <4114689359.20041015205155@ankam26.ru> On Fri, Oct 15, 2004 at 08:51:55PM +1200, khudyakov wrote: > > AV> #!/bin/sh > > AV> route add -host PPTP-SERVER gw OLD-GW > AV> route add default gw NEW-GW > AV> route del default gw OLD-GW > Все вышенаписанное я поместил в /etc/ppp/ip-up.local Этот файл выполняется при поднятии pptp соединения. > Здравствуйте - а почему OLD и NEW?? шлюз как был на 192.168.1.1 так и > остался > то есть первая запись будет route add -host 192.168.1.1 gw > 192.168.1.1??? По-видимому, в вашем случае, нет. У меня pptp-server имеет ip совсем из другой сети (отличной от сети OLD-GW). И выдает ip для туннеля не совпадающий с PPTP-SERVER. В вашей ситуации указывать маршрут на 192.168.1.1 не надо, ведь клиент и сервер находятся в одной сети (client ip 192.168.1.33), а новый default route нужно прописать не только на ip, а и на интерфейс: route add default gw 192.168.1.1 dev ppp0 > Следующее - старый дефолтный маршрут надо удалять до начала соединения > - иначе pptp не сможет установить свой defaultroute (2 defaultroute > быть не может) И не забудьте вернуть все обратно после закрытия pptp сеанса. Можно для этого использовать /etc/ppp/ip-down.local. -- Александр Васильев ЗАО "Таском" vav@tascom.ru
next prev parent reply other threads:[~2004-10-15 10:56 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-10-14 5:28 khudyakov 2004-10-14 6:17 ` max 2004-10-14 6:20 ` max 2004-10-14 7:51 ` Re[2]: " khudyakov 2004-10-14 6:58 ` max 2004-10-14 8:07 ` Re[2]: " khudyakov 2004-10-14 7:50 ` khudyakov 2004-10-14 6:52 ` Pavel Sabirjanov 2004-10-14 7:02 ` max 2004-10-14 7:12 ` Pavel Sabirjanov 2004-10-14 8:21 ` Re[2]: " khudyakov 2004-10-14 7:26 ` Pavel Sabirjanov 2004-10-14 8:37 ` Re[2]: " khudyakov 2004-10-14 7:28 ` max 2004-10-14 8:42 ` Re[2]: " khudyakov 2004-10-14 8:13 ` max 2004-10-14 8:44 ` Re[2]: " khudyakov 2004-10-15 6:29 ` Alexander Vasiliev 2004-10-15 8:51 ` Re[2]: " khudyakov 2004-10-15 10:56 ` Alexander Vasiliev [this message] 2004-10-14 7:58 ` khudyakov 2004-10-14 7:03 ` Pavel Sabirjanov 2004-10-14 8:11 ` Re[2]: " khudyakov 2004-10-14 8:03 ` khudyakov 2004-10-14 7:09 ` max 2004-10-14 8:16 ` Re[2]: " khudyakov 2004-10-14 7:22 ` max 2004-10-14 8:17 ` Re[2]: " khudyakov 2004-10-14 7:55 ` Michael Holzman 2004-10-14 8:59 ` Re[2]: " khudyakov 2004-10-14 8:06 ` Michael Holzman 2004-10-14 10:01 ` Michael Holzman 2004-10-14 10:58 ` Re[4]: " khudyakov
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=20041015105644.GA14031@dennis.td.tascom.ru \ --to=vav@tascom.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