Internet -> Main Router (192.168.1.1) <- Ethernet -> Open WRT (Dlink DSL 2750U) 192.168.1.98
New to the world of OpenWrt. Using Dlink DSL 2750U, got it flashed with latest 15.05.1 chaos calmer. Able to setup successfully OpenVPN as per the steps at openwrt tutorials at nordvpn site.
I can see vpn tunnel to be running, but when I connect my wireless devices with dlink router, traffic is not routable from vpn tunnel. It is going normally to the internet. Following are the configs. Where I could be wrong?
root@OpenWrt:/etc/config# cat network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd9b:a069:030c::/48'
config interface 'lan'
option ifname 'eth0.1'
option force_link '1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.1.98'
option gateway '192.168.1.1'
option dns '192.168.1.1'
option type 'bridge'
config switch
option name 'eth0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'eth0'
option vlan '1'
option ports '0 1 2 3 8t'
config interface 'nordvpntun'
option ifname 'tun0'
option _orig_ifname 'tun0 wlan0'
option _orig_bridge 'true'
option proto 'none'
Routes
root@OpenWrt:/etc/config# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 br-lan
10.7.7.0 * 255.255.255.0 U 0 0 0 tun0
1xx.5x.5x.9x 192.168.1.1 255.255.255.255 UGH 0 0 0 br-lan
192.168.1.0 * 255.255.255.0 U 0 0 0 br-lan
Firewall
root@OpenWrt:/etc/config# cat firewall
config defaults
option syn_flood '1'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'REJECT'
config zone
option name 'lan'
list network 'lan'
option input 'ACCEPT'
option output 'ACCEPT'
option forward 'ACCEPT'
config zone
option name 'wan'
list network 'wan'
list network 'wan6'
option input 'REJECT'
option output 'ACCEPT'
option forward 'REJECT'
option masq '1'
option mtu_fix '1'
config forwarding
option src 'lan'
option dest 'wan'
config rule
option name 'Allow-DHCP-Renew'
option src 'wan'
option proto 'udp'
option dest_port '68'
option target 'ACCEPT'
option family 'ipv4'
config rule
option name 'Allow-Ping'
option src 'wan'
option proto 'icmp'
option icmp_type 'echo-request'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-IGMP'
option src 'wan'
option proto 'igmp'
option family 'ipv4'
option target 'ACCEPT'
config rule
option name 'Allow-DHCPv6'
option src 'wan'
option proto 'udp'
option src_ip 'fe80::/10'
option src_port '547'
option dest_ip 'fe80::/10'
option dest_port '546'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-MLD'
option src 'wan'
option proto 'icmp'
option src_ip 'fe80::/10'
list icmp_type '130/0'
list icmp_type '131/0'
list icmp_type '132/0'
list icmp_type '143/0'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Input'
option src 'wan'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
list icmp_type 'router-solicitation'
list icmp_type 'neighbour-solicitation'
list icmp_type 'router-advertisement'
list icmp_type 'neighbour-advertisement'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config rule
option name 'Allow-ICMPv6-Forward'
option src 'wan'
option dest '*'
option proto 'icmp'
list icmp_type 'echo-request'
list icmp_type 'echo-reply'
list icmp_type 'destination-unreachable'
list icmp_type 'packet-too-big'
list icmp_type 'time-exceeded'
list icmp_type 'bad-header'
list icmp_type 'unknown-header-type'
option limit '1000/sec'
option family 'ipv6'
option target 'ACCEPT'
config include
option path '/etc/firewall.user'
config rule
option src 'wan'
option dest 'lan'
option proto 'esp'
option target 'ACCEPT'
config rule
option src 'wan'
option dest 'lan'
option dest_port '500'
option proto 'udp'
option target 'ACCEPT'
config zone
option name 'vpnfirewall'
option input 'REJECT'
option output 'ACCEPT'
option masq '1'
option mtu_fix '1'
list network 'nordvpntun'
option forward 'REJECT'
config forwarding
option src 'lan'
option dest 'vpnfirewall'
There is no wan interface.
root@OpenWrt:/etc# ifconfig
br-lan Link encap:Ethernet HWaddr
inet addr:192.168.1.98 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fd9b:a069:30c::1/60 Scope:Global
inet6 addr: fe80::aef1:dfff:fee7:f930/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:49604 errors:0 dropped:0 overruns:0 frame:0
TX packets:39928 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:5990081 (5.7 MiB) TX bytes:8667271 (8.2 MiB)
eth0 Link encap:Ethernet HWaddr
inet6 addr: fe80::aef1:dfff:fee7:f930/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:119864 errors:0 dropped:19 overruns:0 frame:0
TX packets:97347 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:25868113 (24.6 MiB) TX bytes:22216057 (21.1 MiB)
eth0.1 Link encap:Ethernet HWaddr
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:62430 errors:0 dropped:0 overruns:0 frame:0
TX packets:50035 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:14046107 (13.3 MiB) TX bytes:10168170 (9.6 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:3923 errors:0 dropped:0 overruns:0 frame:0
TX packets:3923 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:270342 (264.0 KiB) TX bytes:270342 (264.0 KiB)
tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.7.7.83 P-t-P:10.7.7.83 Mask:255.255.255.0
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:11 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:836 (836.0 B) TX bytes:912 (912.0 B)
wlan0 Link encap:Ethernet HWaddr
inet6 addr: fe80::aef1:dfff:fee7:f931/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7217 errors:0 dropped:0 overruns:0 frame:0
TX packets:21026 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1059594 (1.0 MiB) TX bytes:8387712 (7.9 MiB)