Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Dec 2016 11:14:47 +0100
From:      Carsten Larsen <cs@innolan.dk>
To:        =?UTF-8?B?w5hyamFuIFTDuG5kZXI=?= <orjan.tonder@gmail.com>, freebsd-net@freebsd.org
Subject:   Re: freebsd openvpn setup
Message-ID:  <5e81070e-a28c-bf12-1d6a-e8028a274a35@innolan.dk>
In-Reply-To: <CABx0kFFzNzAj4XYwi9jtP3eg-%2Be0Mg3Q_sJsFbfYG1A0cG4%2BMw@mail.gmail.com>
References:  <CABx0kFFzNzAj4XYwi9jtP3eg-%2Be0Mg3Q_sJsFbfYG1A0cG4%2BMw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi Ørjan


Den 04-12-2016 kl. 09:36 skrev Ørjan Tønder:
> I have successful setup a openvpn network all clients can reach outside and
> lan,
> but the server cant reach the clients.
>
> network setup
>     10.8.1.0/24
>           server 10.8.1.1/24
>           clients 10.8.1.2-130/24
>
> The routing table from the server:
> root@charon:/usr/local/etc/openvpn # netstat  -r
> Routing tables
>
> Internet:
> Destination        Gateway            Flags     Netif Expire
> default            static.1.31.4.46.c UGS         re0
> 10.8.1.0/24        link#5             U          tap0
> 10.8.1.1           link#5             UHS         lo0
> 10.8.2.1           link#3             UH          lo1
> 10.8.2.3           link#3             UH          lo1
> 46.4.31.0/26       link#1             U           re0
> tuxlab.no          link#1             UHS         lo0
> localhost          link#2             UH          lo0
>
> Internet6:
> Destination        Gateway            Flags     Netif Expire
> ::/96              localhost          UGRS        lo0
> localhost          link#2             UH          lo0
> ::ffff:0.0.0.0/96  localhost          UGRS        lo0
> fe80::/10          localhost          UGRS        lo0
> fe80::%re0/64      link#1             U           re0
> fe80::6e62:6dff:fe link#1             UHS         lo0
> fe80::%lo0/64      link#2             U           lo0
> fe80::1%lo0        link#2             UHS         lo0
> fe80::%tap0/64     link#5             U          tap0
> fe80::2bd:6fff:fe3 link#5             UHS         lo0
> ff02::/16          localhost          UGRS        lo0
>
>
> what am i missing ?
>
>
>

You need to add an iroute in the client config.


Kind regards
Carsten Larsen




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5e81070e-a28c-bf12-1d6a-e8028a274a35>