prerouting packet on same computer

Willy K. Hamra w.hamra1987 at gmail.com
Thu Oct 1 20:20:04 UTC 2009


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?
thanks
-- 
Willy K. Hamra
Manager of Hamra Information Systems
Co. Manager of Zeina Computer & Billy Net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: w_hamra1987.vcf
Type: text/x-vcard
Size: 130 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20091001/babd2e6f/attachment.vcf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/kubuntu-users/attachments/20091001/babd2e6f/attachment.sig>


More information about the kubuntu-users mailing list