1
0

Use DSL now

This commit is contained in:
clerie 2021-08-28 18:01:49 +02:00
parent c55c0d7367
commit 2d7483e6fe

View File

@ -33,8 +33,8 @@
];
# Network
## DSL-Uplink
networking.vlans."enp1s0.101" = {
id = 101;
networking.vlans."enp1s0.7" = {
id = 7;
interface = "enp1s0";
};
## LTE-Uplink
@ -42,7 +42,6 @@
id = 102;
interface = "enp1s0";
};
networking.interfaces."enp1s0.102".useDHCP = true;
## Heimnetz
networking.vlans."enp1s0.201" = {
id = 201;
@ -70,7 +69,7 @@
networking.nat = {
enableIPv6 = true;
enable = true;
externalInterface = "enp1s0.102";
externalInterface = "ppp-ntvdsl";
internalIPv6s = [ "fd00:152:152::/48" "fd00:3214:9453:4920::/64"];
internalIPs = [ "10.152.0.0/16" "192.168.32.0/24" ];
};
@ -122,6 +121,26 @@
iptables -A FORWARD -o enp1s0.202 -j DROP
'';
services.pppd = {
enable = true;
peers.ntvdsl = {
config = ''
plugin rp-pppoe.so enp1s0.7
user "dsl-31997-001#regio@bsa-vdsl"
ifname ppp-ntvdsl
persist
maxfail 0
holdoff 5
noipdefault
mtu 1492
hide-password
defaultroute
+ipv6
'';
};
};
# Routing tables
# Table: 10000
# - primary routes