--- a/proxy/tun/stack.go
+++ b/proxy/tun/stack.go
@@ -99,14 +99,18 @@
 		mtu:       int(options.MTU),
 		window:    tcpWindow,
 		addresses: options.Addresses,
-		verify:    options.Remote,
-		stamps:    options.Remote,
+		// 4AXK: и для своего TUN — программы обхода блокировок (zapret, GoodbyeDPI) подмешивают поддельные
+		// пакеты с устаревшим временем или неверной суммой: в расчёте, что TCP их выбросит, как у системы
+		verify:    true,
+		stamps:    true,
 		conns:     make(map[flow]*tcpConn),
 		sockets:   make(map[netip.AddrPort]*udpSocket),
 	}
 	if t, ok := options.Tun.(segmenter); ok && t.Segments() {
 		s.segmenter = t
 		s.window = tcpLargeWindow
+		// 4AXK: в сегментах ядра Linux суммы ещё не посчитаны
+		s.verify = options.Remote
 	}
 	if options.Remote {
 		s.window = tcpLargeWindow
--- a/proxy/tun/tcp_lightweight.go
+++ b/proxy/tun/tcp_lightweight.go
@@ -81,6 +81,9 @@
 	errTCPUnreachable = errors.New("destination unreachable")
 )
 
+// tcpStaleStamp is how far back the time of a segment may be (4AXK)
+const tcpStaleStamp = 10000
+
 // tcpStarted is where the times that segments carry count from
 var tcpStarted = time.Now()
 
@@ -442,6 +445,17 @@
 	}
 }
 
+// stale tells if the segment has a time from long before the last one that was taken: zapret moves the time of its
+// fakes back by 600000. What is only a little older is a segment that came late, and is taken. c.mu is held
+func (c *tcpConn) stale(s segment) bool {
+	for kind, value, o := nextOption(s.options); kind != 0; kind, value, o = nextOption(o) {
+		if kind == 8 && len(value) == 8 {
+			return int32(binary.BigEndian.Uint32(value)-c.stamp) < -tcpStaleStamp
+		}
+	}
+	return false
+}
+
 // input takes a segment of the connection. It returns false if the connection is gone
 // and the segment is the start of another one
 func (c *tcpConn) input(s segment) bool {
@@ -503,6 +517,11 @@
 		return true
 	}
 	if c.stamps {
+		// 4AXK: PAWS (RFC 7323): время раньше уже принятого — старый или поддельный сегмент
+		if c.stale(s) {
+			c.sendAck()
+			return true
+		}
 		c.stamped(s)
 	}
 	if !c.established {
