Hi,
I have been testing with OpenVPN all day and have run into an issue. I will try to explain as clearly as I can.
I have the following setup:
Client PCs -----------> Gateway (2 interfaces) -------> Router ------> WWW -----> OpenVPN server ----> Server
192.168.111.0/24 192.168.111.1 (eth0) 192.168.100.254 3.2.4.11/26 3.2.4.3
192.168.100.127 (wlan0)
The gateway machine is effectively the Openvpn client. I have a tunnel configured and working between the gateway and the openvpn server, and am able to ping across it. I can see traffic coming out of the tunnel at the far end and routing to the destination server.
I have dhcpd set up on the gateway machine to supply addresses to the client PCs, this is also working. I can ping from the client PCs to the Internet.
So far the problem I have had, is that I have been unable to get the gateway to send any client PC traffic over the tunnel. I have been using tcpdump to monitor the tun interface on the Openvpn server and I only see traffic when it originates from the gateway - client PC traffic never arrives.
Here is some extra info.
Routing table from gateway (tunnel up):
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.8.0.5 * 255.255.255.255 UH 0 0 0 tun0
3.2.4.11 192.168.100.254 255.255.255.255 UGH 0 0 0 wlan0
10.8.0.1 10.8.0.5 255.255.255.255 UGH 0 0 0 tun0
3.2.4.0 10.8.0.5 255.255.255.192 UG 0 0 0 tun0
192.168.100.0 * 255.255.255.0 U 2 0 0 wlan0
192.168.111.0 * 255.255.255.0 U 1 0 0 eth0
link-local * 255.255.0.0 U 1000 0 0 wlan0
default 10.8.0.5 128.0.0.0 UG 0 0 0 tun0
128.0.0.0 10.8.0.5 128.0.0.0 UG 0 0 0 tun0
default 192.168.100.254 0.0.0.0 UG 0 0 0 wlan0
Gateway Openvpn config:
client
remote 3.2.4.11 1194
dev tun0
proto tcp
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
#tls-auth ta.key 1
verb 4
comp-lzo
Openvpn server config:
port 1194
proto tcp
dev tun
#certificates and encryption
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
#tls-auth ta.key 0 # This file is secret
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status /var/log/openvpn-status.log
verb 3
log-append /var/log/openvpn
status /tmp/vpn.status 10
push "dhcp-option DNS 3.2.4.40"
push "redirect-gateway def1"
push "route 3.2.4.0 255.255.255.192"
Any help would be very gratefully received, I feel like I'm very close to getting this working but can't find the last piece of the puzzle.
Many thanks in advance
George