|
|
On Sat, 2004-07-31 at 09:37 +0200, Jon Bendtsen wrote: > Den 31. jul 2004, kl. 9:28, skrev Marius Andreiana: > > > On Sat, 2004-07-31 at 08:59 +0200, Jon Bendtsen wrote: > >> Den 31. jul 2004, kl. 7:35, skrev Marius Andreiana: > >> > >>> Hi > >>> > >>> I setup 2.0 version using tap between linux-linux. > >>> The 'office' is using 192.168.0.x for internal net, and server conf > >>> has: > >>> > >>> # The server's virtual subnet > >>> ifconfig 192.168.1.1 255.255.255.0 > > did you set this in the openvpn config file with > ifconfig 192.168.1.1 255.255.255.0 > Because that is not the correct setting. > See http://openvpn.sourceforge.net/20notes.html I'm using tap, not tun, so this looks like the correct setting. Now it works, here is the server config: port 5000 dev tap # TLS parms tls-server ca sample-keys/tmp-ca.crt cert sample-keys/server.crt key sample-keys/server.key dh sample-keys/dh1024.pem # Tell OpenVPN to be a multi-client udp server mode server # The server's virtual subnet ifconfig 192.168.1.1 255.255.255.0 #ifconfig 192.168.0.40 255.255.255.0 # Pool of IP addresses to be allocated to clients. # When a client connects, an --ifconfig command # will be automatically generated and pushed back to # the client. ifconfig-pool 192.168.1.4 192.168.1.250 #ifconfig-pool 192.168.0.44 192.168.0.49 push "route 192.168.0.0 255.255.255.0" push "route-gateway 192.168.1.1" comp-lzo # Client should attempt reconnection on link # failure. ping 10 ping-restart 120 push "ping 10" push "ping-restart 60" # The server doesn't need privileges user nobody group nobody verb 4 -- Marius Andreiana Galuna - Solutii Linux in Romania http://www.galuna.ro ____________________________________________ Openvpn-users mailing list Openvpn-users@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/openvpn-users |