0fa2b91788f5e7d9601aaa6e28b4faaafee4c994
gre-on-freebsd.md
... | ... | @@ -0,0 +1,19 @@ |
1 | +# GRE on FreeBSD |
|
2 | + |
|
3 | +This page describes how to configure GRE tunnels on FreeBSD. |
|
4 | + |
|
5 | +## Requirements |
|
6 | +* Root access to a FreeBSD system. |
|
7 | +* Loaded if_gre.ko or device gre |
|
8 | +* A static IPv4 address on both ends if you would like to preserve your sanity. |
|
9 | + |
|
10 | +## Create a temporary gre tunnel |
|
11 | + ifconfig gre$INDEX create |
|
12 | + ifconfig gre$INDEX tunnel $TUNNEL_SRC $TUNNEL_DST |
|
13 | + ifconfig gre$INDEX inet $LOCAL $REMOTE netmask 0xffffffff |
|
14 | + ifconfig gre$INDEX descr $DESCR |
|
15 | + |
|
16 | +## Create a persistent gre tunnel |
|
17 | +Add this to your rc.conf. |
|
18 | + cloned_interfaces="$cloned_interfaces gre0" |
|
19 | + ifconfig_gre0="10.0.0.1 10.0.0.2 netmask 0xffffffff tunnel 1.2.3.4 5.6.7.8 descr foo" |
|
... | ... | \ No newline at end of file |