Hi guys,
I have a successfully configured Openvpn Server on my Raspberry.
But I need acces to one of my Clients network, so i have to change it to a site2site setup.
On the Server Site i have the following setup:
Subnet: 192.168.1.0
Router: 192.168.1.1
OpenVPN Server: 192.168.1.12
The Client Setup:
Subet: 192.168.178.0
Router: 192.168.178.1
OpenVPN Client: 192.168.178.2
My Server Config:
dev tun
proto udp
port 1194
ca /etc/openvpn/easy-rsa/keys/ca.crt
cert /etc/openvpn/easy-rsa/keys/server.crt
key /etc/openvpn/easy-rsa/keys/server.key
dh /etc/openvpn/easy-rsa/keys/dh1024.pem
user nobody
group nogroup
server 10.8.0.0 255.255.255.0
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3
client-to-client
push "redirect-gateway def1"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.1"
log-append /var/log/openvpn
client-config-dir /etc/openvpn/ccd/
route 192.168.178.0 255.255.255.0
The Client config looks like this:
push "redirect-gataway def1"
ifconfig-push 10.8.0.13 10.8.0.14
iroute 192.168.178.0 255.255.255.0
On my Router i have configured a route to the clients subnet and to the openvpn subnet:
10.8.0.0 192.168.1.12 255.255.255.0
192.168.178.0 192.168.1.12 255.255.255.0
The Client config looks like this:
daemon
client
dev tun11
proto udp
remote xyz.dyndns.org 12345
resolv-retry 30
nobind
persist-key
persist-tun
redirect-gateway def1
verb 3
script-security 2
up updown.sh
down updown.sh
ca ca.crt
cert client.crt
key client.key
status-version 2
status status
Just for info, the client is a tomatousb router.
At the moment i have acces to the OpenVPN Client (192.168.178.2) but i need to have acces to the Client-router (192.168.178.1) and to the other devices.
Actually i have no idea where the problem is.
Maybe one of you can help me?
greetings
lutz3d