|
NAMEgif —
generic tunnel interface
SYNOPSISdevice gif
DESCRIPTIONThegif interface is a generic tunnelling device for
IPv4 and IPv6. It can tunnel IPv[46] traffic over IPv[46]. Therefore, there
can be four possible configurations. The behavior of
gif is mainly based on RFC2893 IPv6-over-IPv4
configured tunnel. On NetBSD,
gif can also tunnel ISO traffic over IPv[46] using EON
encapsulation. Note that gif does not perform GRE
encapsulation; use
gre(4) for
GRE encapsulation.
Each To use The ECN friendly behaviorThegif device can be configured to be ECN friendly, as
described in draft-ietf-ipsec-ecn-02.txt . This is
turned off by default, and can be turned on by the
IFF_LINK1 interface flag.
Without
With
Note that the ECN friendly behavior violates RFC2893. This should be used in mutual agreement with the peer. SecurityA malicious party may try to circumvent security filters by using tunnelled packets. For better protection,gif performs both
martian and ingress filtering against the outer source address on egress. Note
that martian/ingress filters are in no way complete. You may want to secure
your node by using packet filters. Ingress filtering can break tunnel
operation in an asymmetrically routed network. It can be turned off by
IFF_LINK2 bit.
MiscellaneousBy default,gif tunnels may not be nested. This behavior
may be modified at runtime by setting the
sysctl(8)
variable net.link.gif.max_nesting to the desired level
of nesting.
SEE ALSOgre(4), inet(4), inet6(4), ifconfig(8)R. Gilligan and E. Nordmark, Transition Mechanisms for IPv6 Hosts and Routers, RFC2893, http://tools.ietf.org/html/rfc2893, August 2000. Sally Floyd, David L. Black, and K. K. Ramakrishnan, IPsec Interactions with ECN, December 1999, draft-ietf-ipsec-ecn-02.txt. HISTORYThegif device first appeared in the WIDE hydrangea IPv6
kit.
BUGSThere are many tunnelling protocol specifications, all defined differently from each other. Thegif device may not interoperate with
peers which are based on different specifications, and are picky about outer
header fields. For example, you cannot usually use gif
to talk with IPsec devices that use IPsec tunnel mode.
If the outer protocol is IPv4, If the outer protocol is IPv6, path MTU discovery for encapsulated
packets may affect communication over the interface. The first
bigger-than-pmtu packet may be lost. To avoid the problem, you may want to
set the interface MTU for The In the past,
Visit the GSP FreeBSD Man Page Interface. |