Could someone help me, please? I'm having a problem with TP-Link C7 router with OpenWrt version 18.06.1.
I am trying to setup GRE tunnel and configure based on openWRT documentation. But when I try to ping tunnel remote Endpoint, ICMP packets don't reach to my Router's Wan interface. Remote Endpoint tunnel is established correctly as I can see ICMP packets coming from remote endpoint to my WAN interface. but again they are not getting forward to GRE interface.
Below is my config for Router 1:
root@OpenWrt:~# ip route show
default via 192.168.231.254 dev eth0.2 proto static src 192.168.230.25
10.1.1.0/24 dev gre4-mygre proto kernel scope link src 10.1.1.1
192.168.1.0/24 dev br-lan proto kernel scope link src 192.168.1.1
192.168.230.0/23 dev eth0.2 proto kernel scope link src 192.168.230.25
config interface 'mygre'
option proto 'gre'
option ipaddr '192.168.230.25'
option peeraddr '192.168.230.226'
option mtu 1500
config interface 'mygre_static'
option proto 'static'
option ifname '@mygre'
option ipaddr '10.1.1.1'
option netmask '255.255.255.0'
I don't see any packets from gre interface to wan interface. I am not getting what I am missing here.
Now, I tried creating rule you mentioned but still traffic is not going through. 119:-A zone_wan_input -p gre -m comment --comment "!fw3: Allow-GRE" -j ACCEPT
I am new to openWRT and GRE so I am sure I am missing something basic here.
Ok. So I got gre routing working after installing kmod-nf-nathelper-extra package. But again after reboot, this nf-nathelper does not get loaded and packets do not get forwarded. I added "net.netfilter.nf_conntrack_helper = 1" also in /etc/sysctl.conf and added /etc/sysctl.d/local.conf(created this file and added same entry) but same result after reboot.