Routing problems with OpenVPN [message #36567] |
Wed, 01 July 2009 08:06 |
tale
Messages: 2 Registered: July 2009
|
Junior Member |
|
|
LAN setup
Hello! I have a small home network (10.10.10.0/24) which looks like this:
10.10.10.1 - Router
10.10.10.3 - Server running OpenVZ
10.10.10.4 - VE (running inside 10.10.10.3) running OpenVPN
OpenVPN tunnel configuration
Client: 10.11.11.2 (Note: The client has a route to 10.10.10.0/24 via the openvpn tunnel)
Server (10.10.10.4): 10.11.11.1
Now, from the client I can SSH to 10.11.11.1 ofcourse. I can also ssh to 10.10.10.4 (since I have a route in the client telling it to send packets for 10.10.10.0/24 via the openvpn tunnel).
The Problem
The problem I face is that I can't SSH (from the client) directly to 10.10.10.3 (or any other computer on the 10.10.10.0/24 network for that matter). I thought that this must be becouse 10.10.10.3 doesn't know where to route packets destined for 10.11.11.2. So I added a route in 10.10.10.3 that routes all packets destined for 10.11.11.0/24 to 10.10.10.4. I have also enabled ip_forwarding both on 10.10.10.4 and 10.10.10.3. This however does not work and I can't for the life of me figure out why. Since I can ssh to 10.10.10.4 the route on the client is correct and since 10.10.10.4 has a default gw to 192.0.1.2 (which is if I understand correctly just a "alias" for 10.10.10.3) 10.10.10.4 should send all packets to the default gw (10.10.10.3). Now, 10.10.10.3 has a route (as I said above) that will route everything destined for 10.11.11.0/24 to 10.10.10.4. So, I'm at a loss. Is there anything I'm missing?
All iptables (both 10.10.10.4 and 10.10.10.3) are blank with default ACCEPT policy.
[Updated on: Wed, 01 July 2009 08:12] Report message to a moderator
|
|
|