openvpn and multiple host to host like configuration
ik
idokan at gmail.com
Tue Feb 22 16:47:28 IST 2011
On Tue, Feb 22, 2011 at 13:07, shimi <linux-il at shimi.net> wrote:
>
>
> 2011/2/22 ik <idokan at gmail.com>
>
> Hello,
>>
>> I'm trying to configure openvpn to be a host to host like configuration.
>> The reason is simple, because I want to have access to the machine that is
>> the "server".
>> The problem is, that I have many "clients" that need to be like that.
>>
>> How can I have a host to host like approach but with multiple "client"
>> hosts ?
>>
>> My current "server" side configuration is:
>> --------------------------
>> dev tun
>> ifconfig 172.16.8.1 172.16.8.2
>> secret /etc/openvpn/static.key
>> comp-lzo
>> keepalive 10 60
>> ping-timer-rem
>> persist-tun
>> persist-key
>> user nobody
>> group nobody
>> daemon
>> ----------------------------
>>
>> And my "client" settings is:
>> -----------------------------
>> remote xxx.xxx.xxx.xxx
>> dev tun
>> ifconfig 172.16.8.2 172.16.8.1
>> secret /etc/openvpn/static.key
>> comp-lzo
>> keepalive 10 60
>> ping-timer-rem
>> persist-tun
>> persist-key
>> user nobody
>> group nobody
>> daemon
>> -----------------------------
>>
>>
> From
> http://openvpn.net/index.php/open-source/documentation/howto.html#server :
>
> *# Configure server mode and supply a VPN subnet
> # for OpenVPN to draw client addresses from.
> # The server will take 10.8.0.1 for itself,
> # the rest will be made available to clients.
>
> # Each client will be able to reach the server
>
> # on 10.8.0.1. Comment this line out if you are
> # ethernet bridging. See the man page for more info.
> server 10.8.0.0 255.255.255.0*
>
>
> You build a normal server to clients; You just don't push out routes as one
> would normally do in a VPN server...
>
> -- Shimi
>
It helped a lot, thank you for your help.
Ido
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cs.huji.ac.il/pipermail/linux-il/attachments/20110222/278ef151/attachment-0001.html>
More information about the Linux-il
mailing list