/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! /* ALSO: Don't quote this header. It makes you look lame :-) */
On Mon, 18 Feb 2002 02:51:01 -0800 (PST) "kerbachi mohamed" <[EMAIL PROTECTED]> wrote: > I want to redirect all my outgoing connection on port > 80 to my eth0 port 8080 (to squid) > > #/sbin/iptables -A OUTPUT -p tcp -d 0/0 --dport 80 -j > DNAT --to 192.168.1.122:8080 This will not work, DNAT is only valid in the NAT table. The above command will attempt to add this to the FILTER table. Additionally, you're attempting to add this to the OUTPUT rules, whereas I believe you would be better served by adding this to the PREROUTING rules. /sbin/iptables -t nat -A PREROUTING -p tcp -d 0/0 --dport 80 -j DNAT --to 192.168.1.122:8080 Jamin W. Collins _______________________________________________ Masq maillist - [EMAIL PROTECTED] Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES UNSUBSCRIBING! or email to [EMAIL PROTECTED] PLEASE read the HOWTO and search the archives before posting. You can start your search at http://www.indyramp.com/masq/ Please keep general linux/unix/pc/internet questions off the list.
