• 3 Posts
  • 32 Comments
Joined 11 days ago
cake
Cake day: February 27th, 2026

help-circle









  • I had something like this set up where essentially my wireguard VPS acted as a proxy that allowed me to forward all ports to my local machine that’s connected to it.

    I had to use AI to figure this out, and I still don’t get it. Here are the commands that I saved:

    ip route add 10.0.0.2/32 dev wg0;
    iptables -A FORWARD -i eth0 -o wg0 -j ACCEPT;
    iptables -A FORWARD -i wg0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT;
    iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE;
    iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 1:65535 -j DNAT --to-destination 10.0.0.2;
    iptables -t nat -A PREROUTING -i eth0 -p udp --dport 1:65535 -j DNAT --to-destination 10.0.0.2;
    

    This is to be run on the wireguard VPS.

    wg0 is the name of the wireguard interface, brought up with something like wg-quick up wg0. eth0 is the name of the network interface.

    I don’t fully understand it so I can’t explain it better, but this is what allowed me to forward traffic from my VPS to my computer as though it were a router with open ports.

    Hopefully someone more knowledgeable than me can chime in and give clarification.




  • I think if he had somebody better to onboard him, he’d have a better experience.

    In classic manchild fashion, you people always blame the user instead of the technology. It doesn’t take a genius to realize that switching to Linux is not going to be without issues for anyone, let alone the average computer user.

    Instead of taking the opportunity to be a loser by gatekeeping, we should be saying “Yeah, the Linux ecosystem still has a long way to go. What makes it better is that it’s free software. You now get to be a part of the community making it better and get to see for yourself where we are.”

    None of you will say that though because you’re too stuck in your ways. It makes me sick, but I’m glad I’m not one of you.