prerouting packet on same computer
D. R. Evans
doc.evans at gmail.com
Thu Oct 1 21:22:39 UTC 2009
Willy K. Hamra said the following at 10/01/2009 02:20 PM :
> hi, i want to forward packets going to port 80 into 3128, using iptables.
> the only problem is, this prerouting, while easy to achive if i'm
> forwarding the packets COMING to port, is hell for packets going to port 80.
> the only command i see all over the web is:
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
> --to-port 3128
> this doesn't work if the packets are originating from this computer.
> anyone good with iptables who can help?
If I understand your question correctly (which I'm not sure I do), I think
you should be looking at POSTROUTING, not PREROUTING.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 260 bytes
Desc: OpenPGP digital signature
More information about the kubuntu-users