Merge pull request 'ipv6_picking' (#24) from ipv6_picking into master

Reviewed-on: #24
This commit is contained in:
cronekorkn 2025-08-09 12:43:09 +02:00
commit 7483d0c012
5 changed files with 17 additions and 5 deletions

View file

@ -2,6 +2,8 @@
cd "$OLDPWD"
pyenv install --skip-existing
if test -f .venv/bin/python && test "$(realpath .venv/bin/python)" != "$(realpath "$(pyenv which python)")"
then
echo "rebuilding venv für new python version"

View file

@ -50,7 +50,7 @@ def units(metadata):
},
'Network': {
'DHCP': network_conf.get('dhcp', 'no'),
'IPv6AcceptRA': network_conf.get('dhcp', 'no'),
'IPv6AcceptRA': network_conf.get('IPv6AcceptRA', 'no'),
'VLAN': set(
other_network_name
for other_network_name, other_network_conf in metadata.get('network', {}).items()

View file

@ -26,16 +26,23 @@ defaults = {
'qdisc-ppp0.service': {
'Unit': {
'Description': 'setup queuing discipline for interface ppp0',
'After': 'sys-devices-virtual-net-ppp0.device',
'After': {
'pppoe-isp.service',
'sys-devices-virtual-net-ppp0.device',
},
'PartOf': 'pppoe-isp.service',
'BindsTo': 'sys-devices-virtual-net-ppp0.device',
},
'Service': {
'Type': 'oneshot',
'ExecStart': '/sbin/tc qdisc replace root dev ppp0 cake bandwidth 30Mbit rtt 50ms diffserv4 nat egress',
'ExecStart': '/sbin/tc qdisc replace root dev ppp0 cake bandwidth 37Mbit internet besteffort triple-isolate nat egress memlimit 256mb',
# - no drops save
# - bis 37MBit keine retries bei: iperf3 --client 49.12.184.229 -t999 -i5 --bidir
#'ExecStart': '/sbin/tc qdisc replace root dev ppp0 cake bandwidth 37Mbit internet besteffort nat egress memlimit 256mb',
'RemainAfterExit': 'yes',
},
'Install': {
'WantedBy': 'network-online.target',
'WantedBy': 'multi-user.target',
},
}
},

View file

@ -71,6 +71,9 @@
'ipv4': {
'ip_forward': 1,
},
'ipv6': {
'ip_forward': 1,
},
},
},
'wireguard': {

View file

@ -1,7 +1,7 @@
{
'hostname': '135.125.239.125',
'groups': [
'debian-11',
'debian-12',
'dnsserver',
'monitored',
],