All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Transparent FTP proxying from localhost?
@ 2004-02-07 21:05 Artūras Šlajus
  2004-02-07 22:10 ` arek
  0 siblings, 1 reply; 2+ messages in thread
From: Artūras Šlajus @ 2004-02-07 21:05 UTC (permalink / raw)
  To: lartc

Hi. I need to do transparent FTP proxying using frox. For my lan i just use:

     if [ "$USE_FTP_PROXY" = "yes" ]; then
         $IPT -t nat -A PREROUTING -p tcp -i $LAN -d ! $INET_IP --dport 21 \
           -j REDIRECT --to-port $FTP_PROXY_PORT
     fi

I wonder what i should use for same effect on localhost.

         $IPT -t nat -A OUTPUT -p tcp -o $INET -d ! $INET_IP --dport 21 \
           -j REDIRECT --to-port $FTP_PROXY_PORT

didn't worked :(

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [LARTC] Transparent FTP proxying from localhost?
  2004-02-07 21:05 [LARTC] Transparent FTP proxying from localhost? Artūras Šlajus
@ 2004-02-07 22:10 ` arek
  0 siblings, 0 replies; 2+ messages in thread
From: arek @ 2004-02-07 22:10 UTC (permalink / raw)
  To: lartc

> I wonder what i should use for same effect on localhost.
>
>          $IPT -t nat -A OUTPUT -p tcp -o $INET -d ! $INET_IP --dport 21 \
>            -j REDIRECT --to-port $FTP_PROXY_PORT

Your local packets don't go via nat and prerouting table.

Hope you should enable in kernel NAT_OF_LOCAL_CONNECTIONS (experimental) .
Then you will be able to specify some policy.

Arkadiusz Binder

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-07 22:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-07 21:05 [LARTC] Transparent FTP proxying from localhost? Artūras Šlajus
2004-02-07 22:10 ` arek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.