Giter VIP home page Giter VIP logo

Comments (6)

cron2 avatar cron2 commented on May 27, 2024

from openvpn.

willyamcts avatar willyamcts commented on May 27, 2024

But proto udp6 not limit connection in IPv6 ?

With dual-socket can I have the same IPv4 and IPv6 instance? How do I create a dual-stack socket?

OS: Debian
OpenVPN version: 2.4

from openvpn.

cron2 avatar cron2 commented on May 27, 2024

from openvpn.

willyamcts avatar willyamcts commented on May 27, 2024

Right, using proto udp6 by example without directive local the server listen up in " :: " only.

The use of local is valid only once and as defined by udp6 an IPv4 in local is not accepted, so far so good, it's expected. IPv4 and IPv6 traffic between the ends works, but I want an instance on the server that allows the client to connect to my IPv4 or my IPv6 explicitly in directive remote ...

from openvpn.

cron2 avatar cron2 commented on May 27, 2024

from openvpn.

willyamcts avatar willyamcts commented on May 27, 2024

If you want the server side to explicitly bind to a specific IPv4 or
IPv6 address, then you need to run two instances today.

Normally this is only needed if you have multiple IPv4 addresses, and
want OpenVPN on only one of them - but this is a known shortcoming
(you can not have "I have 3 IPv4 addresses and want OpenVPN only to
listen on 2 of them" either) - as soon as you put local in the config,
it's "one address, one protocol" only.

Understood

[ .... ] What is in the client config does not need to match the "local" part of the server
config (unless you use old-style --secret without --float).

In client is using float conf

On FreeBSD, you can see "46" in the first column:

FreeBSD$ netstat -an |grep 51194
tcp46      0      0 *.51194                *.*                    LISTEN
udp46      0      0 *.51194                *.*

but Linux is not showing it

Linux$  ss -an |grep 51194
udp     UNCONN   0        0                                                   *:51194                                                 *:*
tcp     LISTEN   0        32                                                  *:51194                                                 *:*

In my case, using proto udp6 in server without local, with IPv4 and IPv6 settings, i have output ss -an | grep 1194:

udp   UNCONN    0      0                                    *:1194                         *:*

In netstat -anp | grep 1194

udp6       0      0       :::1194                 :::*                                11210/openvpn

In client:

proto udp
remote IPv4
remote IPv6

Really in netstat and ss appears to listen only on IPv6.
Now, with the confs above my client connect in both the protocols, very good. It was what I needed.

How is this possible? is it the socket management that allows this?

Very thanks by explanation @cron2

from openvpn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.