I an a newbie at openvpn. I have two laptops that I want to attach to
openvpn tunnels to a third desktop computer. Lets call the desktop A.com
and the laptops B and C. As with laptops they tend to roam, but will also
be used at times behind a single ADSL router and thus will be NAT to that
router.
I want B to always connect with IP 10.8.0.2 and C to always connect with
10.8.0.3 I do not want A to assign addresses. I do not want to connect to
10,000 laptops so have no problem with fixed addresses, and am not going to
run out of addresses for the two machines.
I find the docs hard to figure out so am asking if the following
openvpn.conf files would work
On A.com
dev tun
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
client-to-client
persist-key
persist-tun
verb 4
ifconfig-local 10.8.0.1
duplicate-cn
max-clients 10
status openvpn-status.log
secret /etc/openvpn/static.key
B.com
dev tun
ifconfig 10.8.0.2 10.8.0.1
remote 142.103.234.23
persist-key
persist-tun
verb 3
ping 10
secret /etc/openvpn/static.key
On C.com
dev tun
ifconfig 10.8.0.3 10.8.0.1
remote 142.103.234.23
persist-key
persist-tun
verb 3
ping 10
secret /etc/openvpn/static.key
I would use the same static.key on all three machines.
Will this work?
|