GS wrote:
> I installed openVPN package between two locations, both sites are with
> public IP addresses with firewall/Router on both sites, all machines
> are behind firewall at both locations, the VPN port 1194 is opened on
> firewall box. The diagram below shows two locations, at location 1, the
> server is running one of the machine on LAN (172.166.1.16), the 1194
> port is redirected to this machine, the clinet is running at location
> 2, the client is connected to server, but the client cannot access any
> other machines at location 1. do I have to install any Routing at this
> VPN server at location 1 machine (172.16.1.16), I have some other
> machines 172.16.1.17 and 172.16.1.18 cannot be accessable from lication
> 2 at al, I cannot even ping 172.16.1.1 which is firewall/router. Thanks
> in advance.
>
> Location 1
> Location 2
> __________________________________________________
> |
> |
> |-------|------|----|
> |------|-------|
> 172.16.1.x
> 172.16.2.x
>
>
> GS.
>
Despite the fact that your diagram is none too clear, I don't need it to
help you out
What you are missing is a route on the router in location 1 that goes
back to the VPN server for any addresses it has to route over the VPN -
the clients in location 2.
As you indicated that the VPN server is not the default gateway for the
hosts on that subnet, you will need to add a route to 172.16.2.0/24 to
the default gateway on that subnet:
route add -net 172.16.2.0 netmask 255.255.255.0 gw 172.16.1.16
This will provide the clients - that come in to the 172.16.1.x network
over the VPN - with a route /back/ to the 172.16.2.x network - also over
the VPN.
In fact, if your intention is to be able to arbitrarily route packets
over the VPN between the two locations, you should set a similar route
on the gateway in location 2 and be done with it - you'll never have to
re-configure any clients again, it will "just work".
J.