Skip to content

Commit

Permalink
Merge pull request #11 from hudra0/master
Browse files Browse the repository at this point in the history
Update dscptag.nft to use dynamic sets
  • Loading branch information
dlakelan authored Mar 25, 2024
2 parents cb9079c + a0c84ab commit 15c2500
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions dscptag.nft
Original file line number Diff line number Diff line change
Expand Up @@ -32,27 +32,35 @@ table inet dscptag {


set xfst4ack { typeof ip daddr . ip saddr . tcp dport . tcp sport
flags dynamic;
timeout 5m
}
set fast4ack { typeof ip daddr . ip saddr . tcp dport . tcp sport
flags dynamic;
timeout 5m
}
set med4ack { typeof ip daddr . ip saddr . tcp dport . tcp sport
flags dynamic;
timeout 5m
}
set slow4ack { typeof ip daddr . ip saddr . tcp dport . tcp sport
flags dynamic;
timeout 5m
}
set udp_meter4 {typeof ip saddr . ip daddr . udp sport . udp dport
flags dynamic;
timeout 5m
}
set udp_meter6 {typeof ip6 saddr . ip6 daddr . udp sport . udp dport
flags dynamic;
timeout 5m
}
set slowtcp4 {typeof ip saddr . ip daddr . tcp sport . tcp dport
flags dynamic;
timeout 5m
}
set slowtcp6 {typeof ip6 saddr . ip6 daddr . tcp sport . tcp dport
flags dynamic;
timeout 5m
}

Expand Down
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ done
echo "Downloading and setting up scripts..."

# Download and set execution permissions for the scripts
wget -O /etc/SimpleHFSCgamerscript.sh https://raw.githubusercontent.com/dlakelan/routerperf/nftables/SimpleHFSCgamerscript.sh && chmod a+x /etc/SimpleHFSCgamerscript.sh
wget -O /etc/hotplug.d/iface/13-SimpleHFSCGamerScriptHotplug https://raw.githubusercontent.com/dlakelan/routerperf/nftables/13-SimpleHFSCGamerScriptHotplug
mkdir -p /usr/share/nftables.d/ruleset-post/ && wget -O /usr/share/nftables.d/ruleset-post/dscptag.nft https://raw.githubusercontent.com/dlakelan/routerperf/nftables/dscptag.nft
wget -O /etc/SimpleHFSCgamerscript.sh https://raw.githubusercontent.com/dlakelan/routerperf/master/SimpleHFSCgamerscript.sh && chmod a+x /etc/SimpleHFSCgamerscript.sh
wget -O /etc/hotplug.d/iface/13-SimpleHFSCGamerScriptHotplug https://raw.githubusercontent.com/dlakelan/routerperf/master/13-SimpleHFSCGamerScriptHotplug
mkdir -p /usr/share/nftables.d/ruleset-post/ && wget -O /usr/share/nftables.d/ruleset-post/dscptag.nft https://raw.githubusercontent.com/dlakelan/routerperf/master/dscptag.nft

echo "Configuring veth interface..."

Expand Down

0 comments on commit 15c2500

Please sign in to comment.