/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! 
/* ALSO: Don't quote this header. It makes you look lame :-) */

i had tries this but whan i disable proxy from
netscape i can browse the web.
But with #tail -f /var/log/squid/access.log
no data are logged th eiptables dont route the
requests to squid !

I am lost, please help?



--- [EMAIL PROTECTED] wrote:
> Send Masq mailing list submissions to
>       [EMAIL PROTECTED]
> 
> To subscribe or unsubscribe via the World Wide Web,
> visit
>       http://home.indyramp.com/mailman/listinfo/masq
> or, via email, send a message with subject or body
> 'help' to
>       [EMAIL PROTECTED]
> 
> You can reach the person managing the list at
>       [EMAIL PROTECTED]
> 
> When replying, please edit your Subject line so it
> is more specific
> than "Re: Contents of Masq digest..."
> 
> 
> This is the Linux IP Masquerading mailing list
> digest. To unsubscribe, change to realtime
> distribution, or adjust your other list options,
> visit the web page at
> 
> http://home.indyramp.com/mailman/listinfo/masq
> 
> 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.
> 
> Today's Topics:
> 
>    1. (no subject) (kerbachi mohamed)
>    2. Redirecting was (no subject) (Jamin W.Collins)
> 
> --__--__--
> 
> Message: 1
> Date: Mon, 18 Feb 2002 02:51:01 -0800 (PST)
> From: kerbachi mohamed <[EMAIL PROTECTED]>
> To: masq-posting <[EMAIL PROTECTED]>
> Subject: [Masq]  (no subject)
> 
> 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
> 
> But with :
> #tail -f /var/log/squid/access.log
> when i request www.google.com/linux, i get:
> ------------
> 1014027725.803      0 192.168.1.122 NONE/400 1062
> GET
> / - NONE/--1014027725.803   3000 127.0.0.1
> TCP_MISS/400 1096 GET
> http://www.google.com/ - DIRECT/www.google.com
> text/html
> -------------
> 
> And in my browser i see :
> ----------
> The requested URL could not be retrieved
> While trying to retrieve the URL: / 
> ........
> .......
> Am i wrong else where ?
> Can some one help ?
> -------------
> 

> 
> Message: 2
> Date: Mon, 18 Feb 2002 08:14:16 -0600
> From: "Jamin W.Collins" <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [Masq]  Redirecting was (no subject)
> 
> 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
> 
> 
> --__--__--


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
_______________________________________________
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.

Reply via email to