dsiggi DD-WRT Novice
Joined: 26 Jul 2016 Posts: 1
|
Posted: Tue Jul 26, 2016 13:37 Post subject: OpenVPN and no access to my LAN |
|
Hi,
I've enabled the OpenVPN-Server on my router.
I can connect to it but cant access any device in my local LAN.
Hier is my server-config:
Code: |
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
keepalive 10 120
verb 3
mute 3
syslog
writepid /var/run/openvpnd.pid
management 127.0.0.1 14
management-log-cache 100
topology subnet
script-security 2
port 1194
proto udp
cipher aes-256-cbc
auth sha512
client-connect /tmp/openvpn/clcon.sh
client-disconnect /tmp/openvpn/cldiscon.sh
client-config-dir /tmp/openvpn/ccd
comp-lzo yes
tls-server
ifconfig-pool-persist /tmp/openvpn/ip-pool 86400
client-to-client
fast-io
tun-mtu 1500
mtu-disc yes
server 10.100.0.0 255.255.255.0
dev tun2
tun-ipv6
passtos
push "route 192.168.0.0 255.255.255.0"
max-clients 2
|
My LAN-Adress is 192.168.0.0/24 the OpenVPN-Adress is 10.100.0.0/24.
Here is my client-config (OpenVPN Android APP)
Code: |
client
dev tun
remote xxx.yyy.zzz
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert handy.crt
key handy.key
verb 3
keepalive 10 120
port 1194
proto udp
cipher AES-256-CBC
auth SHA512
|
These are the firewall commands:
Code: |
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.100.0.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun2 -j ACCEPT
iptables -I FORWARD -i tun2 -o br0 -j ACCEPT
|
I connect my smartphone to the vpn-network but I can't connect to the computers behind the vpn.
As an example:
The router is 192.168.0.1. The VPN-Server is running on the router.
I have a server (192.168.0.111) with SSH access.
When I connected the smartphone to the VPN-server I can't connect to my server.
I hope you can help me.
dsiggi |
|