Hello all together. I'm pretty sure its already answered somewhere but I really used the search function and google and I just found something that won't help me and I bet it's pretty simple.
I use OpenVPN at work to connect to my home network.
Local Network at work: 192.168.0.0/24
Remote Network at home: 192.168.0.0/24
Connection works, internettraffic is 100% routed through the tunnel. But there are the same IPs at home and at work. If I try 192.168.0.10 for example, it's not routed through the tunnel. I always get the server at work. What do I have to change in the Client config file?
dev tun
tls-client
proto udp
remote my.dyndns.org 50544
#float
#redirect-gateway
#redirect-gateway def1
#route-gateway 192.168.0.10
#keepalive 10 60
#redirect-gateway local def1
redirect-gateway def1
#dhcp-option DNS DNS_IP_ADDRESS
#dhcp-option DNS 8.8.8.8
script-security 2
ca ca.crt
comp-lzo
reneg-sec 0
auth-user-pass
Everything that I marked as a comment won't work.