Skip to content
Userspace daemon in perl to handle Cisco GRE keepalives. Works in Linux, should work in any *nix derivative
Perl
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md because github mangles these. Sigh. Jun 17, 2015
gre-keepalive.pl Stop printing each time a packet is sent Sep 1, 2016

README.md

linux-gre-keepalive

Userspace daemon in perl to handle Cisco GRE keepalives. Works in Linux, should work in any *nix derivative

Requires Net::Pcap, NetPacket::IP, and Proc::Daemon

(all 3 have stable debian perl packages in the standard repositories)

Usage:

sysctl -w net.ipv4.ip_forward=1

sysctl -w net.ipv6.conf.all.forwarding=1

ip tunnel add mytunnel mode gre remote x.x.x.x local y.y.y.y ttl 255 pmtudisc

ip link set mytunnel up

./gre-keepalive.pl mytunnel

This daemon does not initiate keepalive packets, but does look for ones sent by the originating system and redirects them as a standard Cisco router would, thus causing the GRE tunnel to go up/up, and causing it to go up/down if connectivity is lost.

You can’t perform that action at this time.