DEV Community

Discussion on: How To Serve Node.js Applications with Nginx on a Raspberry

Collapse
 
jxboi profile image
Jia Xing

iptables-legacy -A INPUT -p tcp -s localhost --dport 3000 -j ACCEPT
iptables-legacy -A INPUT -p tcp --dport 3000 -j DROP

this works for me