| 
		
			| Problems with REDIRECT in the nat table for iptables [message #2963] | Wed, 03 May 2006 21:40  |  
			| 
				
				
					|  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
 |  
	|  |  | 
	|  | 
	|  |