diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-21 15:08:11 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-03-21 15:08:11 +0100 |
commit | 72fb9f2570974680b63a1f327fe50ea20c28b96b (patch) | |
tree | c2abb680b792eb253c6c76fdafd720809b1113f6 /src | |
parent | 483ac75ea9745c139ded0b734661252c13f67fc7 (diff) |
disable IPv6 on the rsppp0 TUN device
rsdsl_pppoe does not support IPv6CP and will constantly complain about invalid EtherTypes due to the kernel trying to autoconfigure using NDP Neighbor-Solicitations
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 38b79c0..950d165 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,6 +68,9 @@ fn configure_wan() { } fn configure_rsppp0() -> Result<()> { + // I've never seen ISPs tunnel IPv6 in PPP and haven't implemented it. + fs::write("/proc/sys/net/ipv6/conf/rsppp0/disable_ipv6", "1")?; + link::up("rsppp0".into())?; let mut file = File::open(rsdsl_ip_config::LOCATION)?; |