New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
Closed
gulbuhar opened this issue
Apr 24, 2015
· 10 comments
Comments
Im getting this on my 64bit gentoo box, any idea how to solve it?
I also get the same thing even with vpncmd running as root
~# vpnclient start
~$vpncmd
or
~# vpncmd
Select 1, 2 or 3: 2
Specify the host name or IP address of the computer that the destination VPN Client is operating on.
If nothing is input and Enter is pressed, connection will be made to localhost (this computer).
Hostname of IP Address of Destination:Connected to VPN Client «localhost».
VPN Client>remoteenable
RemoteEnable command — Allow Remote Management of VPN Client Service
The command completed successfully.VPN Client>niccreate
NicCreate command — Create New Virtual Network Adapter
Virtual Network Adapter Name: testError occurred. (Error code: 31)
Installation of the Virtual Network Adapter device driver failed.VPN Client>
i just find the solution
TUN/TAP needs to be enabled to create Virtual Network Adapter to do so
regenerate the kernel with
Device Drivers —>
Network device support —>
[*] Universal TUN/TAP device driver support
gulbuhar
changed the title
Error occurred. (Error code: 31)
[Solved]Error occurred. (Error code: 31)
Apr 24, 2015
gulbuhar
changed the title
[Solved]Error occurred. (Error code: 31)
[Solved] Error occurred. (Error code: 31)
Apr 24, 2015
excuse me, how do you solve this problem finally? I met this problem before, but I haven’t found a solution yet.
@Eric7Coding runing sudo ./vpnclient start before ./vpncmd worked for me
@Eric7Coding depends on your Linux distro, but as @gulbuhar mentioned, you might need to enable tun/tap in the kernel and recompile and install the kernel
For what it’s worth, I ran into this issue using Ubuntu 16.04 LTS and solved it via…
sudo modprobe -v tunnel4
sudo modprobe -v ip_tunnel
sudo /usr/local/vpnclient/vpnclient stop
sudo /usr/local/vpnclient/vpnclient start
/usr/local/vpnclient/vpncmd
NOTE: this change is only temporary and after a reboot these kernel modules will be removed again. You can auto-load them on every reboot by adding them permanently to /etc/modules
via:
echo -e "tunnel4nip_tunnel" | sudo tee -a /etc/modules
For someone using WSL (Windows Subsystem for Linux), this does not entirely work. What could be some other workaround? Creating a virtual NIC in windows and somehow mapping it into the VPN client?
Sorry, I can’t help you out here. The way I see it you have two options here:
- Use the Windows Client
- Run Linux in a VM (on VirtualBox, Hyper-V, or the like)
Yeah, those were my thoughts too. Thanks for the input!
The Ubuntu 16.04 solution did not work for me on Ubuntu 18.04. Did anyone manage to run the vpnclient
on Bionic?
The Ubuntu 16.04 solution did not work for me on Ubuntu 18.04. Did anyone manage to run the
vpnclient
on Bionic?
Ubuntu 20.04 here, everything is working.
Make sure to use sudo, i.e. sudo ./vpnclient start
.
(Didn’t need to modprobe anything).
modprobe tun
I’m getting connection established to server, but virtual network adapter not getting IP address from server:
VPN Client>niclist
NicList command — Get List of Virtual Network Adapters
Item |Value
—————————-+————————————
Virtual Network Adapter Name|VPN
Status |Enabled
MAC Address |5E74771016A0
Version |Version 4.27 Build 9668 (English)
The command completed successfully.
VPN Client>accountconnect
AccountConnect command — Start Connection to VPN Server using VPN Connection Setting
Name of VPN Connection Setting: Test
Error occurred. (Error code: 35)
The specified VPN Connection Setting is currently connected.
VPN Client>exit
root@DD-WRT:~# ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1): 56 data bytes
^C
— 192.168.30.1 ping statistics —
3 packets transmitted, 0 packets received, 100% packet loss
root@DD-WRT:~# ifconfig
br0 Link encap:Ethernet HWaddr C8:D7:19:3A:09:FD
inet addr:192.168.40.1 Bcast:192.168.40.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:136277 errors:0 dropped:2713 overruns:0 frame:0
TX packets:128437 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29197245 (27.8 MiB) TX bytes:70507228 (67.2 MiB)
br0:0 Link encap:Ethernet HWaddr C8:D7:19:3A:09:FD
inet addr:169.254.255.1 Bcast:169.254.255.255 Mask:255.255.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
eth0 Link encap:Ethernet HWaddr C8:D7:19:3A:09:FB
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:274216 errors:0 dropped:0 overruns:0 frame:0
TX packets:254044 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:101156076 (96.4 MiB) TX bytes:103494126 (98.6 MiB)
Interrupt:179 Base address:0x4000
eth1 Link encap:Ethernet HWaddr C8:D7:19:3A:09:FD
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:3540
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)
Interrupt:163
eth2 Link encap:Ethernet HWaddr C8:D7:19:3A:09:FF
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:51269
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)
Interrupt:169
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MULTICAST MTU:65536 Metric:1
RX packets:16319 errors:0 dropped:0 overruns:0 frame:0
TX packets:16319 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:2333592 (2.2 MiB) TX bytes:2333592 (2.2 MiB)
vlan1 Link encap:Ethernet HWaddr C8:D7:19:3A:09:FB
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:135587 errors:0 dropped:9 overruns:0 frame:0
TX packets:128437 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:29074682 (27.7 MiB) TX bytes:70507228 (67.2 MiB)
vlan2 Link encap:Ethernet HWaddr C8:D7:19:3A:09:FC
inet addr:192.168.1.106 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:138629 errors:0 dropped:1377 overruns:0 frame:0
TX packets:125607 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:66048642 (62.9 MiB) TX bytes:31970722 (30.4 MiB)
vpn_vpn Link encap:Ethernet HWaddr 5E:74:77:10:16:A0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4738 errors:0 dropped:1304 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:526791 (514.4 KiB) TX bytes:0 (0.0 B)
Network Adapter Code 31 error in Device Manager may occur in a Windows based computer (Windows 10, 8, 7 or Vista) if the appropriate driver for the Network (Ethernet/LAN) controller is not installed properly or is corrupted. The full description of the «code 31» error in «Device status» information box is:
«This device is not working properly because Windows cannot load the drivers required for this device. (Code 31)«.
When the Code 31 error occurs in one (or more) device(s), then the corresponding device appears with a yellow exclamation mark sign, next to it, in Device Manager.
In several cases the Ethernet «Code 31» error, can occur despite the fact that the correct driver of the Ethernet controller is already installed. At these cases you have to perform some additional steps to resolve the error code 31 in your Network Adapter.
This tutorial contains detailed steps and instructions on how to resolve Ethernet Controller Code 31 error in Device Manager.
How to Fix the Network Controller Code 31 error in Device Manager.
Solution 1. Install the latest driver for Network Controller to fix the Network Adapter Code 31 error.
Step 1. Download the latest Network Adapter Drivers.
1. From another computer, navigate to your computer’s manufacturer support site (if you own a branded PC or laptop) or to the motherboard’s support site (for onboard network adapters) and download the latest driver version for the Network Controller. After the download, copy the driver to a USB drive and then transfer the downloaded driver to the problematic computer.
Step 2. Install Ethernet Adapter Drivers.
1. Follow the manufacturer’s instructions to install the downloaded Ethernet adapter driver on your computer.
2. Check if your Ethernet Controller is working properly. If Code 31 error is still displayed in Device Manager, then proceed to Solution 2.
Solution 2. Remove Invalid Registry keys & re-install LAN Adapter drivers to resolve the Code 31 error in Network Adapter.
Step 1. Open Registry Editor & Backup Registry.
Open Registry editor. To do that:
1. Simultaneously press the “Win” + “R” keys to load the Run dialog box.
2. Type regedit and press Enter to open Registry Editor.
IMPORTANT: Before you continue, first take a backup of your registry. To do that:
- From the main menu, go to File & select Export.
Specify a destination location (e.g. your Desktop), give a filename to the exported registry file (e.g. “RegistryUntouched”), select at Export range: All and press Save.
Step 2. Delete invalid registry keys.
1. After you have backed up your registry, navigate (from the left pane) to this key:
- HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetwork
2. Now look at the right pane to find and delete the following (REG_BINARY) value:
- config
(HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlNetworkConfig)
3. Close Registry Editor.
Step 2. Uninstall the Network Adapter from Device Manager.
1. Open Device Manager. To do that:
- Press “Windows” + “R” keys to load the Run dialog box.
- Type “devmgmt.msc” and press Enter.
2. Expand Network Adapters.
3. Right-Click at the yellow-marked Ethernet Adapter and select Uninstall. *
* Note: If asked, do not remove the driver files from the system. It is not necessary.
4. Restart you computer and let Windows install the Ethernet drivers automatically. *
* Note: If Windows cannot find the appropriate driver for the Ethernet Controller or if you have deleted the driver during uninstall then you have to download and install the latest driver version for your Network Adapter from the manufacturer’s support site.
That’s it!
If this article was useful for you, please consider supporting us by making a donation. Even $1 can a make a huge difference for us in our effort to continue to help others while keeping this site free:
If you want to stay constantly protected from malware threats, existing and future ones, we recommend that you install Malwarebytes Anti-Malware PRO by clicking below (we
do earn a commision from sales generated from this link, but at no additional cost to you. We have experience with this software and we recommend it because it is helpful and useful):
Full household PC Protection — Protect up to 3 PCs with NEW Malwarebytes Anti-Malware Premium!
- Remove From My Forums
-
Question
-
Have an issue with one virtual server running Windows 2003 R2 (spk 2) after installation of 2008 spk 2 on the host. When trying to install a network adapter on the VM, the installation fails reporting a file missing. Viewing device manager reveals the adapter with the yellow exclamation symbol. The device status originally was Code 1, but after an attempted repair of integrated services its now at Code 31 «the device is not working properly because Windows cannot load the drivers required for this device».
If I try and install a legacy NIC it appears to be ok, but when the properties are opened no clients or protocols are listed. Attempting to add a protocol fails as none are available.
Has anyone any idea how to fix this issue?
Answers
-
You have created a VMbus layer mismatch by updating the host — and therefore updating the VMBus of the host, but not the corresponding Integration Components in the VM.
After applying any update to a host that affects Hyper-V — the Integrations Components within each VM will need to be updated.
Networking is simply the first layer (most sensative) that shows the symptom.This is why the Legacy Adapter is working — it is emulated and does not require integration witht he VMBus layer — it simply sits on top of it — it does not try to directly access it.
If the ICs won’t upgrade properly in the VM, then you will need to try uninstalling them, canceling the new device dialogs and re-installing the ICs.
Brian Ehlert
(hopefully you have found this useful)-
Proposed as answer by
Monday, December 21, 2009 8:07 AM
-
Marked as answer by
Vincent Hu
Wednesday, December 23, 2009 7:41 AM
-
Proposed as answer by
Модераторы: vadim64, terminus
Правила форума
Убедительная просьба юзать теги [cоde] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
-
LakBS
- проходил мимо
- Сообщения: 2
- Зарегистрирован: 2015-09-26 8:51:34
SoftEther VPN клиент для FreeBSD
Ребят уже не знаю, что делать, не могу создать виртуальный адаптер хоть стреляй((
VPN Client>niccreat
NicCreate command — Create New Virtual Network Adapter
Virtual Network Adapter Name: vpn
Error occurred. (Error code: 31)
Installation of the Virtual Network Adapter device driver failed.
VPN Client>
Просмотрел ихние форумы, фаирвол я не ставил, все делаю под рутом, под линусом вируалка адптера у шефа поставилась, а тут не хочет((
Tun/Tap подгружены
root@freebsd-router:~ # kldload if_tun
kldload: can’t load if_tun: module already loaded or in kernel
root@freebsd-router:~ # kldstat
Id Refs Address Size Name
1 3 0xc0400000 13ed800 kernel
2 1 0xc685a000 5000 if_tap.ko
Правда один с ядра грузится, второй я так понимаю отдельно.
Help
-
Хостинг HostFood.ru
Услуги хостинговой компании Host-Food.ru
Хостинг HostFood.ru
Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
-
Electronik
- капитан
- Сообщения: 1593
- Зарегистрирован: 2008-11-15 17:32:56
- Откуда: Минск
- Контактная информация:
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
Electronik » 2015-09-26 23:34:40
а что это такое и с чем его едят?
Предскажем будущее hw по логам и дампу, снимем сглаз и порчу с рута, поможем придумать пароль(С)
Блог
-
LakBSD
- проходил мимо
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
LakBSD » 2015-09-27 10:14:17
SoftEther VPN — продвинутый мультипротокольный VPN-сервер и клиент
Сетевые технологии*, Системное администрирование*
Как скоро я смогу вас заинтересовать, если скажу, что в этой статье речь пойдет о VPN-сервере, который может поднимать L2TP/IPsec, OpenVPN, MS-SSTP, L2TPv3, EtherIP-серверы, а также имеет свой собственный протокол «SSL-VPN», который неотличим от обычного HTTPS-трафика (чего не скажешь про OpenVPN handshake, например), может работать не только через TCP/UDP, но и через ICMP (подобно pingtunnel, hanstunnel) и DNS (подобно iodine), работает быстрее (по заверению разработчиков) текущих имплементаций, строит L2 и L3 туннели, имеет встроенный DHCP-сервер, поддерживает как kernel-mode, так и user-mode NAT, IPv6, шейпинг, QoS, кластеризацию, load balancing и fault tolerance, может быть запущен под Windows, Linux, Mac OS, FreeBSD и Solaris
http://habrahabr.ru/post/208782/
Мне к серверу надо подключится через VPN, а на нем как раз этот сервер и стоит((
-
Electronik
- капитан
- Сообщения: 1593
- Зарегистрирован: 2008-11-15 17:32:56
- Откуда: Минск
-
Контактная информация:
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
Electronik » 2015-09-27 11:50:46
Что у вас в
после попытки подключения?
в конфиге есть параметр отвечающий за уровень логирования?
Предскажем будущее hw по логам и дампу, снимем сглаз и порчу с рута, поможем придумать пароль(С)
Блог
-
LakBSD
- проходил мимо
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
LakBSD » 2015-09-27 15:20:25
Нет, я даже подключение создать не могу, все упирается в начало — создать виртуальный адаптер .а потом оно пишет что драйверов не находит ну или как то так.
А логи я везде перерыл, не нашел, в /var/log их нету, куда он их пишет, черт его знает, а без него никуда, т.к. на сервере такая муть стоит((
-
_ankor
- проходил мимо
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
_ankor » 2015-09-27 21:43:59
LakBSD писал(а):Нет, я даже подключение создать не могу, все упирается в начало — создать виртуальный адаптер .а потом оно пишет что драйверов не находит ну или как то так.
А логи я везде перерыл, не нашел, в /var/log их нету, куда он их пишет, черт его знает, а без него никуда, т.к. на сервере такая муть стоит((
Во FreeBSD не поддерживается работа клиента, всё ответы в мануале SoftEther.
-
guest
- проходил мимо
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
guest » 2015-09-28 8:47:00
_ankor писал(а):
LakBSD писал(а):Нет, я даже подключение создать не могу, все упирается в начало — создать виртуальный адаптер .а потом оно пишет что драйверов не находит ну или как то так.
А логи я везде перерыл, не нашел, в /var/log их нету, куда он их пишет, черт его знает, а без него никуда, т.к. на сервере такая муть стоит((
Во FreeBSD не поддерживается работа клиента, всё ответы в мануале SoftEther.
в OS/X якобы поддерживается, а значит tun/tap и в BSD должно работать, но про это лучше
спросить на форуме SoftEther.
-
LakBS
- проходил мимо
- Сообщения: 2
- Зарегистрирован: 2015-09-26 8:51:34
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
LakBS » 2015-09-28 10:29:19
guest писал(а):
_ankor писал(а):
LakBSD писал(а):Нет, я даже подключение создать не могу, все упирается в начало — создать виртуальный адаптер .а потом оно пишет что драйверов не находит ну или как то так.
А логи я везде перерыл, не нашел, в /var/log их нету, куда он их пишет, черт его знает, а без него никуда, т.к. на сервере такая муть стоит((
Во FreeBSD не поддерживается работа клиента, всё ответы в мануале SoftEther.
в OS/X якобы поддерживается, а значит tun/tap и в BSD должно работать, но про это лучше
спросить на форуме SoftEther.
А может быть проблема из-за того что tun грузится с ядра, а tap отдельно?
-
Анна Олеговна
- проходил мимо
- Сообщения: 5
- Зарегистрирован: 2015-10-15 16:02:57
- Откуда: Москва
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
Анна Олеговна » 2015-10-15 16:15:00
Здравствуйте))
Знаете, покупала vpn на этом сайте _https://finevpn.org.
Конечно, нет бесплатной тестировочной недели ,как в avast, но так ка мне самой трудно было б это сделать,то знающие специалисты без проблем помогли)
-
Alex Keda
- стреляли…
- Сообщения: 35413
- Зарегистрирован: 2004-10-18 14:25:19
- Откуда: Made in USSR
- Контактная информация:
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
Alex Keda » 2015-10-15 17:47:28
какие грамотные спамеры пошли ….
Убей их всех! Бог потом рассортирует…
-
nfspeed
- проходил мимо
- Сообщения: 1
- Зарегистрирован: 2016-01-27 15:04:17
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
nfspeed » 2016-01-27 15:15:35
Анна Олеговна писал(а):Здравствуйте))
Знаете, покупала vpn на этом сайте _https://finevpn.org.
Конечно, нет бесплатной тестировочной недели ,как в avast, но так ка мне самой трудно было б это сделать,то знающие специалисты без проблем помогли)
Пробовал купить у них VPN, так вот, никто ничего не помог. Так еще и денег с меня взяли больше положенного
-
xM
- ст. лейтенант
- Сообщения: 1316
- Зарегистрирован: 2009-01-15 23:57:41
- Откуда: Königsberg
- Контактная информация:
SoftEther VPN клиент для FreeBSD
Непрочитанное сообщение
xM » 2016-01-27 16:54:04
nfspeed писал(а): Пробовал купить у них VPN, так вот, никто ничего не помог
Не морочьте голову — пользуйтесь проверенным PureVPN. Тем более сейчас они за годовой абонемент ещё год бесплатно дают.
Это при 5 логинах и сотнях серверов по миру.
Сам под ними третий год всей семьёй.