i do have two sites that i would like to connect over internet through adsl connections.
site A has ip addressing 192.168.1.1 router (gw) and 5 computers. Server with IP 192.168.1.50
site B has ip addressing 192.168.2.1 router (gw) and 5 computers.
i would like to have computers from site A to talk to computers to site B.
my thinking is to have
PCs_siteA--raspberry(openvpn)--routerA==========Internet=======routerB--raspberry(openvpn)--PCs_siteB
eg router on site A will be 192.168.1.1, raspberry will be on 192.168.1.2 and PC 192.168.1.3-8. All PCs will have the router as default gateway. Same setup with IPs 192.168.2.0 applies to site B.
port forward for openvpn on both routers, then all computers can talk to each other and all access server 192.168.1.50
Is that correct or am i missing something?