Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
olback107947ysudo ssh -g -L 80:localhost:5000 -f -N $USER@localhost -i /path/to/key/file
This isn't a great permanent solution though.
This routes 5000 to 80. Sudo is needed to bind to ports below 1024. -
bahua128017y@linuxxx
@olback got it exactly right.
Though you have to make sure to have "GatewayPorts true" set. -
sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3000
How motherfucking difficult can it be to port forward something internally?!
I've been on this for fucking hours and I'm so fucking done with this shit.
I know I'm doing something wrong myself but I can't find a good resource ðŸ˜
rant