howto/GRE on FreeBSD

  • Search
  • Home
  • All
  • Files
  • History
  • Latest Changes
Site Links
  • Home
    • Getting Started
    • Registry Authentication
    • Address Space
    • FAQ
  • How-To

    • Wireguard
    • Openvpn
    • IPsec With Public Keys
    • Tinc
    • GRE on FreeBSD
    • GRE on OpenBSD
    • IPv6 Multicast (PIM-SM)
    • Bird / Bird2
    • Quagga
    • OpenBGPD
    • Mikrotik RouterOS
    • EdgeRouter
    • Static routes on Windows
    • Universal Network Requirements
    • VyOS
  • Services

    • IRC
    • Whois registry
    • DNS
    • Public DNS
    • Looking Glasses
    • Repository Mirrors
    • Distributed Wiki
    • Certificate Authority
  • Internal

    • Internal services
    • APIs
    • Historical services
  • External Tools

    • Paste Board
    • Git Repositories

Table of Contents
  • GRE on FreeBSD
    • Requirements
    • Create a temporary gre tunnel
    • Create a persistent gre tunnel

dn42

GRE on FreeBSD

This page describes how to configure GRE tunnels on FreeBSD.

Requirements

  • Root access to a FreeBSD system.
  • Loaded if_gre.ko or device gre
  • A static IPv4 address on both ends if you would like to preserve your sanity.

Create a temporary gre tunnel

ifconfig gre$INDEX create
ifconfig gre$INDEX tunnel $TUNNEL_SRC $TUNNEL_DST
ifconfig gre$INDEX inet $LOCAL $REMOTE netmask 0xffffffff
ifconfig gre$INDEX descr $DESCR

Create a persistent gre tunnel

Add this to your rc.conf.

cloned_interfaces="$cloned_interfaces gre0"
ifconfig_gre0="10.0.0.1 10.0.0.2 netmask 0xffffffff tunnel 1.2.3.4 5.6.7.8 descr foo"

Hosted by: xuu, nurtic-vibe, toBee, burble | Accessible via: dn42, tor, i2p

Last edited by dn42 wiki, 2015-01-01 19:48:32