79bf50f0bf3fc8fd88ee8bf63627f053a79f29cf
gre-plus-ipsec-debian.md
... | ... | @@ -77,12 +77,12 @@ sainfo address 1.2.3.4 47 address 5.6.7.8 47 { |
77 | 77 | ## Configure a GRE tunnel |
78 | 78 | Add this to /etc/network/interfaces: |
79 | 79 | ``` |
80 | -auto tun0 |
|
81 | -iface tun0 inet static |
|
80 | +auto gre1 |
|
81 | +iface gre1 inet static |
|
82 | 82 | address 10.0.0.1 |
83 | 83 | netmask 255.255.255.255 |
84 | - up ifconfig tun0 multicast |
|
85 | - pre-up iptunnel add tun0 mode gre local 1.2.3.4 remote 5.6.7.8 ttl 255 |
|
84 | + up ifconfig gre1 multicast |
|
85 | + pre-up ip tunnel add gre1 mode gre local 1.2.3.4 remote 5.6.7.8 ttl 255 |
|
86 | 86 | pointtopoint 10.0.0.2 |
87 | - post-down iptunnel del tun0 |
|
87 | + post-down ip tunnel del gre1 |
|
88 | 88 | ``` |