Enable ESN in fastdp-crypto
This commit is contained in:
1 parent
60323d0960
commit
50985dee90
4 files changed
+8
-5
No files matched your search
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
url = https://github.com/weaveworks/build-tools
|
url = https://github.com/weaveworks/build-tools
|
||||||
[submodule "vendor/github.com/vishvananda/netlink"]
|
[submodule "vendor/github.com/vishvananda/netlink"]
|
||||||
path = vendor/github.com/vishvananda/netlink
|
path = vendor/github.com/vishvananda/netlink
|
||||||
url = https://github.com/brb/netlink.git
|
url = https://github.com/weaveworks/netlink.git
|
||||||
[submodule "vendor/github.com/gorilla/mux"]
|
[submodule "vendor/github.com/gorilla/mux"]
|
||||||
path = vendor/github.com/gorilla/mux
|
path = vendor/github.com/gorilla/mux
|
||||||
url = https://github.com/gorilla/mux.git
|
url = https://github.com/gorilla/mux.git
|
||||||
|
|||||||
@@ -126,7 +126,10 @@ iptables -t filter -A OUTPUT ! -p esp -m policy --dir out --pol none \
|
|||||||
-m mark --mark ${MARK} -j DROP
|
-m mark --mark ${MARK} -j DROP
|
||||||
```
|
```
|
||||||
|
|
||||||
# Misc
|
## ESN
|
||||||
|
|
||||||
|
To prevent from cycling SeqNo which makes replay attacks possible, we use
|
||||||
|
64-bit extended sequence numbers known as [ESN](esn).
|
||||||
|
|
||||||
## MTU
|
## MTU
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -195,7 +195,6 @@ func (ipsec *IPSec) Destroy(localPeer, remotePeer mesh.PeerName, connUID uint64,
|
|||||||
defer ipsec.Unlock()
|
defer ipsec.Unlock()
|
||||||
|
|
||||||
// Destroy inbound
|
// Destroy inbound
|
||||||
ipsec.log.Infof(">>>>>>>>>>>>>>>>>> DESTROY <<<<<<<<<<<<<<<<<<<<<<")
|
|
||||||
|
|
||||||
if inSPIInfo, ok := ipsec.spiInfo[inSPIID]; ok {
|
if inSPIInfo, ok := ipsec.spiInfo[inSPIID]; ok {
|
||||||
ipsec.log.Infof("ipsec: destroy: in %s -> %s 0x%x", remoteIP, localIP, inSPIInfo.spi)
|
ipsec.log.Infof("ipsec: destroy: in %s -> %s 0x%x", remoteIP, localIP, inSPIInfo.spi)
|
||||||
@@ -444,7 +443,8 @@ func xfrmAllocSpiState(srcIP, dstIP net.IP) *netlink.XfrmState {
|
|||||||
Dst: dstIP,
|
Dst: dstIP,
|
||||||
Proto: netlink.XFRM_PROTO_ESP,
|
Proto: netlink.XFRM_PROTO_ESP,
|
||||||
Mode: netlink.XFRM_MODE_TRANSPORT,
|
Mode: netlink.XFRM_MODE_TRANSPORT,
|
||||||
ReplayWindow: 32,
|
ReplayWindow: 256,
|
||||||
|
ESN: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
Submodule vendor/github.com/vishvananda/netlink updated: c540d7a60a...1109360bd7.
Reference in new issue
Block a user