Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Oct 3, 2021. It is now read-only.

Commit d03dacd

Browse files
Kernel IPv4 TCP Timestamp Disabled
1 parent 84731bc commit d03dacd

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

‎bin/darknet.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,17 @@ def __noipv6(self) -> None:
202202
subprocess.call(shlex.split("sysctl -w net.ipv6.conf.all.disable_ipv6=1"))
203203
subprocess.call(shlex.split("sysctl -w net.ipv6.conf.default.disable_ipv6=1"))
204204
subprocess.call(shlex.split("sysctl -w net.ipv6.conf.lo.disable_ipv6=1"))
205+
206+
207+
def __noip4ts(self) -> None:
208+
"""
209+
Disables Kernel IPv4 TCP Timestamps
210+
211+
Returns
212+
-------
213+
None
214+
"""
215+
subprocess.call(shlex.split("sysctl -w net.ipv4.tcp_timestamps=0"))
205216

206217

207218
def __ip4f(self) -> None:
@@ -651,6 +662,7 @@ def start(self, args) -> None:
651662

652663
print("Hardering System...")
653664
self.__ip4f()
665+
self.__noip4ts()
654666
self.__noipv6()
655667
self.__icmp()
656668
self.__mtp()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /