aparcar / openwrt

Staging tree of Paul Spooren
Other
9 stars 1 forks source link

FS#1261 - GRE tunnels dont work #1132

Closed aparcar closed 6 years ago

aparcar commented 6 years ago

fredy:

LEDE version: 17.01.4, r3560-79f57e422d BusyBox v1.25.1 Device: TP-Link TL-WDR3600 v1

Steps to Reproduce:

config interface 'gre0' option proto 'gre' option ifname 'gre0' option peeraddr 'myfqn.example.com' option mtu '1476'

config interface 'gre0_static' option proto 'static' option ifname '@gre0' option ipaddr '192.168.0.2' option netmask '255.255.255.252'

root@lede-router:/etc/config# ping 192.168.0.1 PING 192.168.0.1 (192.168.0.1): 56 data bytes ping: sendto: Invalid argument

Have tried already to run just with kmod-gre package install and get the same result.

When I install the gre package with: "opkg install gre" I get the following output from logread:

Sun Jan 7 03:25:05 2018 daemon.notice netifd: Interface 'gre0' is now down Sun Jan 7 03:25:05 2018 daemon.notice netifd: Interface 'gre0' is setting up now Sun Jan 7 03:25:05 2018 daemon.notice netifd: gre0 (3448): ./gre.sh: eval: line 1: resolveip: not found

aparcar commented 6 years ago

dedeckeh:

Depending on your needs you need to install either the packages grev4 and/or grev6 to get the dependencies correct as both grev4 and grev6 have dependencies on resolveip and the corresponding gre kernel module. Can you try to install the package grev4 and check if the issue is fixed ?

aparcar commented 6 years ago

fredy:

Well, I believe you are right :)

I have done:

And now works.

So I guess the issue was the 'grev4' package missing which, as you mentioned, installed the resolveip package. Perhaps it should be a dependency of the other two.