From: Daniel Iliev <daniel.iliev@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Frox iptables ftp proxy
Date: Sun, 3 May 2009 17:26:10 +0300 [thread overview]
Message-ID: <20090503172610.770716b7@ilievnet.com> (raw)
In-Reply-To: <1240164158.5422.15.camel@DB2.glister-solace.net>
On Sun, 19 Apr 2009 14:02:38 -0400
"D.H." <derrickdb1@comcast.net> wrote:
> I'd like to set up an ftp proxy on my home firewall so I can scan for
> viruses using clamd. I found frox. Which looks like it will do what
> I want. I've pretty much used the default install which makes frox
> listen on 127.0.0.1:2121. But, I'm not sure the firewall rules are
> working right.
>
> eth1 is the internal interface
>
> iptables -A FORWARD -p tcp -i eth1 --destination-port 2121 \
> --destination 127.0.0.1 -j ACCEPT
>
> iptables -t nat -A PREROUTING -p tcp -i eth1 --destination-port 21 \
> -j DNAT --to-destination 127.0.0.1:2121
>
> Either that, or frox itself is having issues. Any ideas? While I'm
> at it, is there an alternative to frox?
>
>
>
Hi,
I believe this schema won't work because "DNAT" target rewrites the
destination address in the IP packet headers. Therefore what frox
receives is a sequence of packets with destination set to its own
address. Try using the "REDIRECT" target which is supposed to rewrite
the port fields only.
--
Best regards,
Daniel
prev parent reply other threads:[~2009-05-03 22:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-19 18:02 [gentoo-user] Frox iptables ftp proxy D.H.
2009-05-03 14:26 ` Daniel Iliev [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090503172610.770716b7@ilievnet.com \
--to=daniel.iliev@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox