Skip to content

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

Notifications You must be signed in to change notification settings

ifa6/linux-gre-keepalive

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%