So I have almost successfully configured OpenVPN on a Linux machine and am able to connect to it via a client in Windows, however the server can ping the client via tun0 and eth0, but on the other side the client can only ping the server via eth0. The server's IP address via eth0 is 192.168.11.1 and via tun0 it's 10.8.1.1. The client via "eth0" is 192.168.1.14 and via tun0 it's 10.8.1.10. My server.conf is as follows:
port 25794
proto udp
dev tun
ca /etc/openvpn/certs/ca.crt
cert /etc/openvpn/certs/alpha.crt
key /etc/openvpn/keys/alpha.key # This file should be kept secret
dh /etc/openvpn/certs/dh2048.pem
server 10.8.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.11.0 255.255.255.0"
client-config-dir ccd
route 192.168.1.0 255.255.255.0
route 10.8.1.0 255.255.255.0
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
tls-auth /etc/openvpn/keys/alpha-ta.key
comp-lzo
user nobody
group nobody
persist-key
persist-tun
status openvpn-status.log
verb 3
chroot /etc/openvpn/jail
The file in my ccd directory contains
ifconfig-push 10.8.1.40 10.8.1.1
iroute 192.168.1.0 255.255.255.0
Am I missing something?
Other issues I also noticed is that the client never gets 10.8.1.40 despite the ifconfig-push and computers on the server's LAN can't see the client...