openwrt GRE settings

Set GRE in the network:

config interface 'gre'

option peeraddr '192.168.11.244'

option man '1500'

option proto 'gre'

option zone 'wan'

option ttl '255'


config interface 'gres'

option ifname '@gre'

option proto 'static'

option ipaddr '10.0.0.2'

option netmask '255.255.255.0'

Add a firewall rule to allow GRE into the router



View routing table:

~# 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 eth1

1.1.1.1         *               255.255.255.255 UH    0      0        0 br-lan

10.0.0.0 * 255.255.255.0 U 0 0 0 gre-gre

192.168.1.0     *               255.255.255.0   U     0      0        0 eth1

192.168.1.1     *               255.255.255.255 UH    0      0        0 eth1

192.168.2.0 * 255.255.255.0 U 0 0 0 gre-gre

192.168.10.0    *               255.255.255.0   U     0      0        0 br-lan

192.168.11.244  192.168.1.1     255.255.255.255 UGH   0      0        0 eth1


If there is no firewall, there will be problems.



Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324775739&siteId=291194637