Официальный форум СВД Встраиваемые Системы
19 Март, 2024, 14:36:43 *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.

Войти
 
 
 Сайт СВД ВС  Начало   Помощь Поиск Войти Регистрация  
Страниц: [1] 2 3   Вниз
  Печать  
Автор Тема: TAP driver for the QNX6  (Прочитано 754330 раз)
Олег Большаков
Легенда

Сообщений: 3140



« : 15 Декабрь, 2009, 13:51:59 »

TAP driver for the QNX6
(русская версия)

TAP is a virtual network driver. TAP (as in network tap) simulates an Ethernet device and it operates with layer 2 packets such as Ethernet frames. TAP is used to create a network bridge.

Packets sent by an operating system via a TAP device are delivered to a user-space program that attaches itself to the device. A user-space program may also pass packets into a TAP device. In this case TAP device delivers (or "injects") these packets to the network stack thus emulating their reception from an external source.

TAP is used for creating Virtual Private Networks (VPN), for exampe, VTun or OpenVPN, also as virtual network devices in virtual technologies. TAP driver is available for Linux, *BSD, Solaris, Windows and MAC OS X. Driver implementations in different OS platforms are compatible and allows for manage secured data transfer.

Supplemental information: VTun project, Wikipedia.

TAP driver for the QNX 6.4.1 was developed by CBD BC. Beta version of driver now availabe for download for all comers. We will glad to see any comments and suggestions about this driver.

TAP driver is a standard io-pkt driver. You can mount it with following command:

Код:
# mount -T io-pkt /lib/dll/devnp-qtap.so

After this you can find tap0 network interface and /dev/tap0 character device. Use ifconfig utility to configure TAP network interface:

Код:
# ifconfig tap0 10.1.0.1/24 up

Now driver is ready to work with software, VTun, for example. You can destroy network interface:

Код:
# ifconfig tap0 destroy

And the most interesting is that Qnet can working via TAP devices. Smiley

Links



« Последнее редактирование: 27 Апрель, 2012, 13:07:48 от Олег Большаков » Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #1 : 15 Декабрь, 2009, 14:10:28 »



VTun for QNX6

VTun is a networking application which can set up Virtual Tunnels over TCP/IP networks. It supports Internet Protocol (IP), Point-to-Point Protocol (PPP) and SLIP protocols. It works via TUN and TAP devices.

VTun creates a connection between two machines, over which it multiplexes all traffic. VTun connections are initiated via a TCP connection from the client to the server. The server then initiates a UDP connection to the client, if the UDP protocol is requested.

The software allows the creation of tunnels, for routing traffic in a manner similar to PPP, as well as a bridge-friendly ethertap connection.

VTun can works in the QNX6 via devnp-qtap.so driver.

Supplemental information: VTun home site, Wikipedia

Download

 - vtun-3.0.2-qnx641-bin.tar.bz2 - VTun 3.0.2 for QNX 6.4.1
 - vtun-3.0.2-qnx641-src.tar.bz2 - VTun 3.0.2 source for QNX6

Install:
Код:
# cd /
# tar jxf vtun-3.0.2-qnx641-bin.tar.bz2

VTun configuration file placed in /etc/vtund.conf after installation. It is well documented. Also you can find information about configuring and using VTun in the net. Smiley VTun. Link your home and office securely with a virtual private network., for exampe.
« Последнее редактирование: 14 Январь, 2010, 13:48:09 от Олег Большаков » Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #2 : 15 Январь, 2010, 12:00:37 »

The new version 20100115 TAP driver for QNX6:

 - Added devctl() handler.
 - Added non-blocking mode.

The download link is in the first message of this topic.
Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #3 : 15 Январь, 2010, 13:52:43 »



OpenVPN for QNX6

OpenVPN is a free and open source virtual private network (VPN) program for creating point-to-point or server-to-multiclient encrypted tunnels between host computers. It is capable of establishing direct links between computers across network address translators (NATs) and firewalls. It was written by James Yonan and is published under the GNU General Public License (GPL).

OpenVPN uses the OpenSSL library to provide encryption of both the data and control channels. It lets OpenSSL do all the encryption and authentication work, allowing OpenVPN to use all the ciphers available in the OpenSSL package. It can also use the HMAC packet authentication feature to add an additional layer of security to the connection (referred to as an "HMAC Firewall" by the creator). It can also use hardware acceleration to get better encryption performance.

