diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-05-06 16:47:53 +0200 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-05-06 16:47:53 +0200 |
commit | 50aae35ee51d59e53629f13b254697bff69cc953 (patch) | |
tree | 1f5ad72989d6cad03b4a76cfb3a895cd63a7c068 | |
parent | 223d986f1ac0b8121314077079effb5fb5aa85c9 (diff) |
allow inbound 6in4 traffic
-rw-r--r-- | Cargo.lock | 6 | ||||
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/main.rs | 3 |
3 files changed, 7 insertions, 4 deletions
@@ -402,8 +402,8 @@ dependencies = [ [[package]] name = "rustables" -version = "0.12.1" -source = "git+https://github.com/rsdsl/rustables.git#93724f6b9bac1df223b537f8025fbdbda39bec88" +version = "0.13.0" +source = "git+https://github.com/rsdsl/rustables.git#bf3a986d1369de8c8cf5b558591d2d87bebab46e" dependencies = [ "bindgen", "bitflags", @@ -419,7 +419,7 @@ dependencies = [ [[package]] name = "rustables-macros" version = "0.1.1" -source = "git+https://github.com/rsdsl/rustables.git#93724f6b9bac1df223b537f8025fbdbda39bec88" +source = "git+https://github.com/rsdsl/rustables.git#bf3a986d1369de8c8cf5b558591d2d87bebab46e" dependencies = [ "once_cell", "proc-macro-error", @@ -7,5 +7,5 @@ edition = "2021" [dependencies] failure = "0.1.8" -rustables = { git = "https://github.com/rsdsl/rustables.git", version = "0.12.1" } +rustables = { git = "https://github.com/rsdsl/rustables.git", version = "0.13.0" } thiserror = "1.0" diff --git a/src/main.rs b/src/main.rs index 028abe0..1cedbdb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -85,6 +85,9 @@ fn filter() -> Result<()> { let allow_icmp6 = Rule::new(&input)?.icmpv6().accept(); batch.add(&allow_icmp6, MsgType::Add); + let allow_6in4 = Rule::new(&input)?.ip6in4().accept(); + batch.add(&allow_6in4, MsgType::Add); + let deny_wan4 = Rule::new(&input)?.iface("rsppp0")?.drop(); batch.add(&deny_wan4, MsgType::Add); |