Hi there,
i hope, you can help me. I'm not sure, if I'm right here, but maybe you know, what to do, and my tries to search for "routing" "vm" "virtual" "vpn" were ignored because the words were to common (single and combined). So please don't be angry, if there are lots of solution within this forum.
Now I will come to my simple Problem:
- Infrastructure: The internet connection is realized by a cable connection and a FritzBox (FB) Cable. Behind the FB, I have a windows VM host, with several VMs. On a CentOS VM runs my OpenVPN server.
The FB is one DNS, I have another server, which is the DNS for our internal development domains.
IPs:
FB x.x.1.1
DNS2: x.x.1.2
VM Host: x.x.1.3
OpenVPN (eth0): x.x.1.4
OpenVPN (tun0): x.x.2.1
VPN-Clients: x.x.2.0
- Goal: I want to be able, to connect with a PC, Smartphone.... via VPN to get access to my internal infrastructure. So I want to bring single workers from outside to inside (I do not want to connect different locations).
Problem description:
Now, trying to connect to the OpenVPN server works. So, the outter Device gets a connection and an IP from my VPN.
So, an Client get's the IP x.x.2.3
Now, ping to tun0: works. (x.x.2.3 -> x.x.2.1)
Ping to eth0: works. (x.x.2.3 -> x.x.1.4)
but after this, there is great silence.
In my opinion, it is the routing. And this is what I do not know. can you help me? which information do you need?
I played a bit with the routes, but with no effect. this is my current routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
x.x.1.4 x.x.2.1 255.255.255.255 UGH 0 0 0 tun0
x.x.2.2 * 255.255.255.255 UH 0 0 0 tun0
x.x.1.0 * 255.255.255.0 U 1 0 0 eth0
x.x.2.0 x.x.1.3 255.255.255.0 UG 0 0 0 eth0
x.x.2.0 x.x.1.1 255.255.255.0 UG 0 0 0 eth0
x.x.2.0 x.x.2.2 255.255.255.0 UG 0 0 0 tun0
default fritz.box 0.0.0.0 UG 0 0 0 eth0
So, i come to the openVPN, but after this, it stops.
any ideas? any questions?
Thanks so much for help.
cya DJ