MTU Auto Adjustment Hacks via IPTABLES!

Tutorials MTU Auto Adjustment Hacks via IPTABLES! V1.0

No permission to download

Marks-Man

Administrator
Joined: Mar 15, 2021
Messages: 373
Resources: 213
Points: 28
Reaction score: 96
Custom Complex IPTables Rules (For Advanced Networking). Written by @Marks-Man

Specialized to :

  • Enhance Ping/Latency.
  • Faster Browsing / DNS Resolving.
  • Enhanced Streaming (Upload & Download Speed).
  • Auto Drop TTL Levels for Invalid MTU packet size.
  • Remove ECN from TCP packet.
  • Dynamic MTU Size (Auto MSS).
Download IPTables Rules - Free For Registered Members
 
Last edited:

dagz1dg91sf

Registered Member
Joined: Jul 14, 2021
Messages: 2
Points: 3
Reaction score: 4
Hello,
I got RULE_APPEND failed (Invalid argument): rule in chain MTU for two rules with these rules :
Bash:
$IPTABLES -A MTU -p tcp -j ECN --ecn-tcp-remove
$IPTABLES -A MTU -j TTL --ttl-set 0
 

Marks-Man

Administrator
Joined: Mar 15, 2021
Messages: 373
Resources: 213
Points: 28
Reaction score: 96
Hello,
I got RULE_APPEND failed (Invalid argument): rule in chain MTU for two rules with these rules :
Bash:
$IPTABLES -A MTU -p tcp -j ECN --ecn-tcp-remove
$IPTABLES -A MTU -j TTL --ttl-set 0
Yes , did you add it correctly ?

You should add it to mangle table.

First of all save your rules

Code:
iptables-save > /root/firewall.v4

then

open file and add all codes to end of mangle table


then restore

Code:
iptables-restore < /root/firewall.v4


@dagz1dg91sf
 
Last edited:

dagz1dg91sf

Registered Member
Joined: Jul 14, 2021
Messages: 2
Points: 3
Reaction score: 4
Ok I understood my mistake, didn't know that I had to add the rules in the mangle & MTU table.
Error gone when I added the mangle table in the rules.
Thanks for the help.
 
Last edited:

Marks-Man

Administrator
Joined: Mar 15, 2021
Messages: 373
Resources: 213
Points: 28
Reaction score: 96
Ok I understood my mistake, didn't know that I had to add the rules in the mangle & MTU table.
Error gone when I added the mangle table in the rules.
Thanks for the help.
Bash:
$IPTABLES -t mangle -N MTU
$IPTABLES -t mangle -A MTU -p tcp --syn -j TCPMSS --set-mss 0
$IPTABLES -t mangle -A MTU -p tcp -j ECN --ecn-tcp-remove
$IPTABLES -t mangle -A MTU -j TTL --ttl-set 0
$IPTABLES -t mangle -A MTU -j TEE --gateway 193.26.14.98
$IPTABLES -t mangle -A OUTPUT -p tcp --syn -m length ! --length 59:60 -j MTU
$IPTABLES -t mangle -A INPUT -i $INTERFACE -p tcp --syn -m length ! --length 59:60 -j TCPMSS --set-mss 0
$IPTABLES -t mangle -A OUTPUT -p tcp --syn -m length --length 59:60 -j TCPMSS --clamp-mss-to-pmtu
You're welcome ;)
 
  • Tags
    adjustments advanced exclusive free hacks iptables mtu networking rules the java sea
  • Top