OpenWRT behind Router
Posted: Tue Jul 02, 2013 1:48 pm
Hi,
i am trying to configure an openVPN with my WR1043ND with the latest OpenWRT. I can connect to the Server with Android OpenVPN Connect App.
I have a Netgear DGN2200B (local 192.168.1.1), which is connected to the internet. The UPD-Port gets forwarded to the WR1043ND, which is local 192.168.1.3. DHCP-Server is the Netgear.
My configs:
I took this from the PenWRT Wiki.
Client:
The smartphone connects and gets the IP 10.0.0.x (x is 6 in most cases). I can neither do anything in my local network nor connect to the internet.
I hope you can help me with this. Sorry for my language. My native language is German.
CDW
i am trying to configure an openVPN with my WR1043ND with the latest OpenWRT. I can connect to the Server with Android OpenVPN Connect App.
I have a Netgear DGN2200B (local 192.168.1.1), which is connected to the internet. The UPD-Port gets forwarded to the WR1043ND, which is local 192.168.1.3. DHCP-Server is the Netgear.
My configs:
Code: Select all
config 'openvpn' 'lan'
option 'enable' '1'
option 'port' '1194'
option 'proto' 'udp'
option 'dev' 'tun'
option 'ca' '/etc/easy-rsa/keys/ca.crt'
option 'cert' '/etc/easy-rsa/keys/server.crt'
option 'key' '/etc/easy-rsa/keys/server.key'
option 'dh' '/etc/easy-rsa/keys/dh1024.pem'
option 'ifconfig_pool_persist' '/tmp/ipp.txt'
option 'keepalive' '10 120'
option 'comp_lzo' '0'
option 'persist_key' '1'
option 'persist_tun' '1'
option 'status' '/var/log/openvpn-status.log'
option 'verb' '3'
option 'server' '10.0.0.0 255.255.255.0'
list 'push' 'dhcp-option DOMAIN lan'
list 'push' 'dhcp-option DNS 192.168.1.1'
Client:
Code: Select all
client
tls-client
dev tun
proto udp
remote mydyndns 1194
resolv-retry infinite
nobind
ca ca.crt
cert client1.crt
key client1.key
dh dh1024.pem
#comp-lzo
persist-tun
persist-key
verb 3
I hope you can help me with this. Sorry for my language. My native language is German.
CDW