Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Antony Stone <Antony@Soft-Solutions.co.uk>
To: netfilter@lists.netfilter.org
Subject: Re: help me with firewall+drop by default
Date: Fri, 5 Mar 2004 02:43:14 +0000	[thread overview]
Message-ID: <200403050243.14537.Antony@Soft-Solutions.co.uk> (raw)
In-Reply-To: <BAY7-F103tpgWtfb8tW0003bc47@hotmail.com>

On Friday 05 March 2004 2:28 am, verito verito wrote:

> From: Antony Stone <Antony@Soft-Solutions.co.uk>
>
> >Where are you trying to access the POP3 server from and to?
> >
> >In other words, where is your client (compared to eth0 and eth1 in your
> >rules), and is the server running on the machine with these rules, or on
> >some other server being routed through this one?
>
> eth0=lan
> eth1=internet
> The server pop3 is external I must open the ports 110 and 25
> Since I use the outlook as client of mail in order that it could send and
> receive post office

In that case the ruleset you have posted below should work, because requests 
come from eth0, get routed to eth1, and you have a rule:

> iptables -A FORWARD -i eth0 -o eth1 -j ACCEPT

Replies come back on eth1 and get routed to eth0:

> iptables -A FORWARD -i eth1 -o eth0 -m state --state ESTABLISHED,RELATED
> -j ACCEPT

And you are SNATting packets on their way out to the Internet:

> iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

So, why is this setup not working?

1. Is that your complete ruleset?
2. What does "iptables -L -nvx; iptables -L -t nat -nvx" show for the packet 
counters on each rule?
3. Is your mail client correctly resolving the hostname of the server in order 
to try connecting to it by POP3?

Do other protocols (except for HTTP/port 80, which you are redirecting) work?   
For example, ftp? ssh? traceroute? ping? telnet!? whois?

Hope this helps point you in the right direction.

Regards,

Antony.

-- 
I'm pink, therefore I'm Spam.

                                                     Please reply to the list;
                                                           please don't CC me.



       reply	other threads:[~2004-03-05  2:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <BAY7-F103tpgWtfb8tW0003bc47@hotmail.com>
2004-03-05  2:43 ` Antony Stone [this message]
2004-03-05  2:33 help me with firewall+drop by default verito verito
  -- strict thread matches above, loose matches on Subject: below --
2004-03-05  1:24 verito verito
2004-03-05  1:37 ` Antony Stone

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=200403050243.14537.Antony@Soft-Solutions.co.uk \
    --to=antony@soft-solutions.co.uk \
    --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