Can't Access FreeBSD Packages Due to Filtering

Hi, due to very heavy filtering in Iran, I cannot install/update/upgrade FreeBSD packages.
I found several FreeBSD mirrors with servers located in Iran, but even after configuring them, I still get no results. This is my conf:

/etc/pkg/FreeBSD.conf:
Code:
FreeBSD: {
  url: "pkg+https://mirror.0-1.cloud/freebsd/${ABI}/quarterly",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}
FreeBSD-kmods: {
  url: "pkg+https://mirror.0-1.cloud/freebsd//${ABI}/kmods_quarterly_${VERSION_MINOR}",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

I even ran the command sudo pkg update -, but I got the message "0.0 k/s - stalled."
I tried using these two mirrors, but they didn't work:

Someone told me that FreeBSD does this for security reasons and that using other mirrors is not possible.
Please let me know if you have any ideas about this issue. Is there a way to bypass this problem?
Access to a VPN is not available, and I can only solve the problem through a server located within the country. For programming languages and frameworks, I was able to find solutions, but there are no sanction-circumvention tools for this issue, and they do not support this operating system and its repositories.

Thanks
 
In those websites (they are not package mirrors, as previously established) there seems to be part of the FreeBSD base system in different formats, but I doubt that you can find the ports/packages there (they are probably too big). Anyway you can try to investigate further those websites and see what you can get from them by downloading this and that locally and then see what you can do from there. If you can contact those websites, maybe they can help you understand how can you use what they store.

Edit: You should somehow check if you can trust them. They are not official.

Another thing you can do is nothing. Make do with what you've got. FreeBSD is renowned for being a very robust system, so you probably can work with your current system for months or years without updating it.
 
In those websites (they are not package mirrors, as previously established) there seems to be part of the FreeBSD base system in different formats, but I doubt that you can find the ports/packages there (they are probably too big). Anyway you can try to investigate further those websites and see what you can get from them by downloading this and that locally and then see what you can do from there. If you can contact those websites, maybe they can help you understand how can you use what they store.

Edit: You should somehow check if you can trust them. They are not official.

Another thing you can do is nothing. Make do with what you've got. FreeBSD is renowned for being a very robust system, so you probably can work with your current system for months or years without updating it.
Honestly, I don't trust any of the mirrors at all, but I'm really forced to use them. Even to install other tools like Laravel, I had to use a mirror, which is completely unsafe :( I've submitted a request ticket for FreeBSD packages to the support team of one of those sites. Thanks.
 
Downloading a single package without its dependencies is going to be hard to install locally, but it can be a start. You download that package, try to install it locally, see what dependencies are missing, and then get the packages of those dependencies.

I'm talking very theoretically here. I have no experience in doing this and I wouldn't know how to do it right now without first reading the right section of the pkg man page and some others, I guess.

Edit: I'd also recommend that you to study that spoofpi util that nxjoseph pointed out. It seems like something very practical for your circumstances.
 
Back
Top