Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenVPN i brak pliku openvpn.conf
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish)
View previous topic :: View next topic  
Author Message
Wielebny
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2006
Posts: 142
Location: Bydgoszcz

PostPosted: Mon Oct 27, 2008 4:44 pm    Post subject: OpenVPN i brak pliku openvpn.conf Reply with quote

Chciałem sobie postawić openvpn na gentoo ale zauważyłem iż nie ma pliku openvpn.conf ani w /etc ani w /etc/openvpn zaś jak to jest w innych dystro nie ma katalogu /etc/sysconfig .
I przy próbie startu programu wywala mi błąd:
Code:
Vaio_tux wielebny # /etc/init.d/openvpn start
 * Caching service dependencies ...
 *  Can't find service 'net.wlan0' needed by 'hostapd';  continuing...       [ ok ]
 * Starting openvpn ...
grep: /etc/openvpn/openvpn.conf: Nie ma takiego pliku ani katalogu
grep: /etc/openvpn/openvpn.conf: Nie ma takiego pliku ani katalogu
grep: /etc/openvpn/openvpn.conf: Nie ma takiego pliku ani katalogu
grep: /etc/openvpn/openvpn.conf: Nie ma takiego pliku ani katalogu
Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/openvpn.conf
Use --help for more information.
 * Check your logs to see why startup failed     

Gdzie się konfiguruje/rejestruje tunele w opnevpn Gentoo?? Plik z konfiguracją tunelu już mam napisany.
_________________
Gentoo na razie mnie pokonuje ale walcze
Back to top
View user's profile Send private message
no4b
Bodhisattva
Bodhisattva


Joined: 18 Jan 2004
Posts: 774
Location: Tarnów, Poland

PostPosted: Mon Oct 27, 2008 7:21 pm    Post subject: Reply with quote

Quote:
Gdzie się konfiguruje/rejestruje tunele w opnevpn Gentoo?? Plik z konfiguracją tunelu już mam napisany.


Skoro masz konfigurację, to podlinkuj/skopiuj ją do /etc/openvpn/openvpn.conf...
_________________
GTK2/GNOME - The weakest link!
Back to top
View user's profile Send private message
gall
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2007
Posts: 142
Location: /home/gall

PostPosted: Mon Oct 27, 2008 9:07 pm    Post subject: Reply with quote

W OpenVPN'e nigdy nie ma gotowej konfiguracji. Przeglądnij:
http://openvpn.net/index.php/documentation/howto.html
i zrób swój. Najlepiej na certyfikatach. W razie wątpliwości napisz z czym masz problem.

Powodzenia.
_________________
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep
Back to top
View user's profile Send private message
Wielebny
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2006
Posts: 142
Location: Bydgoszcz

PostPosted: Tue Oct 28, 2008 11:21 am    Post subject: Reply with quote

Doczytałem informacje po kompilacji opnenvpn:
Code:
 * To create more VPNs, simply create a new .conf file for it and
 * then create a symlink to the openvpn init script from a link called
 * openvpn.newconfname - like so
 * cd /etc/openvpn
 * nano foo.conf
 * cd /etc/init.d
 * ln -s openvpn openvpn.foo

Co uczyniłem ale teraz brakuje modułu którego moje jądro nie obsługuje:
Code:
Vaio_tux init.d # /etc/init.d/openvpn start
 * Starting openvpn ...
FATAL: Module tun not found.
 * TUN/TAP support is not available in this kernel

Znów jestem w kropce 8O
_________________
Gentoo na razie mnie pokonuje ale walcze
Back to top
View user's profile Send private message
13Homer
Guru
Guru


Joined: 12 Jul 2005
Posts: 461

PostPosted: Tue Oct 28, 2008 3:51 pm    Post subject: Reply with quote

Wielebny wrote:
Znów jestem w kropce 8O

Nie masz dostępnego tego modułu w jądrze, czy nie potrafisz go wkompilować?
U mnie w 2.6.25.8 jest dostępny.
_________________
Lenovo ThinkPad R61 / C2D@2.6.24 / nVidia Quatro NVS 140M / 2 GB RAM
Back to top
View user's profile Send private message
gall
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2007
Posts: 142
Location: /home/gall

PostPosted: Tue Oct 28, 2008 4:14 pm    Post subject: Reply with quote

Symbol: TUN [=y]
│ Prompt: Universal TUN/TAP device driver support
│ Defined at drivers/net/Kconfig:112
│ Depends on: NETDEVICES
│ Location:
│ -> Device Drivers
│ -> Network device support (NETDEVICES [=y])
│ Selects: CRC32


czyli

Device Drivers --->
Network device support--->
Universal TUN/TAP device driver support
_________________
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep
Back to top
View user's profile Send private message
Wielebny
Tux's lil' helper
Tux's lil' helper


Joined: 12 Nov 2006
Posts: 142
Location: Bydgoszcz

PostPosted: Tue Oct 28, 2008 5:04 pm    Post subject: Reply with quote

Właśnie to też znalazłem :D :
Code:
Device Drivers  --->
  Network device support  --->
    <M>   Universal TUN/TAP device driver support


Ale konfiguracja bez jakich kolwiek zabezpieczeń :
Code:
proto udp
dev tun
ifconfig 192.168.1.200 192.168.1.201
port 5000
tun-mtu 1400
comp-lzo
ping 15
verb 3

I tak nie startuje :
Code:
Vaio_tux openvpn # /etc/init.d/openvpn start
 * Starting openvpn ...
 * Check your logs to see why startup failed                                                                    [ !! ]


Najdziwniejsze jest to iż na identycznym pliku z tunelem na PLD działa :?
Logów nie moge znaleźć -> szukałem w /var/log

Orientujecie się czy jest możliwość aby serwer postawiony na OPENVPN przyjmował połączenia od klienta windowsowego a nie openvpn for windows?
_________________
Gentoo na razie mnie pokonuje ale walcze
Back to top
View user's profile Send private message
gall
Tux's lil' helper
Tux's lil' helper


Joined: 13 Nov 2007
Posts: 142
Location: /home/gall

PostPosted: Tue Oct 28, 2008 6:32 pm    Post subject: Reply with quote

To pomocy . . .


tls-server
dev tun
port NUMER_PORTU
proto udp
tun-mtu 1500
tun-mtu-extra 32
fragment 1000
client-to-client
server ADRES_SIECI MASKA_SIECI
mssfix 1000
keepalive 10 60
resolv-retry 86400
comp-lzo
dh dh1024.pem
client-config-dir ccd
ca cacert.pem
cert serwercert.pem
key serwerkey.pem
verb 5
mute 10
crl-verify crl.pem
status openvpn-status.log 5
log-append openvpn.log


Powodzenia.
_________________
#!/bin/ssh
#The Unix Guru's View of Sex
unzip ; strip ; touch ; grep ; finger ; mount ; fsck ; more ; yes ; umount ; sleep
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum