Guidance needed on windows setup please
Posted: Fri Apr 29, 2011 9:48 pm
This is my first attempt, and more by luck than judgement I have got a partly working vpn. Now I need to know how to do it properly...
Remote site: workgroup lan on 192.168.0.x. 4 x xp pro boxes with static ip's. BT Homehub2 router is the lan gateway with DHCP disabled. Dynamic WAN ip tracked by dynamic DNS account. Could change the 0.x to something else if necessary.
192.168.0.240 is running Openvpn 2.0.9 GUI server, dev: tun and proto: udp on 1194, and WM Encoder generating a broadcast audio stream on 8080. Server virtual address 10.8.0.1. Not (yet) set up as service.
Ca.crt, ta.key and several client(n) .crt & .key files generated & distributed.
Local site A: client local lan workgroup on 192.168.3.x 2 xp boxes on static ip's behind pix501 and vigor 2800 router on static WAN ip. DHCP enabled from pix, range outside static ip's in use. (Ignore the pix, just provides a permanent hardware ipsec tunnel to a different remote site)
Open vpn gui client on one box 192.168.3.2. as a test setup.
Connects to remote site ok with virtual ip 10.8.0.6. Can RD into server through the vpn and can pull audio stream from encoder.
Would like up to 4 other clients to concurrently connect to pull the stream on 8080 from the vpn server and also to RD into another machine on the remote lan on static ip 192.168.0.13, but not to be able to RD into the vpn server box. (Only Site A to do this).
No requirement for the 5 clients to see one another and no (current) requirement to access any client lan from the server end lan.
Reading all the material on the openvpn site have got confused as to what I need to do to reach beyond the vpn server on its local lan to get to the other box(es). Don't want to experiment without advice as it's a 20 mile round trip to get to the vpn server if I crash it!
Config files
Server:
;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
dev-node vpnTap
ca "<pathtofile>\\ca.crt"
cert "<pathtofile>\\server.crt"
key "<pathtofile>\\server.key" # This file should be kept secret
dh "<pathtofile>\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
push "route 192.168.0.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;learn-address ./script
;push "redirect-gateway"
;push "dhcp-option DNS 10.8.0.1"
;push "dhcp-option WINS 10.8.0.1"
;client-to-client
;duplicate-cn
keepalive 10 120
tls-auth "<pathtofile>\\ta.key" 0 # This file is secret
cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
;user nobody
;group nobody
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
;mute 20
Client1:
client
;dev tap
dev tun
dev-node vpnTap
;proto tcp
proto udp
remote <path to dynamic dns host> 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca "<pathtofile>\\ca.crt"
cert "<pathtofile>\\client1.crt"
key "<pathtofile>\\client1.key"
ns-cert-type server
tls-auth "<pathtofile>\\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3
mute 20
Any guidance you can give would be gratefully received!
Christopher
Remote site: workgroup lan on 192.168.0.x. 4 x xp pro boxes with static ip's. BT Homehub2 router is the lan gateway with DHCP disabled. Dynamic WAN ip tracked by dynamic DNS account. Could change the 0.x to something else if necessary.
192.168.0.240 is running Openvpn 2.0.9 GUI server, dev: tun and proto: udp on 1194, and WM Encoder generating a broadcast audio stream on 8080. Server virtual address 10.8.0.1. Not (yet) set up as service.
Ca.crt, ta.key and several client(n) .crt & .key files generated & distributed.
Local site A: client local lan workgroup on 192.168.3.x 2 xp boxes on static ip's behind pix501 and vigor 2800 router on static WAN ip. DHCP enabled from pix, range outside static ip's in use. (Ignore the pix, just provides a permanent hardware ipsec tunnel to a different remote site)
Open vpn gui client on one box 192.168.3.2. as a test setup.
Connects to remote site ok with virtual ip 10.8.0.6. Can RD into server through the vpn and can pull audio stream from encoder.
Would like up to 4 other clients to concurrently connect to pull the stream on 8080 from the vpn server and also to RD into another machine on the remote lan on static ip 192.168.0.13, but not to be able to RD into the vpn server box. (Only Site A to do this).
No requirement for the 5 clients to see one another and no (current) requirement to access any client lan from the server end lan.
Reading all the material on the openvpn site have got confused as to what I need to do to reach beyond the vpn server on its local lan to get to the other box(es). Don't want to experiment without advice as it's a 20 mile round trip to get to the vpn server if I crash it!
Config files
Server:
;local a.b.c.d
port 1194
;proto tcp
proto udp
;dev tap
dev tun
dev-node vpnTap
ca "<pathtofile>\\ca.crt"
cert "<pathtofile>\\server.crt"
key "<pathtofile>\\server.key" # This file should be kept secret
dh "<pathtofile>\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
push "route 192.168.0.0 255.255.255.0"
;push "route 192.168.20.0 255.255.255.0"
;learn-address ./script
;push "redirect-gateway"
;push "dhcp-option DNS 10.8.0.1"
;push "dhcp-option WINS 10.8.0.1"
;client-to-client
;duplicate-cn
keepalive 10 120
tls-auth "<pathtofile>\\ta.key" 0 # This file is secret
cipher BF-CBC # Blowfish (default)
;cipher AES-128-CBC # AES
;cipher DES-EDE3-CBC # Triple-DES
comp-lzo
;max-clients 100
;user nobody
;group nobody
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
;mute 20
Client1:
client
;dev tap
dev tun
dev-node vpnTap
;proto tcp
proto udp
remote <path to dynamic dns host> 1194
;remote my-server-2 1194
;remote-random
resolv-retry infinite
nobind
;user nobody
;group nobody
persist-key
persist-tun
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;mute-replay-warnings
ca "<pathtofile>\\ca.crt"
cert "<pathtofile>\\client1.crt"
key "<pathtofile>\\client1.key"
ns-cert-type server
tls-auth "<pathtofile>\\ta.key" 1
cipher BF-CBC
comp-lzo
verb 3
mute 20
Any guidance you can give would be gratefully received!
Christopher