Jump to content

Recommended Posts

Posted

Ive got a line in my iptables rules file thats

-A PREROUTING -p tcp -m tcp -i eth1 --dport 80 -j REDIRECT --to-ports 3128

This is to redirect requests to the transparent proxy, i want to send all requests apart from https and ssh to the proxy so i tried this

-A PREROUTING -p tcp -m tcp -i eth1 ! --dport 443,22 -j REDIRECT --to-ports 3128

But it seems like iptables doesnt like the comma there, is that supposed to be set out like that or is it supposed to be different.

 

Jack

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...