Skip to content

Instantly share code, notes, and snippets.

@stepanger
Last active March 25, 2017 15:26
Show Gist options
  • Save stepanger/4caf7cfa28a984e97d047278ea016461 to your computer and use it in GitHub Desktop.
Save stepanger/4caf7cfa28a984e97d047278ea016461 to your computer and use it in GitHub Desktop.
// 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