Features of OpenVPN

 - Tunnel any IP subnetwork or virtual ethernet adapter over a single UDP or TCP port.
 - Configure a scalable, load-balanced VPN server farm using one or more machines which can handle thousands of dynamic connections from incoming VPN clients.
 - Use all of the encryption, authentication, and certification features of the OpenSSL library to protect your private network traffic as it transits the internet.
 - Use real-time adaptive link compression and traffic-shaping to manage link bandwidth utilization.
 - Tunnel networks over NAT.
 - Create secure ethernet bridges using virtual tap devices.

OpenVPN can works in the QNX6 via devnp-qtap.so driver.

Supplemental information: OpenVPN home site, Wikipedia

Downoad

 - openvpn-2.1.1-qnx641-bin.tar.bz2 - OpenVPN 2.1.1 for QNX 6.4.1 x86
 - openvpn-2.1.1-qnx641-ppcbe.tar.bz2 - OpenVPN 2.1.1 for QNX 6.4.1 ppcbe
 - openvpn-2.1.1-qnx641-src.tar.bz2 - OpenVPN 2.1.1 source for QNX6

Install:
Код:
# cd /
# tar jxf openvpn-2.1.1-qnx641-bin.tar.bz2

After installing the software documentation for OpenVPN is located in the directory /usr/share/doc/openvpn, sample configuration files - /usr/share/doc/openvpn/sample-config-files.
« Последнее редактирование: 02 Сентябрь, 2014, 09:48:08 от Олег Большаков » Записан
benny_huang
Интересующийся

Сообщений: 1


« Ответ #4 : 03 Февраль, 2010, 09:10:56 »

thank you
Записан
joubertf
Интересующийся

Сообщений: 2


« Ответ #5 : 28 Июль, 2011, 16:51:01 »

thank you, hopefully I can get OpenVPN up and running
Записан
joubertf
Интересующийся

Сообщений: 2


« Ответ #6 : 28 Июль, 2011, 17:01:54 »

Eureka! Success!
Записан
manu
Интересующийся

Сообщений: 3


« Ответ #7 : 06 Сентябрь, 2011, 16:41:50 »

Hello!

I am interested in the TAP driver for QNX6. Sadly, the tarball only contains the x86 binary. Any chance you could release the source code? I need different processor architectures...

The only other way is, I have to write the TAP driver myself, which is possible but unfortunate because the work has already been done...
Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #8 : 08 Сентябрь, 2011, 13:00:54 »

Hi Manuel,

Presently we're not planning to post the source of the TAP driver. But we can build binary for required platforms.

Just in case, I've just added link to an ARM little-endian version that has been posted in Russian version of this topic.
Записан
manu
Интересующийся

Сообщений: 3


« Ответ #9 : 08 Сентябрь, 2011, 15:27:42 »

Thank you!

I would of course prefer the source, but the arm-le binary already helps. A ppc-be version would also be nice.

What about the licence? Can we use the driver for a commercial product?
Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #10 : 08 Сентябрь, 2011, 19:10:48 »

You are welcome. Smiley

We'll make a devnp-qtap build for PPC BE. Stay tuned. Smiley

Please, feel free to think about license for our TAP driver as a public domain. You can freely use this binary driver in your commercial product.
Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #11 : 12 Сентябрь, 2011, 11:49:37 »

Hi Manuel,

I've just added link to the ppc-be build. Please, find it in the first message of this topic. Keep in mind that this build is not tested.
Записан
manu
Интересующийся

Сообщений: 3


« Ответ #12 : 12 Сентябрь, 2011, 13:37:18 »

Thanks again! I'll let you know if the driver works...
Записан
m0da
Интересующийся

Сообщений: 1


« Ответ #13 : 28 Сентябрь, 2011, 17:18:45 »

Thank you for your work!

Is there any way of specifying your own MAC address for the TAP driver? Possibly upon loading the driver?

Thanks again.
Записан
Олег Большаков
Легенда

Сообщений: 3140



« Ответ #14 : 28 Сентябрь, 2011, 22:11:44 »

I'll add mac option and build new version this week.
Записан
Страниц: [1] 2 3   Вверх
  Печать  
 
Перейти в:  

Powered by MySQL Powered by PHP © 2002-2020 СВД Встраиваемые Системы.
При использовании материалов сайта ссылка на forum.kpda.ru обязательна.

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines | © Aiwan. Kolobok smiles | Sitemap
Valid XHTML 1.0! Valid CSS!
Сайт СВД ВС

В последний раз google посещал эту страницу 12 Март, 2024, 09:41:24