iptables: No chain/target/match by that name

Paul Dwerryhouse paul at dwerryhouse.com.au
Sat Oct 18 00:13:40 UTC 2008


On Sat, Oct 18, 2008 at 01:00:32AM +0200, Christopher Bianchi wrote:
> ienabellamy at charlotte:~/Bin$ sudo iptables -A PREROUTING -p tcp -m tcp
> --dport 80 -j REDIRECT --to-ports 8080

You need to choose the nat table, with -t nat:

iptables -t nat -A PREROUTING [...]

Cheers,

Paul

-- 
Paul Dwerryhouse                             	| PGP Key ID: 0x6B91B584
========================================================================

http://linoleum.leapster.org/ - Linux Programming Resources




More information about the ubuntu-users mailing list