ALT Linux Community general discussions
 help / color / mirror / Atom feed
* Re: [Comm] Спутниковый интернет. Ошибка - Cannot open TUN/TAP dev Raduga: No such file or directory (errno=2)
  2006-09-01  8:05 [Comm] Спутниковый интернет. Ошибка - Cannot open TUN/TAP dev Raduga: No such file or directory (errno=2) anterior
@ 2006-09-01  3:54 ` Nikolay A. Fetisov
  0 siblings, 0 replies; 2+ messages in thread
From: Nikolay A. Fetisov @ 2006-09-01  3:54 UTC (permalink / raw)
  To: ALT Linux Community

On Friday 01 September 2006 12:05, anterior wrote:
> Добился очередного прогресса, но судя по всему данные
> принимать она так и не хочет.
Ну почему? Похоже, что хочет.

> $cat /etc/openvpn/config/client.ovpn
> ...
В client.ovpn для порядка добавьте что-нибудь типа
user nobody
group nobody


Не очень нравится вот этот кусок:
> ...
> Fri Sep  1 11:56:17 2006 /sbin/route del -net 0.0.0.0 netmask
> 0.0.0.0 Fri Sep  1 11:56:17 2006 /sbin/route add -net 0.0.0.0
> netmask 0.0.0.0 gw 10.250.35.1
> Fri Sep  1 11:56:17 2006 /sbin/route add -net 0.0.0.0 netmask
> 0.0.0.0 gw 10.250.35.1
> SIOCADDRT: Файл существует
> Fri Sep  1 11:56:17 2006 ERROR: Linux route add command
> failed: shell command exited with error status: 7

Т.е. OpenVPN зачем-то два раза пытается установить маршрут по 
умолчанию. С другой стороны, судя по выводу route, всё-таки 
устанавливает.

> Вот. В другом окне делаю:
> # /sbin/route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric
> Ref    Use Iface <...долго думая...>
'route -n' будет работать намного быстрее.

> ...

> # ping ya.ru
> <..долго думая..>
> ping: unknown host ya.ru

На данный момент - скорее всего, не работает разрешение имён 
DNS. 
Попробуйте:
ping 10.250.35.1   (это на Ваш default gateway)
ping 213.180.204.8   (это yandex.ru)
ping 80.81.208.34   (это то, что провайдер выдаёт OpenVPN как
                              сервер DNS).

Если как минимум первые два пройдут, то можно считать, что канал 
поднялся. Далее смотреть на /etc/resolv.conf , может быть, 
вручную прописать там серверы DNS. 

-- 
С уважением,
Николай Фетисов


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Comm] Спутниковый интернет. Ошибка - Cannot open TUN/TAP dev Raduga: No such file or directory (errno=2)
@ 2006-09-01  8:05 anterior
  2006-09-01  3:54 ` Nikolay A. Fetisov
  0 siblings, 1 reply; 2+ messages in thread
From: anterior @ 2006-09-01  8:05 UTC (permalink / raw)
  To: community

