keys, certs, and dns address are not listed as that much of the setup works correctly
Server - 64 bit Ubuntu 10.04 headless server: 192.168.117.0/24 behind a firewall/router[WNDR3700] (cable internet)
IPv4 forwarding is enabled
Code: Select all
iptables -I INPUT -i tun+ -j ACCEPT
iptables -I INPUT -i eth0 -j ACCEPT
iptables -I FORWARD -i tun+ -j ACCEPT
iptables -I FORWARD -i eth0 -j ACCEPT
CONFIG FILE
Code: Select all
port 1194
proto tcp
dev tun
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.117.0 255.255.255.0"
push "route 192.168.1.0 255.255.255.0"
client-config-dir ccd
route 192.168.1.0 255.255.255.0
client-to-client
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
Code: Select all
iroute 192.168.1.0 255.255.255.0
ipv4 forwarding is enabled
iptables match server exactly
config file points to server with tcp protocol correctly
router @ 192.168.117.1 - static routes 10.8.0.0/24 & 192.168.1.0/24 points to 192.168..117.X(server)
router @ 192.168.1.1 - static routes 10.8.0.0/24 & 192.168.117.0/24 points to 192.168.1.X(client1)
So far the VPN tunnel connects without issue. From the server I can ping/ssh/scp/wget anything in the 192.168.1.0/24 network behind the client. from the client I can also access anything in the 192.168.117.0/24 network behind the server
I have even connected my windows laptop to the server via ssh (both in the 192.168.117.0/24 space) and used tunnels to remotely access webpages in the 192.168.1.0/24 network
Code: Select all
ssh server -L 80:192.168.1.1:80
Here are some other details which maybe of use
results of route -n on server
Code: Select all
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.2 0.0.0.0 255.255.255.255UH 0 0 0 tun0
192.168.117.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
192.168.1.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
0.0.0.0 192.168.117.1 0.0.0.0 UG 100 0 0 eth0
Code: Select all
*****@Rand:~$ traceroute 192.168.1.4
traceroute to 192.168.1.4 (192.168.1.4), 30 hops max, 60 byte packets
1 192.168.117.1 (192.168.117.1) 0.295 ms 0.256 ms 0.295 ms
2 Server (192.168.117.XXX) 0.509 ms 0.507 ms 0.486 ms
3 10.8.0.6 (10.8.0.6) 1486.543 ms 1483.743 ms 2030.026 ms
4 192.168.1.4 (192.168.1.4) 2034.648 ms 2054.639 ms 2054.639 ms
However, the problem occurs if I try to use HTTP or if I try to establish an ssh connection to client1 either at 10.8.0.6 or at 192.168.1.242(client1's ip inside of its own network). Essentially I never get a reply.
Also as mentioned before any connection from the vpn server is successful. I went a step further and connected my laptop to the internet via a usb modem and configured it as a client. I was able to connect without issue and could also access all devices in the 10.8.0.0/24, 192.168.117.0/24, and 192.168.1.0/24 networks.
so to summarize. I can connect from a vpn client to any device in any network, however the devices in the servers network cannot initiate a connection to the vpn client or any devices behind the vpn client. I have not been able to test a connection from a device in the vpn client network back to the server network, it will be later next week before I will have physical access to any of those devices.
Any help with this would be greatly appreciated.