Here are my current configs.
Server (running on my DD-WRT router):
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
keepalive 10 120
mute 5
log /var/log/openvpn
writepid /var/log/openvpnd.pid
management 127.0.0.1 5002
management-log-cache 50
mtu-disc yes
topology subnet
client-config-dir /tmp/openvpn/ccd
script-security 2
port 1194
proto udp
cipher aes-256-cbc
auth sha512
tls-server
ifconfig-pool-persist /tmp/openvpn/ip-pool 86400
comp-lzo no
client-to-client
push "redirect-gateway def1"
tls-cipher AES256-SHA
fast-io
tun-mtu 1500
server 10.0.2.0 255.255.255.0
dev tun0
tls-auth /tmp/openvpn/ta.key 0
verb 5
Client:
remote qwerty.com 1194
proto udp
pull
tls-client
tls-auth ta.key 1
persist-key
ca ca.crt
redirect-gateway def1
dev tun
persist-tun
cert cert.crt
comp-lzo no
nobind
key key.key
tun-mtu 1500
tls-cipher AES256-SHA
cipher aes-256-cbc
auth sha512
And this is my iptables setup:
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.0.1.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
As I started in my first post, I have two objectives with my VPN setup:
1) to access the Internet through the VPN
2) to access resources on my 10.0.1.0 subnet
I can access the internet through the VPN, but I cannot access 10.0.1.0 subnet resources. What do I have wrong in my config?
Thanks!