[Openvpn-devel] Fixing "passtos" on !Linux

2012-12-17 Thread Jeremie Le Hen
Hi! On non-Linux systems (that is I checked on FreeBSD, NetBSD, OpenBSD, DragonflyBSD, Darwin, Solaris and IllumOS), setsockopt(2) with the IP_TOS option expects a pointer to a int rather than a char. Therefore this doesn't work on little-endian systems (x86 is the main victim). The problem is w

Re: [Openvpn-devel] multiple OpenVPN instances on a single tun

2012-12-17 Thread Gert Doering
Hi, On Mon, Dec 17, 2012 at 06:01:11AM -0800, ehsan enayati wrote: > Thanks for your replies. I just checked OpenVPN access server > and saw that in "server network setting" and in protocol selection > you can select Multi-Daemon mode. I thinks that's what exactly I > need. Is it implemented via t

Re: [Openvpn-devel] multiple OpenVPN instances on a single tun

2012-12-17 Thread ehsan enayati
Thanks for your replies. I just checked OpenVPN access server and saw that in "server network setting" and in protocol selection you can select Multi-Daemon mode. I thinks that's what exactly I need. Is it implemented via tun + routing? From: David Sommerseth

Re: [Openvpn-devel] multiple OpenVPN instances on a single tun

2012-12-17 Thread Gert Doering
Hi, On Mon, Dec 17, 2012 at 02:14:33AM -0800, ehsan enayati wrote: > Thanks for your quick reply, > I'm running multiple OVPN instances on different subnets but the traffic > isn't the same on all of these instances. some of them tolerate huge amount > of traffic, hence I want to assign more tha

Re: [Openvpn-devel] multiple OpenVPN instances on a single tun

2012-12-17 Thread Gert Doering
Hi, On Mon, Dec 17, 2012 at 12:31:33AM -0800, ehsan enayati wrote: > I need to run multiple instances of OpenVPN server on just one tun device > driver (say tun0) all on same subnets. I tried editing the open_tun function > in tun.c file, first instance goes well and creates tun0 but when the se

Re: [Openvpn-devel] [PATCH] Fix option inconsistency warnings about "proto" and "tun-ipv6"

2012-12-17 Thread David Sommerseth
On 16/12/12 22:15, Gert Doering wrote: > "tun-ipv6" is only sent in option string if running in point-to-point > mode (= not --server and not --client or --pull), because in those > scenarios it's usually pushed by the server, and the client does not > yet have it when comparing options -> needless

Re: [Openvpn-devel] [PATCH 10/10] Implement dual stack client support for OpenVPN

2012-12-17 Thread Samuli Seppänen
> Hi, > > On Sat, Dec 15, 2012 at 11:23:52AM +0100, Tore Anderson wrote: >> * Arne Schwabe >> >>> This patch contains a number of changes. I did not further spit this >>> since some changes make only sense being changed together. > [..] >> ACK, I tested several different fail-over scenarios and al

Re: [Openvpn-devel] multiple OpenVPN instances on a single tun

2012-12-17 Thread David Sommerseth
On 17/12/12 09:31, ehsan enayati wrote: > Hi, > I need to run multiple instances of OpenVPN server on just one tun > device driver (say tun0) all on same subnets. I tried editing the > open_tun function in tun.c file, first instance goes well and creates > tun0 but when the second one comes along i

[Openvpn-devel] multiple OpenVPN instances on a single tun

2012-12-17 Thread ehsan enayati
Hi, I need to run multiple instances of OpenVPN server on just one tun device driver (say tun0) all on same subnets. I tried editing the open_tun function in tun.c file, first instance goes well and creates tun0 but when the second one comes along it cannot use tun0 and I get the error "ioctl(