#1
15th April 2016, 02:01 PM
| |||
| |||
Gre openwrt
Sir I want to create a GRE Tunnel Between OpenWRT and pfSense so can you please tell me that how can I achieve the same
|
#2
15th April 2016, 02:01 PM
| |||
| |||
Re: Gre openwrt
Hey buddy the main advantage of a GRE tunnel is that it has interfaces inside the tunnel. This means that you can easily route traffic over the tunnel and also run routing protocols over them. GRE support is available in OpenWRT since the Barrier Breaker RC3 release (August 2014). It’s very new and GRE tunnel configuration is not available via the UI so it’s not for the faint of heart. pfSense Configuration First things first, configuring pfSense. Create a new GRE tunnel via Interfaces > (Assign) > GRE. Set Parent interface to LAN. Set GRE remote address to the address of the OpenWRT router (192.168.2.1) Set GRE tunnel local address to the tunnel’s inner IP on the pfSense side (192.168.250.2). Set GRE tunnel remote address to the tunnel’s inner IP on the other end (192.168.250.1). Set the netmask to 30, as the tunnel only has two IP addresses on it. Click Save. Create a new Interface for the GRE tunnel via Interfaces > (Assign) > Interface assignments. This step must be performed after creating the GRE tunnel, otherwise the Add option for a new interface will not be available. A new OPT interface will be created and the Network port should automatically select your new GRE tunnel. Manually select if not. Create a rule to permit traffic via Firewall > Rules > Your New Interface. Set the rule as you wish, a permit all rule may be the best place to start. OpenWRT Configuration Add the GRE tunnel and interface by editing /etc/config/interfaces. Use the following configuration as a template based on the previous diagram; Install the required packages kmod-gre and gre . This can be done on the LuCI interface via System > Software. Restart the networking daemon to bring up the new tunnel using /etc/init.d/network restart. You will briefly lose connectivity. |
|