Hi,
I've a problem with my openVPN-Projekt on a TP-Link MR 3020 Router with openWRT BB 14.07 which should work as server. I made the installation as described in the openWRT-Wiki "OpenVPN Setup Guide for Beginners" and everything was as described there without the command
route add -net 8.8.8.8 netmask 255.255.255.255 gateway 10.8.0.5
I get: route: SIOCADDRT: No such process
So I think the tunnel is not working.
Here are my Config-Files:
/etc/config/network:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config interface 'lan'
option ifname 'eth0'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'static'
option netmask '255.255.255.0'
option gateway '192.168.1.1'
option broadcast '192.168.1.255'
option dns '192.168.1.1'
option ipaddr '192.168.1.2'
config globals 'globals'
option ula_prefix 'fda7:b97b:37b2::/48'
config interface 'wifi'
option proto 'static'
option netmask '255.255.255.0'
option type 'bridge'
option _orig_ifname 'wlan0'
option _orig_bridge 'true'
option ifname 'eth0'
option ipaddr '192.168.2.110'
option gateway '192.168.2.1'
option broadcast '192.168.2.255'
config interface '3g'
option proto '3g'
option device '/dev/ttyUSB0'
option service 'umts'
option pincode '1234'
option username 'internet'
option password 'internet'
option apn 'web.vodafone.de'
config interface 'vpn0'
option ifname 'tun0'
option proto 'none'
option auto '1'
*********************************************
/etc/config/firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
option network 'lan'
config zone
option name 'wifi'
option input 'ACCEPT'
option output 'ACCEPT'
option network 'wifi'
option forward 'REJECT'
config zone
option name 'wwan'
option output 'ACCEPT'
option masq '1'
option mtu_fix '1'
option network '3g'
option input 'ACCEPT'
option forward 'REJECT'
config include
option path '/etc/firewall.user'
config forwarding
option dest 'lan'
option src 'wwan'
config forwarding
option dest 'wifi'
option src 'wwan'
config forwarding
option dest 'wwan'
option src 'lan'
config forwarding
option dest 'lan'
option src 'wifi'
config forwarding
option dest 'wwan'
option src 'wifi'
config rule
option name 'Allow-OpenVPN-Inbound'
option target 'ACCEPT'
option src '.*'
option proto 'udp'
option dest_port '1194'
config zone
option name 'vpn'
option input 'ACCEPT'
option forward 'ACCEPT'
option output 'ACCEPT'
option network 'vpn0'
config forwarding
option src 'vpn'
option dest 'wan'
*****************************************
/etc/config/openvpn:
config openvpn 'myvpn'
option enabled '1'
option dev 'tun'
option port '1194'
option proto 'udp'
option log '/tmp/openvpn.log'
option verb '3'
option ca '/etc/openvpn/ca.crt'
option cert '/etc/openvpn/ServerForVPN.crt'
option key '/etc/openvpn/ServerForVPN.key'
option server '10.8.0.0 255.255.255.0'
option dh '/etc/openvpn/dh2048.pem'
I can reach the Internet and
traceroute 10.8.0.1 and
traceroute 8.8.8.8
works.
Can somebody tell me what's my error?
Michael