ejizar

joined 3 days ago
[–] ejizar@thelemmy.club 1 points 5 hours ago

Yes. But curl ipinfo.io and ip addr doesn't match. The first command contacts a server outside the network, so it shows a public IP address while the other shows the internal IP addresses of the network interfaces.

[–] ejizar@thelemmy.club 1 points 18 hours ago

Thanks. It approximately took one or two weeks to setup it up and configure it step by step. I know using a distro without systemd is not the easiest thing for a beginner but I'm already running MX Linux for a while after I had used plain Debian, so I felt pretty confident. Also there are really good guides out there as I mentioned before. The most difficult part was to configure the VPN so that there are no leaks and stuff like that. For that I needed to a lot of tests and do some research. One thing that would be really cool is to do application based split tunneling or even workspace based split tunneling. But first I will need to find a solution to open the port of my torrent client to outside traffic to torrent properly. I think I have a solution to this.

[–] ejizar@thelemmy.club 1 points 18 hours ago (2 children)

Nope, I checked the traffic with mtr and it connects directly to the internal IP address of the server. Also I've bound the torrent client to the network interface of the VPN to ensure the traffic goes through the VPN.

I understand. The problem with the rules above though is that it would block my regular network interface even after the VPN goes down. That's why I created some postup and postdown rules for the Wireguard config. PostUp = iptables -I OUTPUT -o %i -p udp --dport 53 -j ACCEPT && iptables -A OUTPUT ! -o %i -p udp --dport 53 -j DROP PreDown = iptables -D OUTPUT -o %i -p udp --dport 53 -j ACCEPT && iptables -D OUTPUT ! -o %i -p udp --dport 53 -j DROP This only activates the rules while the VPN interface is on.

[–] ejizar@thelemmy.club 2 points 18 hours ago

That's because I live in a country with strict anti-piracy laws. Torrenting pirated stuff here without a VPN would be a death sentence. In the fact the whole piracy scene of my country revolves around stream hosting and one click hosters. Understandable if you consider the fact that anyone can see what you torrent sometimes even including your whole download history.

[–] ejizar@thelemmy.club 3 points 1 day ago (2 children)

Yes, it's very interesting although the networking stuff is not very fun.

[–] ejizar@thelemmy.club 2 points 1 day ago (4 children)

Why do you think that a VPN isn't viable?

I don't understand it, why doesn't these commands block internet access when they block DNS traffic like the ufw command?

[–] ejizar@thelemmy.club 3 points 1 day ago (2 children)

I already have considered this. Generally I prefer a dedicated IP over a shared IP, especially since I consider the use of private trackers. There are some use cases though like high OpSec operations or a higher privacy need were a shared IP is beneficial, but for me this is not needed.

 

Hello comrades, I recently started to selfhost my own VPN. I thought of using a regular VPN provider but I don't trust the cheap ones and the good ones are too costly for my needs. So I started to rent a cheap one core VPS (DMCA ignored of course) for 2,5€/month. Before that I tried some seedboxes from some cheap providers, but the amount of control you have there was absolutely terrible. If they have SSH access, you have no sudo permission.

One of those providers I tried just deploys docker containers and then using some fancy marketing they make a good amount of cash from something that one can do oneself with a little bit of technical knowledge. And then when something doesn't work; good luck my friend.

So that's why I choose a VPS where you have maximum control. Setting it all up including security measures and a custom OS is very fun. My distro of choice is Devuan. I'm running a Debian based distro myself and having no systemd not only boosts the startup time, but saves some system resources, which is especially important on a server with 1 GB RAM.

Installing Devuan was quite an adventure. Navigating their website to find the right download is like cruising a wild jungle. After choosing a mirror to downloaded from, one has to check the name of the latest release. After that I selected "installer-iso". In there I grabed the netinstall. From there the real adventure began. Among the "standard stuff" I had to specify the DNS and netmask, nothing wild. I didn't installed a desktop environment of course, just the ssh-server components.

I then followed Wolgangs guide to setup SSH. Managing a computer without a desktop environment is something I never had done before and while on a desktop PC this can be a horrifying experience, it's really fun to operate a remote system via command line. For enhanced security I activated and configured ufw. Many distros comes preinstalled with gufw, so setting up ufw wasn't a big deal.

Without systemd many Wireguard install script doesn't work, so I installed Wireguard via docker-compose with the help of Christian Lempas wonderful guide. Amazing guy. I had to enter the DNS servers manually so that the actual DNS addresses of the server are used.

I tried to route IPv6 traffic through the VPN by entering the IPv6 address in brackets into the docker-compose.yaml, adding ::/0 in the AllowedIPs, but it all didn't worked. So I had to deactivate IPv6 on my system and in the network manager. This stopped all IPv6 leaks.

As killswitch I found this easy method. I tested it and it works. No IP-leaks anymore.

To prevent DNS leaks I found these commands: sudo iptables -A OUTPUT -p udp --dport 53 -j DROP, sudo iptables -A OUTPUT -p tcp --dport 53 -j DROP. I tried the ufw equivalent sudo ufw deny out 53/udp, sudo ufw deny out 53/tcp, but it blocks internet access. I make the iptables persistent with iptables-save since iptables-persistent conflicts with gufw and ufw.

With this setup I started my torrent client and saw that I'm barely seeding. That's not cool. I tried to set up port forwarding with a lot of iptables and routing tables like this one but when checking the port it's always closed.

So what now? My goal is to torrent over the I2P. I see a lot of potential in the I2P. It is basically what people envisioned the internet to be in the 90s. Since the internet is a military technology, freedom was never implicated, so even with a lot of obfuscation and circumvention, there is always some trouble when using clearnet. My intention with the VPN is to port over clearnet torrents to I2P. Thus the reliance on VPNs can be decreased.

[–] ejizar@thelemmy.club 0 points 3 days ago (2 children)

In your case Nobara is the perfect distro. It comes with steam preinstalled and has a lot of gaming tweaks. I used it as a daily driver a year ago, but it wasn't something for me.

[–] ejizar@thelemmy.club 0 points 3 days ago (4 children)

Will not happen. Privacy conscious people who have evaded Microsoft don't use Steam. Being closed source software, they collect huge amounts of data.