Hi,
I use openvpn in bridged mode, here is my setup :
my-client(234.xxxxxxx) -> internet -> my internet box (72.xxxxxx:yyyy) -> my box redirect port to local 192.168.15.2:yyyy
I can't access the server 192.168.15.0/24 subnet because my windows 7 client have this routing line (partial route print output on my client) :
192.168.15.0 255.255.255.0 On-link 192.168.15.191 286
then i can ping 192.168.15.2 (my openvpn server) from my client, but cant ping 192.168.15.1 which is a computer on my openvpn subnet.
If I do "route delete 192.168.15.0 mask 255.255.255.0" on my client, then everything works. Because 192.168.15.0/24 is not a known route naymore, then it will go to default gateway which is my openvpn server and it's what I want.
I tried add
client-to-client
push "route 192.168.15.0 255.255.255.0"
to my server.conf, didn't change anything.
I added
route 192.168.15.0 255.255.255.0 192.168.15.2
to my client configuration, then my client route changed and looks like :
192.168.15.0 255.255.255.0 On-link 192.168.15.191 286
192.168.15.0 255.255.255.0 192.168.15.2 192.168.15.191 30
But still don't work because the "on-link" line takes over it. Deleting the "on-link" route works again.
So what can I do to automaticly tell windows to send 192.168.15.0/24 via 192.168.15.2 ? Or automaticly delete the "on-link" route ?
Thanks for any help