Last active
March 25, 2017 15:26
-
-
Save stepanger/4caf7cfa28a984e97d047278ea016461 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// iptables | |
// sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to 127.0.0.1:3000 | |
// nodejs | |
app.route('/*').get(function(req, res) { | |
console.log(req); | |
}); | |
var server = app.listen(3000, '127.0.0.1', function(){ | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment