@SexualPolytope
@lemmy.sdf.orghttps://reddit.lol/r/linux/comments/14ygfdk/linux_saved_my_life/
I'm an Indian guy in my twenties, living in US. I used to have cornflakes and the like for breakfast, but recently I turned lactose intolerant. I hate cornflakes without the milk.
There are a lot of breakfast options coming from my culture, but I need something that doesn't take time to make. I'm a lazy bum and can barely make it in time to my university as it is. If anyone has ideas, please let me know.
My goal is to forward port 8096
from my private server to my public server. That, is any traffic at public server's port 8096
should be tunneled to port 8096 of my private server and back.
I've set up a wireguard
tunnel and ping
is working from one device to the other. In this, 10.8.0.1
is the private server and 10.8.0.2
is the public server.
Here are my config files (/etc/wireguard/wg0
).
--- On the public server ---
[Interface]
Address = 10.8.0.2/24
ListenPort = 51820
PrivateKey = *****************************************
# packet forwarding
PreUp = sysctl -w net.ipv4.ip_forward=1
# port forwarding
PreUp = firewall-cmd --zone=public --add-port 8096/tcp
PreUp = iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 8096 -j DNAT --to-destination 10.8.0.1:8096
PostDown = iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 8096 -j DNAT --to-destination 10.8.0.1:8096
PostDown = firewall-cmd --zone=public --remove-port 8096/tcp
# packet masquerading
PreUp = iptables -t nat -A POSTROUTING -o wg0 -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o wg0 -j MASQUERADE
[Peer]
PublicKey = *****************************************
AllowedIPs = 10.8.0.1
--- On the private server ---
[Interface]
Address = 10.8.0.1/24
PrivateKey = *****************************************
[Peer]
PublicKey = *****************************************
AllowedIPs = 10.8.0.2
Endpoint = <public-server-addr>:51820
PersistentKeepalive = 25
Now, I'm trying to test the connection using netcat
. I'm listening from my private server using nc -l 8096
(I've made sure that the port is unblocked) and trying to connect from a third device using nc <public-server-addr> 8096
but it's not working.
I have no idea what's going on here. Some help from experienced people is very appreciated.
https://git.kaki87.net/KaKi87/userscripts/src/branch/master/fediverseRedirector
userscripts
I like to cook, and for that I need a place where I can keep all my recipes. I'm currently using the app My Recipe Box. But it's closed source and full of ads. While the pro version is pretty cheap, I wanted to see if there were any open source apps for this.
Selfhosted apps will be nice. I'm fine with web access and no native app as well. If not selfhosted, I can also manage with open source apps with automatic backup of some sort.
The only feature that I really need is recipe scraping. Thanks for all your suggestions.