Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
qrde, czy aż tak ciężko zobaczyć w defaultowy config. route powinno być w cudzysłowach
[b]push "route 192.168.1.0 255.255.255.0"[/b]
Ostatnio edytowany przez Nicram (2011-02-10 11:56:03)
Offline
zrobiłem w cudzysłowach i dalej nie działa
z klienta openvpn na windzie:
1:41:10 2011 OpenVPN 2.1.4 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Nov 8 2010 Thu Feb 10 11:41:10 2011 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info. Thu Feb 10 11:41:10 2011 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables Thu Feb 10 11:41:10 2011 LZO compression initialized Thu Feb 10 11:41:10 2011 Control Channel MTU parms [ L:1544 D:140 EF:40 EB:0 ET:0 EL:0 ] Thu Feb 10 11:41:10 2011 Socket Buffers: R=[8192->8192] S=[8192->8192] Thu Feb 10 11:41:10 2011 Data Channel MTU parms [ L:1544 D:1450 EF:44 EB:135 ET:0 EL:0 AF:3/1 ] Thu Feb 10 11:41:10 2011 Local Options hash (VER=V4): '69109d17' Thu Feb 10 11:41:10 2011 Expected Remote Options hash (VER=V4): 'c0103fa8' Thu Feb 10 11:41:10 2011 Attempting to establish TCP connection with XX.XXX.XXX.XXX:1194 Thu Feb 10 11:41:10 2011 TCP connection established with XX.XXX.XXX.XXX:1194 Thu Feb 10 11:41:10 2011 TCPv4_CLIENT link local: [undef] Thu Feb 10 11:41:10 2011 TCPv4_CLIENT link remote: XX.XXX.XXX.XXX:1194 Thu Feb 10 11:41:10 2011 TLS: Initial packet from XX.XXX.XXX.XXX:1194, sid=a1d126ca 60ad1d2c Thu Feb 10 11:41:11 2011 VERIFY OK: depth=1, /C=PL/ST=KP/L=BY/O=OpenVPN/CN=foo-server-ca/emailAddress=mail@mail.pll Thu Feb 10 11:41:11 2011 VERIFY OK: depth=0, /C=PL/ST=KP/L=BY/O=OpenVPN/CN=server/emailAddress=mail@mail.pl Thu Feb 10 11:41:13 2011 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key Thu Feb 10 11:41:13 2011 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Thu Feb 10 11:41:13 2011 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key Thu Feb 10 11:41:13 2011 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication Thu Feb 10 11:41:13 2011 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA Thu Feb 10 11:41:13 2011 [server] Peer Connection Initiated with XX.XXX.XXX.XXX:1194 Thu Feb 10 11:41:15 2011 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1) Thu Feb 10 11:41:16 2011 PUSH: Received control message: 'PUSH_REPLY,route 192.168.1.0 255.255.255.0,route 172.16.0.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 172.16.0.6 172.16.0.5' Thu Feb 10 11:41:16 2011 OPTIONS IMPORT: timers and/or timeouts modified Thu Feb 10 11:41:16 2011 OPTIONS IMPORT: --ifconfig/up options modified Thu Feb 10 11:41:16 2011 OPTIONS IMPORT: route options modified Thu Feb 10 11:41:16 2011 ROUTE default_gateway=192.168.1.1 Thu Feb 10 11:41:16 2011 TAP-WIN32 device [Połączenie lokalne 2] opened: \\.\Global\{AE817E0E-CBDB-4811-B5AA-5416603E7147}.tap Thu Feb 10 11:41:16 2011 TAP-Win32 Driver Version 9.7 Thu Feb 10 11:41:16 2011 TAP-Win32 MTU=1500 Thu Feb 10 11:41:16 2011 Notified TAP-Win32 driver to set a DHCP IP/netmask of 172.16.0.6/255.255.255.252 on interface {AE817E0E-CBDB-4811-B5AA-5416603E7147} [DHCP-serv: 172.16.0.5, lease-time: 31536000] Thu Feb 10 11:41:16 2011 NOTE: FlushIpNetTable failed on interface [15] {AE817E0E-CBDB-4811-B5AA-5416603E7147} (status=5) : Odmowa dostępu. Thu Feb 10 11:41:21 2011 TEST ROUTES: 0/0 succeeded len=2 ret=0 a=0 u/d=down Thu Feb 10 11:41:21 2011 Route: Waiting for TUN/TAP interface to come up... Thu Feb 10 11:41:26 2011 TEST ROUTES: 2/2 succeeded len=2 ret=1 a=0 u/d=up Thu Feb 10 11:41:26 2011 WARNING: potential route subnet conflict between local LAN [192.168.1.0/255.255.255.0] and remote VPN [192.168.1.0/255.255.255.0] Thu Feb 10 11:41:26 2011 C:\WINDOWS\system32\route.exe ADD 192.168.1.0 MASK 255.255.255.0 172.16.0.5 Thu Feb 10 11:41:26 2011 ROUTE: route addition failed using CreateIpForwardEntry: Odmowa dostępu. [status=5 if_index=15] Thu Feb 10 11:41:26 2011 Route addition via IPAPI failed [adaptive] Thu Feb 10 11:41:26 2011 Route addition fallback to route.exe ˝Ądana operacja wymaga podniesienia uprawnieä. Thu Feb 10 11:41:26 2011 ERROR: Windows route add command failed [adaptive]: returned error code 1 Thu Feb 10 11:41:26 2011 C:\WINDOWS\system32\route.exe ADD 172.16.0.0 MASK 255.255.255.0 172.16.0.5 Thu Feb 10 11:41:26 2011 ROUTE: route addition failed using CreateIpForwardEntry: Odmowa dostępu. [status=5 if_index=15] Thu Feb 10 11:41:26 2011 Route addition via IPAPI failed [adaptive] Thu Feb 10 11:41:26 2011 Route addition fallback to route.exe ˝Ądana operacja wymaga podniesienia uprawnieä. Thu Feb 10 11:41:26 2011 ERROR: Windows route add command failed [adaptive]: returned error code 1 Thu Feb 10 11:41:26 2011 Initialization Sequence Completed
Ostatnio edytowany przez tomas0801 (2011-02-10 12:02:02)
Offline
[quote=tomas0801]
Żądana operacja wymaga podniesienia uprawnień.
[/quote]
o matko. podejrzewam, że tym windowsem jest win7.
uruchom openvpna "OpenVPN GUI" z prawami administratora.
w viscie pomaga do klienta dodac opcje:
route-method exe route-delay 2 script-security 2 system
Ostatnio edytowany przez Nicram (2011-02-10 12:38:11)
Offline
dokładnie win7, spróbuję
Offline
Przeczytaj:
http://mediawiki.ilab.pl/images/6/60/Bsi_11_lab.pdf
Proponuje ci najpierw zestawić połączenie z wykorzystaniem mechanizmu współdzielonego klucza jest ono proste do zrobienia a zobaczysz jak to działa. Jedyny minus takiego połączenia to połączenie 1 do 1 czyli w jednym czasie tylko jeden klient. Da się to ominąć tak max 5 klientów w jednym czasie:) ale nie tędy droga ale przeczytaj a jutro spróbuję Ci pomuc.
Ostatnio edytowany przez qlemik (2011-02-10 18:26:48)
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00088 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='18.188.140.232' WHERE u.id=1 |
0.00055 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '18.188.140.232', 1732893072) |
0.00040 | SELECT * FROM punbb_online WHERE logged<1732892772 |
0.00037 | SELECT topic_id FROM punbb_posts WHERE id=165039 |
0.00008 | SELECT id FROM punbb_posts WHERE topic_id=18231 ORDER BY posted |
0.00049 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=18231 AND t.moved_to IS NULL |
0.00006 | SELECT search_for, replace_with FROM punbb_censoring |
0.00104 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=18231 ORDER BY p.id LIMIT 25,25 |
0.00080 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=18231 |
Total query time: 0.00482 s |