ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Kondratenko Boris <kondor71@yandex.ru>
To: Сизиф <sisyphus@altlinux.ru>
Subject: [sisyphus] PlanetSky (fake vpn)
Date: Sun, 11 Dec 2005 20:45:34 +0300
Message-ID: <1134323135.10513.7.camel@kondor7> (raw)

Попал в ситуацию, когда не знаю, куда обратиться...

Дело такое: пытаюсь настроить соединение со спутником Express AM1, на
сайте faq.planetsky.com есть скрипт, который по идее должен запустить
VPN, но я не могу понять, что надо вписать в графу:


> #!/bin/bash
> 
> MY_GW="xxx.xxx.xxx.xxx"
Вот в эту... Как я понял сюда надо вписать мой шлюз, но где его посмотреть я не знаю...
> start(){
> echo "Starting VPN Fake...              "
> 
> /sbin/modprobe ipip && \
> /sbin/modprobe ip_gre && \
> /sbin/ip route add 82.211.136.2 via ${MY_GW} && \
> /usr/sbin/pptp 82.211.136.2 call pptpfake && \
> /bin/sleep 10 && \
> /sbin/ip route delete default && \
> /sbin/ip route add default dev ppp0 && \
> echo "OK"
> }
> 
> stop(){
> /usr/bin/killall -9 pptp
> /sbin/ip route delete 82.211.136.2 > /dev/null 2>&1
> /sbin/ip route delete default && \
> /sbin/ip route add default via ${MY_GW}
> }
> 
> case "$1" in
> start)
>         start
>         ;;
> stop)
>         stop
>         ;;
> *)
>         echo "usage: $0 start|stop "
>         ;;
> esac

Подключаюсь через GPRS, вот вывод:

> Serial connection established.
> using channel 1
> Using interface ppp0
> Connect: ppp0 <--> /dev/ircomm0
> sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x35f14b8d>]
> rcvd [LCP ConfReq id=0x1 <asyncmap 0xa0000> <auth pap>]
> sent [LCP ConfAck id=0x1 <asyncmap 0xa0000> <auth pap>]
> rcvd [LCP ConfRej id=0x1 <magic 0x35f14b8d>]
> sent [LCP ConfReq id=0x2 <asyncmap 0x0>]
> rcvd [LCP ConfAck id=0x2 <asyncmap 0x0>]
> sent [PAP AuthReq id=0x1 user="mts" password=<hidden>]
> rcvd [PAP AuthAck id=0x1 "Login OK"]
> Remote message: Login OK
> PAP authentication succeeded
> sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>]
> sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> rcvd [LCP ProtRej id=0x2 80 fd 01 01 00 0c 1a 04 78 00 18 04 78 00]
> sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> rcvd [IPCP ConfReq id=0x1 <addr 192.200.1.21>]
> sent [IPCP ConfAck id=0x1 <addr 192.200.1.21>]
> rcvd [IPCP ConfNak id=0x1 <addr 10.2.3.170> <ms-dns1 213.87.0.1> <ms-dns3 213.87.1.1>]
> sent [IPCP ConfReq id=0x2 <addr 10.2.3.170> <ms-dns1 213.87.0.1> <ms-dns3 213.87.1.1>]
> rcvd [IPCP ConfAck id=0x2 <addr 10.2.3.170> <ms-dns1 213.87.0.1> <ms-dns3 213.87.1.1>]
> local  IP address 10.2.3.170
> remote IP address 192.200.1.21
> primary   DNS address 213.87.0.1
> secondary DNS address 213.87.1.1
> Script /etc/ppp/ip-up started (pid 10361)
> Script /etc/ppp/ip-up finished (pid 10361), status = 0x0

Какой адрес ввести в раздел шлюза в скрипте, подскажите, великие гуру... :)

-- 
С Уважением, Борис.



             reply	other threads:[~2005-12-11 17:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-11 17:45 Kondratenko Boris [this message]
2005-12-12 14:30 ` Vladimir V. Kamarzin

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=1134323135.10513.7.camel@kondor7 \
    --to=kondor71@yandex.ru \
    --cc=sisyphus@altlinux.ru \
    --cc=sisyphus@lists.altlinux.org \
    /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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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