From: Jason Opperisano <opie@817west.com>
To: netfilter@lists.netfilter.org
Subject: Re: netfilter and proxies
Date: Thu, 14 Oct 2004 17:15:32 -0400 [thread overview]
Message-ID: <20041014211532.GA4529@bender.817west.com> (raw)
In-Reply-To: <200410141702.00033.JALaramie@Loudoun-Fairfax.com>
On Thu, Oct 14, 2004 at 05:02:00PM -0400, Jeffrey Laramie wrote:
> Hey All,
>
> I'm trying to help a guy on another list with his network configuration but
> he's thrown me a curve. He has a firewall/server on the perimeter with one
> NIC facing an ADSL router and one facing his LAN. Here's his description of
> the problem:
>
> "to internet: no problem, but i have problem to connect with any vhost
> (some virtual domain running in the server) or for send email through my
> email server, using internal pc lan.
> if I try to connect from outside (cybercafe) i don't have any kind of
> problems (i can check my email and i can relay through my server )
> Thats why i think the problem start whith the forward rules define at
> the firewall."
>
> I asked him to give me iptables -L -t nat and -t filter. Here's the output of
> his nat chain:
>
> # iptables -L -t nat
it would actually help more to have the output of "iptables -vnxL -t
nat" instead, but oh well...
> Chain PREROUTING (policy ACCEPT)
> target prot opt source destination
> REDIRECT tcp -- 192.168.0.0/24 anywhere tcp
> dpt:http redir ports 3128
> REDIRECT tcp -- 192.168.0.0/24 anywhere tcp
> dpt:smtp redir ports 3128
> REDIRECT tcp -- 192.168.0.0/24 anywhere tcp
> dpt:pop3 redir ports 3128
> REDIRECT tcp -- 192.168.0.0/24 anywhere tcp
> dpt:imap redir ports 3128
>
> I don't use proxies or REDIRECT myself and I'm not sure what he means when he
> says he has a "virtual domain", but this doesn't look right to me. Can he
> have multiple services forwarded to the same port like this?
i will naively assume from the port number that this is a squid proxy?
yes--you can redirect multiple destination ports to the same proxy; as
long as the proxy understands the layer 7 protocol. i.e. redirecting
both TCP port 21 and TCP port 80 to a squid proxy is valid, as squid can
proxy both FTP and HTTP (though i've never tried transparent redirecting
of FTP--dunno how that would work). however; proxying SMTP, POP3, and
IMAP to a squid proxy...well it isn't the most ridiculous thing i've
heard in a while--but it's up there...
squid supports FTP, Gopher, and HTTP proxying...
-j
--
Jason Opperisano <opie@817west.com>
prev parent reply other threads:[~2004-10-14 21:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-10-14 21:02 netfilter and proxies Jeffrey Laramie
2004-10-14 21:15 ` Jason Opperisano [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=20041014211532.GA4529@bender.817west.com \
--to=opie@817west.com \
--cc=netfilter@lists.netfilter.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