<div dir="ltr"><br><br><div class="gmail_quote">2011/2/22 ik <span dir="ltr"><<a href="mailto:idokan@gmail.com">idokan@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div dir="ltr">Hello,<br><br>I'm trying to configure openvpn to be a host to host like configuration. <br>The reason is simple, because I want to have access to the machine that is the "server".<br>The problem is, that I have many "clients" that need to be like that.<br>
<br>How can I have a host to host like approach but with multiple "client" hosts ?<br><br>My current "server" side configuration is:<br>--------------------------<br>dev tun<br>ifconfig 172.16.8.1 172.16.8.2<br>
secret /etc/openvpn/static.key<br>comp-lzo<br>keepalive 10 60<br>ping-timer-rem<br>persist-tun<br>persist-key<br>user nobody<br>group nobody<br>daemon<br>----------------------------<br><br>And my "client" settings is:<br>
-----------------------------<br>remote xxx.xxx.xxx.xxx<br>dev tun<br>ifconfig 172.16.8.2 172.16.8.1<br>secret /etc/openvpn/static.key<br>comp-lzo<br>keepalive 10 60<br>ping-timer-rem<br>persist-tun<br>persist-key<br>user nobody<br>
group nobody<br>daemon <br>-----------------------------<br><br></div></blockquote><div><br>From <a href="http://openvpn.net/index.php/open-source/documentation/howto.html#server">http://openvpn.net/index.php/open-source/documentation/howto.html#server</a> :<br>
<br><pre><strong><strong># Configure server mode and supply a VPN subnet<br># for OpenVPN to draw client addresses from.<br># The server will take 10.8.0.1 for itself,<br># the rest will be made available to clients.<br>
# Each client will be able to reach the server<br>
# on 10.8.0.1. Comment this line out if you are<br># ethernet bridging. See the man page for more info.<br>server 10.8.0.0 255.255.255.0</strong></strong></pre> </div></div>You build a normal server to clients; You just don't push out routes as one would normally do in a VPN server...<br>
<br>-- Shimi<br></div>