Categories
Network

Looks like Freenet is not secure

Our method is based on a simple observation. In our model, an observer who is one of g neighbors of the actual requester can expect to receive about 1/g of all requests, due to FOAF routing. Block locations, derived from a hash, are modeled as being evenly distributed on the circle. If the observer is actually two hops away from the original requester, then only about 1/gh of the requests will be received, assuming the requester has h neighbors.

PDF document Levine 2020

Combined with harvesting and adaptive search attacks, this attack explains why opennet is regarded by many core developers as hopelessly insecure. If you want good security you need to connect only to friends.

Freenet help

If somebody collects lot of hashes they can know what files a neighbour node is downloading and they also know the IP address. I thought Freenet was better than that. The friends only thing is not good. Do you have a friend that you want to know what you are downloading. If you collect enough “friends” there will at least one that will report what you are downloading.

The request must do a few hops before it is possible to see what is requested to make this secure.

I have not used Freenet for many years.

https://par.nsf.gov/servlets/purl/10281425

Categories
Network Uncategorized

IP address conflict can create lots of problems in a Windows domain

Lately i had problems logging in to some computers in my Windows domain. Error messages about computer not having account in the domain. When clicking on some computer in Explorer that path is not available. I noticed that one domain controller had failed to sync for a month. When i turned off that domain controller it got better. I decided to reinstall that DC. I could make it into domain controller. Server manager hanged on configuring AD DS service. In DCPROMO.LOG i saw

11/13/2022 02:04:27 [INFO] EVENTLOG (Error): NTDS Replication / Setup : 1125
The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.

Domain controller:
N2820.myaddomain.org

Additional Data

Error value:
1722 The RPC server is unavailable.

I did a search with Google. The reasons i found for that error Message is that some services are not running or DNS error. All services were running. After looking at DNS records for a long time i saw that they were there. 🤔I tried using dcdiag. It complained about DNS records missing. I tested with nslookup and dig. All records from netlogon.dns were available. That should be enough for promoting a computer to domain controller. I could not get the DNS server on my DC to listen to its IPv6 address. I gave up on that. I looked at the event logs on the DC to see if i could find some error message telling me why i could not promo another computer to a DC. I found an error saying that the was a IP address conflict for the IPv6 address. The error message was nice enough to tell me the MAC address for the other computer with the same address. When creating a Linux container a month ago i had given it the same IPv6 address as my domain controller. The DC refused then to use the address. That is why the DNS server could not listen to that address. I gave the container another IPv6 address. Restarted the DC. One computer that was still trying to be a DC succeeded. When i tried to promote another computer it also succeeded. 😀I know that an IP address conflict is bad. I am not surprised it created problems for the domain. The DNS and RPC requests went to the Linux container. It could not do anything. Windows then thought there was something wrong with the RPC server.

Categories
Network

Looks like Wireguard dont work with virt-io network adapter with Windows as a guest on KVM

Took me many hours to get Wireguard working in a Windows server 2022 VM. After many hours i understood that large UDP packets disappeared when they should go from the guest to the host. UDP packets over 1000 bytes just disappeared. First i set MTU to 1000 in the Windows guest. That made the network work. When i switch the virtual network adapter to e1000e instead of virt-io the UDP packets stopped disappearing.

You can see the network connections names with

netsh int ipv4 show sub

You can change the MTU in windows with

netsh int ipv4 set sub <Connection name> mtu=<size> store=persistent

example

netsh int ipv4 set sub "Wi-Fi 2" mtu=1492 store=persistent
Categories
Network

I tried to use 6rd to get IPv6 at home

It worked. I found a script that uses ip2route set up a 6rd tunnel on Linux. If you look at the script you see that the IPv6 address is calculated from the IPv4 address. That is bad. That means if your IPv4 address changes your IPv6 addresses will also change. I will continue to use a Hurricane electric tunnel. Then the IPv6 addresses will always be the same.

#!/bin/sh

## You must have a real routable IPv4 address for IPv6 rapid deployment (6rd)
## tunnels.
## Also make sure you have at least linux kernel 2.6.33 and you have enabled 6rd
## CONFIG_IPV6_SIT_6RD=y

PREFIX="2a02:2b64"                  # 6rd ipv6 prefix
GATEWAY=`dig +short 6rd.on.net.mk`  # 6rd gateway host

modprobe sit

## Try to autodetect the local ipv4 address
MYIPV4=`ip -o route get 8.8.8.8 | sed 's/.* src \([0-9.]*\) .*/\1/'`

## Generate an IPv6-RD address
MYIPV4_nodots=`echo ${MYIPV4} | tr . ' '`
IPV6=`printf "${PREFIX}:%02x%02x:%02x%02x::1" ${MYIPV4_nodots}`

## Setup the tunnel
ip tunnel add 6rd mode sit local ${MYIPV4} ttl 64
ip tunnel 6rd dev 6rd 6rd-prefix ${PREFIX}::/32
ip addr add ${IPV6}/32 dev 6rd
ip link set 6rd up
ip route add ::/0 via ::${GATEWAY} dev 6rd


## IPv6-rd allows you to have IPv6 network in your LAN too. Uncomment the
## following 3 lines on your Linux router and set the correct LAN interface.
## You might also want to run the 'radvd' sevice to enable IPv6 auto-configuration
## on the LAN.

# sysctl -w net.ipv6.conf.all.forwarding=1
# LANIF=eth0
# ip addr add ${IPV6}/64 dev ${LANIF}
Categories
Linux Network

Is it just me or are meters broken in nftables

iif eth0 tcp dport { smtp, 587 } ct state new counter meter smtp-meter { ip saddr limit rate over 6/hour burst 3 packets } nftrace set 0 counter drop

This rule was working for a long time. One month ago it stopped working. Now it never drops any packets.

Categories
Network

Scale-out file server is not good for sharing files

I thought the Scale-out fileserver role in Windows server cluster would be good for my file shares. I was wrong. Scale-out file server is for some special cases. It is mostly for Hyper-V and SQL server. If you use it as an ordinary file share it will be slow. Saving files to the cluster shares are much faster now that i have changed them to the older File server.

Categories
Network Tech

I gave up on running a two node Storage spaces direct cluster

It is not impossible to get two node S2D cluster to handle a failover, but it is difficult. The nodes must always check if they in the majority of nodes. If a node believes it is not in the majority it must immediately shutdown cluster resources. As soon as i shutdown one node in two node cluster there is doubt on the remaining node if it belongs to the majority. That is why you need a witness. I used a file share witness. One time when i shutdown a node the other node failed to read the file share witness and the cluster went down. I fixed that by removing the witness from the cluster and added it back. A few days later i shutdown one node and the storage pool on the remaining node went offline. It said something about majority disks missing. At first i did not understand what that meant. After reading about storage pool quorum i understood it. A storage pool must always check if it has a majority of disks connected or else it will shutdown. If there is the same count of drives on both nodes a pool can stay up if it owns the pool resource. I had three HDDs and one SSD on both nodes so i did not know how to fix that. That was when i gave up on a two node cluster. A three node cluster is much easier. If one node disappears there is no doubt about it the two remaining nodes are a majority and if the nodes have equal amount of drives there be no question about if the pool have a majority of drives.

Categories
Network

Maybe it was a mistake to DNSSEC sign my domain

Today i discovered that the zone was not validating any more. I have now set the valid period to 1 year and generated new signatures. I should not have to do anything for a year. I have to remember that in the end of this year i have resign my zone.