aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-05-06 14:38:42 +0200
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-05-06 14:38:54 +0200
commit223d986f1ac0b8121314077079effb5fb5aa85c9 (patch)
tree6f81b1c9499fa70bc2cf7a9e6423b221c6e37274
parentdb1d62a0d20183bbda301f177b9d43e548be6b6b (diff)
switch from manual to auto mss clamping
-rw-r--r--Cargo.lock6
-rw-r--r--Cargo.toml2
-rw-r--r--src/main.rs4
3 files changed, 6 insertions, 6 deletions
diff --git a/Cargo.lock b/Cargo.lock
index f1f60f2..398ce5f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -402,8 +402,8 @@ dependencies = [
[[package]]
name = "rustables"
-version = "0.11.0"
-source = "git+https://github.com/rsdsl/rustables.git#a78962f91ae04da631de4908851d1d3e7983d032"
+version = "0.12.1"
+source = "git+https://github.com/rsdsl/rustables.git#93724f6b9bac1df223b537f8025fbdbda39bec88"
dependencies = [
"bindgen",
"bitflags",
@@ -419,7 +419,7 @@ dependencies = [
[[package]]
name = "rustables-macros"
version = "0.1.1"
-source = "git+https://github.com/rsdsl/rustables.git#a78962f91ae04da631de4908851d1d3e7983d032"
+source = "git+https://github.com/rsdsl/rustables.git#93724f6b9bac1df223b537f8025fbdbda39bec88"
dependencies = [
"once_cell",
"proc-macro-error",
diff --git a/Cargo.toml b/Cargo.toml
index 74a2629..93782e5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,5 +7,5 @@ edition = "2021"
[dependencies]
failure = "0.1.8"
-rustables = { git = "https://github.com/rsdsl/rustables.git", version = "0.11.0" }
+rustables = { git = "https://github.com/rsdsl/rustables.git", version = "0.12.1" }
thiserror = "1.0"
diff --git a/src/main.rs b/src/main.rs
index 295a999..028abe0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -134,14 +134,14 @@ fn filter() -> Result<()> {
.iface("rsppp0")?
.protocol(Protocol::TCP)
.syn()?
- .set_mss(1452);
+ .clamp_mss_to_pmtu();
batch.add(&clamp_mss_inbound, MsgType::Add);
let clamp_mss_outbound = Rule::new(&forward)?
.oface("rsppp0")?
.protocol(Protocol::TCP)
.syn()?
- .set_mss(1452);
+ .clamp_mss_to_pmtu();
batch.add(&clamp_mss_outbound, MsgType::Add);
let allow_established = Rule::new(&forward)?.established()?.accept();