10

How the fuck do you do port forwarding on your Rasberry Pi without having to hack the NASA or subscribe to some obscure websites??? God fucking damn useless websites that can't agree on a fucking point

Comments
  • 1
    Gimme a minute, i found two iptables commands that do this
  • 2
    One actually:
    sudo iptables -t nat -A PREROUTING -p tcp -i eth0 --dport 80 -j DNAT --to-destination 10.0.0.10:10010

    That redirects connections incoming on eth0 port 80 to 10.0.0.10 port 10010
  • 2
    @YouAreAPIRate so I type this from my Raspberry, adapting the ip address, I reboot it and.. that's it?
  • 1
    @Drillan767 no, no reboot. Iptable-configuration lasts as long as the system runs. The command will take effect immediately
  • 0
  • 1
    @YouAreAPIRate sorry, was eating + watching a serie, I'm trying this right now
  • 2
    @YouAreAPIRate It worked I found a "permanent" solution that implies fucking around with my router :')
  • 0
    @millido yeah since I'm a huge fucking noob I didn't know all that 😂 I managed to port forward my Raspberry Pi from the router, got it work but didn't have to be on the same network to verify it worked, I had to join the RPI community and ask them to know that 😂
Add Comment