Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iptables rule PREROUTING doesn't work, OUTPUT does #2

Open
quatrix opened this issue Jul 12, 2015 · 0 comments
Open

iptables rule PREROUTING doesn't work, OUTPUT does #2

quatrix opened this issue Jul 12, 2015 · 0 comments

Comments

@quatrix
Copy link

quatrix commented Jul 12, 2015

I had to change -A PREROUTING to -A OUTPUT to get it to work

iptables -t nat -A OUTPUT -d 169.254.169.254 -p tcp --dport 80 --syn -j REDIRECT --to-port 1024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant