From: Kondratenko Boris <kondor71@yandex.ru> To: community@lists.altlinux.org Subject: [Comm] Gprs, planetsky, pptp Date: Sun, 21 May 2006 11:52:38 +0400 Message-ID: <44701C46.4030507@yandex.ru> (raw) [-- Attachment #1: Type: text/plain, Size: 700 bytes --] Доброго времени суток, уважаемое сообщество. Не согласится ли кто-нибудь помочь у установкой соединения со спутниковым оператором. Что я сделал: выполнил настройки gprs-mts - тут все без вопросов работает. попробовал выполнить настройки planetsky по статье http://www.freesource.info/wiki/AfanasovDmitry/Set'/Skystar2 (с соответствующими изменениями для моего спутника) и данными с сайта оператора faq.planetsky.com/ru. Что получилось: пробую запустить vpn-fake. система вроде пишет, что связь установлена, но реально весь трафик идет через gprs, хотя должно быть так, что исходящий через gprs а входящий через спутник. Вывод ifconfig и скрипты запуска во вложении. Заранее благодарен... [-- Attachment #2: planetsky --] [-- Type: text/plain, Size: 638 bytes --] #!/bin/bash MY_GW="192.200.1.21" 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 [-- Attachment #3: ifconfig --] [-- Type: text/plain, Size: 640 bytes --] #!/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 [-- Attachment #4: mtsgprs --] [-- Type: text/plain, Size: 1501 bytes --] #!/bin/sh DIALTIMEOUT=20 # еÑли мобилÑник подÑеплен к COM1 а не к IR, замениÑÑ Ð² ÑкÑипÑе ircomm0 на ttyS0 case "$1" in mts0885) MODEM=ircomm0 SPEED=57600 MODEM_INIT="" IH_IP=" ipcp-accept-local ipcp-accept-remote noipdefault user mts" LOGSCRIPT="CONNECT" PHONE="0885" ;; mtsgprs|*) MODEM=ircomm0 SPEED=115200 MODEM_INIT='AT+CGDCONT=1,\"IP\",\"internet.mts.ru\" OK' IH_IP=" ipcp-accept-local ipcp-accept-remote noipdefault debug usepeerdns user mts novj nobsdcomp novjccomp nopcomp noaccomp" LOGSCRIPT="CONNECT" PHONE="*99***1#" ;; esac # пеÑед запÑÑком pppd ÑдалÑÐµÑ default router, по оконÑании - воÑÑÑÐ°Ð½Ð°Ð²Ð»Ð¸Ð²Ð°ÐµÑ # Ðолее коÑÑекÑно бÑло Ð±Ñ Ð²ÑÑавиÑÑ ÑÑи дейÑÑÐ²Ð¸Ñ Ð² /etc/ppp/ip-up.local и /etc/ppp/ip-down.local DR=`route -n | egrep '^0.0.0.0'| grep -v ppp | sed 's/^[^ ]* *\([^ ]*\) .*/default gw \1/'` ; if [ -n "$DR" ] ; then trap "echo route add $DR ; route add $DR ; exit" 2 3 9 15 route delete $DR echo route delete $DR fi ########################## ##################### ÐÑи обÑÑве ÑÐ¾ÐµÐ´Ð¸Ð½ÐµÐ½Ð¸Ñ pppd пеÑезапÑÑкаеÑÑÑ #################### while true ; do pppd \ connect 'chat -v ABORT "NO DIALTONE" ABORT "NO CARRIER" ABORT BUSY "" '"$MODEM_INIT"' ATDP'$PHONE' '"$LOGSCRIPT"' ;' \ crtscts defaultroute modem -detach mru 1500 \ $NASH_IP:$IH_IP /dev/$MODEM $SPEED sleep $DIALTIMEOUT done
next reply other threads:[~2006-05-21 7:52 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-05-21 7:52 Kondratenko Boris [this message] 2006-05-21 8:04 ` hozzzar 2006-05-21 13:09 ` Вадим Илларионов 2006-05-21 14:29 ` Evgenii Terechkov 2006-05-21 16:31 ` hozzzar 2006-05-21 17:22 ` Evgenii Terechkov 2006-05-21 19:11 ` hozzzar 2006-05-22 2:02 ` Terechkov Evgenii 2006-05-22 9:50 ` Terechkov Evgenii 2006-05-21 14:00 ` hozzzar 2006-05-21 8:46 ` Evgenii Terechkov 2006-05-21 16:45 ` Kondratenko Boris 2006-05-21 17:02 ` hozzzar 2006-05-21 13:29 ` Вадим Илларионов 2006-06-15 9:01 ` 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=44701C46.4030507@yandex.ru \ --to=kondor71@yandex.ru \ --cc=community@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 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