mirror of
https://git.dn42.dev/wiki/wiki.git
synced 2024-11-23 07:43:29 +01:00
Updated gre-plus-ipsec-debian (markdown)
This commit is contained in:
parent
b45e220881
commit
79bf50f0bf
@ -77,12 +77,12 @@ sainfo address 1.2.3.4 47 address 5.6.7.8 47 {
|
|||||||
## Configure a GRE tunnel
|
## Configure a GRE tunnel
|
||||||
Add this to /etc/network/interfaces:
|
Add this to /etc/network/interfaces:
|
||||||
```
|
```
|
||||||
auto tun0
|
auto gre1
|
||||||
iface tun0 inet static
|
iface gre1 inet static
|
||||||
address 10.0.0.1
|
address 10.0.0.1
|
||||||
netmask 255.255.255.255
|
netmask 255.255.255.255
|
||||||
up ifconfig tun0 multicast
|
up ifconfig gre1 multicast
|
||||||
pre-up iptunnel add tun0 mode gre local 1.2.3.4 remote 5.6.7.8 ttl 255
|
pre-up ip tunnel add gre1 mode gre local 1.2.3.4 remote 5.6.7.8 ttl 255
|
||||||
pointtopoint 10.0.0.2
|
pointtopoint 10.0.0.2
|
||||||
post-down iptunnel del tun0
|
post-down ip tunnel del gre1
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user