OpenVZ Forum


Home » General » Support » Problems with REDIRECT in the nat table for iptables
Problems with REDIRECT in the nat table for iptables [message #2963] Wed, 03 May 2006 21:40 Go to previous message
bpilati is currently offline  bpilati
Messages: 1
Registered: May 2006
Junior Member
Okay, n00b here.

I am trying to use the nat table to redirect all queries to port 80 are redirected to port 8080.

Here is my command

iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8080

Here is the error:

iptables: No chain/target/match by that name

the nat table is loaded into the kernel because this command works:

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to 192.168.1.10:8080

Any ideas of what I need to do for REDIRECT to work?

Thanks
 
Read Message
Read Message
Read Message
Previous Topic: split patches?
Next Topic: vzmigrate misses vpsid.start, .stop, .mount, .umount
Goto Forum:
  


Current Time: Fri Sep 06 09:17:00 GMT 2024

Total time taken to generate the page: 0.06323 seconds