Добился очередного прогресса, но судя по всему данные принимать она так и не 
хочет.
$cat /etc/openvpn/config/client.ovpn
client
dev tap
proto udp
remote 80.81.208.66 55460
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/config/ca.crt
cert /etc/openvpn/config/DpRY200_1227.crt
key /etc/openvpn/config/DpRY200_1227.key
ns-cert-type server
verb 3
comp-lzo 
comp-noadapt
# ./b2c2 start
reading channels from file '/etc/channels.conf'
zapping to 1 'Raduga':
sat 0, frequency = 11671 MHz V, symbolrate 12000000, vpid = 0x1fff, apid = 
0x1fff sid = 0x0005
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 03 | signal d41d | snr 7f7d | ber 0000fff0 | unc 00000000 |
status 1f | signal e64b | snr 9dcb | ber 0000fff0 | unc 00000000 | FE_HAS_LOCK
DVB Network Interface Manager
Version 1.1.0-TVF (Build Tue May 02 06:50:29 2006)
Copyright (C) 2003, TV Files S.p.A
Device: /dev/dvb/adapter0/net0
Status: device dvb0_0 for pid 4151 created successfully.
# openvpn --config /etc/openvpn/config/client.ovpn
Fri Sep  1 11:55:57 2006 OpenVPN 2.0.5 i686-suse-linux [SSL] [LZO] [EPOLL] 
built on Apr 23 2006
Fri Sep  1 11:55:57 2006 IMPORTANT: OpenVPN's default port number is now 1194, 
based on an official port number assignment by IANA.  OpenVPN 2.0-beta16 and 
earlier used 5000 as the default port.
Fri Sep  1 11:55:57 2006 WARNING: file '/etc/openvpn/config/DpRY200_1227.key' 
is group or others accessible
Fri Sep  1 11:55:57 2006 LZO compression initialized
Fri Sep  1 11:55:57 2006 Control Channel MTU parms [ L:1574 D:138 EF:38 EB:0 
ET:0 EL:0 ]
Fri Sep  1 11:55:57 2006 Data Channel MTU parms [ L:1574 D:1450 EF:42 EB:135 
ET:32 EL:0 AF:3/1 ]
Fri Sep  1 11:55:57 2006 Local Options hash (VER=V4): 'd79ca330'
Fri Sep  1 11:55:57 2006 Expected Remote Options hash (VER=V4): 'f7df56b8'
Fri Sep  1 11:55:57 2006 UDPv4 link local: [undef]
Fri Sep  1 11:55:57 2006 UDPv4 link remote: 80.81.208.66:55460
Fri Sep  1 11:56:01 2006 TLS: Initial packet from 80.81.208.66:55460, 
sid=f88f3eb0 7352fda6
Fri Sep  1 11:56:07 2006 VERIFY OK: 
depth=1, /C=RU/ST=MW/L=MOSCOW/O=RadugaVPN/emailAddress=support@telecom-service.net
Fri Sep  1 11:56:07 2006 VERIFY OK: nsCertType=SERVER
Fri Sep  1 11:56:07 2006 VERIFY OK: 
depth=0, /C=RU/ST=MW/O=RadugaVPN/CN=RadugaVPN/emailAddress=support@telecom-service.net
Fri Sep  1 11:56:15 2006 Data Channel Encrypt: Cipher 'BF-CBC' initialized 
with 128 bit key
Fri Sep  1 11:56:15 2006 Data Channel Encrypt: Using 160 bit message hash 
'SHA1' for HMAC authentication
Fri Sep  1 11:56:15 2006 Data Channel Decrypt: Cipher 'BF-CBC' initialized 
with 128 bit key
Fri Sep  1 11:56:15 2006 Data Channel Decrypt: Using 160 bit message hash 
'SHA1' for HMAC authentication
Fri Sep  1 11:56:15 2006 Control Channel: TLSv1, cipher TLSv1/SSLv3 
DHE-RSA-AES256-SHA, 1024 bit RSA
Fri Sep  1 11:56:15 2006 [RadugaVPN] Peer Connection Initiated with 
80.81.208.66:55460
Fri Sep  1 11:56:16 2006 SENT CONTROL [RadugaVPN]: 'PUSH_REQUEST' (status=1)
Fri Sep  1 11:56:17 2006 PUSH: Received control message: 
'PUSH_REPLY,redirect-gateway,dhcp-option DNS 80.81.208.66,route-gateway 
10.250.35.1,ping 30,ping-restart 120,route 0.0.0.0 0.0.0.0 
10.250.35.1,dhcp-option DNS 80.81.208.34,ifconfig 10.250.35.67 255.255.255.0'
Fri Sep  1 11:56:17 2006 OPTIONS IMPORT: timers and/or timeouts modified
Fri Sep  1 11:56:17 2006 OPTIONS IMPORT: --ifconfig/up options modified
Fri Sep  1 11:56:17 2006 OPTIONS IMPORT: route options modified
Fri Sep  1 11:56:17 2006 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option 
options modified
Fri Sep  1 11:56:17 2006 TUN/TAP device tap0 opened
Fri Sep  1 11:56:17 2006 /sbin/ifconfig tap0 10.250.35.67 netmask 
255.255.255.0 mtu 1500 broadcast 10.250.35.255
Fri Sep  1 11:56:17 2006 /sbin/route add -net 80.81.208.66 netmask 
255.255.255.255 gw 192.168.254.254
Fri Sep  1 11:56:17 2006 /sbin/route del -net 0.0.0.0 netmask 0.0.0.0
Fri Sep  1 11:56:17 2006 /sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 
10.250.35.1
Fri Sep  1 11:56:17 2006 /sbin/route add -net 0.0.0.0 netmask 0.0.0.0 gw 
10.250.35.1
SIOCADDRT: Файл существует
Fri Sep  1 11:56:17 2006 ERROR: Linux route add command failed: shell command 
exited with error status: 7
Fri Sep  1 11:56:17 2006 Initialization Sequence Completed

Вот. В другом окне делаю:
# /sbin/route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
<...долго думая...>
80.81.208.66    192.168.254.254 255.255.255.255 UGH   0      0        0 modem1
192.168.254.254 *               255.255.255.255 UH    0      0        0 modem1
10.250.35.0     *               255.255.255.0   U     0      0        0 tap0
10.0.0.0        *               255.0.0.0       U     0      0        0 dvb0_0
loopback        *               255.0.0.0       U     0      0        0 lo
default         10.250.35.1     0.0.0.0         UG    0      0        0 tap0
# ifconfig
dvb0_0    Link encap:Ethernet  HWaddr 00:D0:D7:0C:87:A8
          inet addr:10.250.35.67  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::2d0:d7ff:fe0c:87a8/64 Scope:Link
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:4096  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Base address:0x1037

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:115 errors:0 dropped:0 overruns:0 frame:0
          TX packets:115 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:7529 (7.3 Kb)  TX bytes:7529 (7.3 Kb)

modem1    Link encap:Point-to-Point Protocol
          inet addr:10.252.125.44  P-t-P:192.168.254.254  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:77 errors:0 dropped:0 overruns:0 frame:0
          TX packets:159 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:7221 (7.0 Kb)  TX bytes:18351 (17.9 Kb)

tap0      Link encap:Ethernet  HWaddr 26:9A:46:41:04:16
          inet addr:10.250.35.67  Bcast:10.250.35.255  Mask:255.255.255.0
          inet6 addr: fe80::249a:46ff:fe41:416/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:336 (336.0 b)  TX bytes:6655 (6.4 Kb)

# ping ya.ru
<..долго думая..>
ping: unknown host ya.ru

Чего у меня не так? Непойму


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-09-01  8:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-01  8:05 [Comm] Спутниковый интернет. Ошибка - Cannot open TUN/TAP dev Raduga: No such file or directory (errno=2) anterior
2006-09-01  3:54 ` Nikolay A. Fetisov

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