All of lore.kernel.org
 help / color / mirror / Atom feed
From: varun_saa@vsnl.net
To: netfilter@lists.netfilter.org
Subject: Re: mails not going thru'
Date: Mon, 09 May 2005 11:01:47 +0500	[thread overview]
Message-ID: <fccabefcb284.fcb284fccabe@vsnl.net> (raw)



----- Original Message -----
From: varun_saa@vsnl.net
Date: Monday, May 9, 2005 9:23 am
Subject: Re: mails not going thru'

> 
> 
> ----- Original Message -----
> From: Jason Opperisano <opie@817west.com>
> Date: Saturday, May 7, 2005 8:17 pm
> Subject: Re: mails not going thru'
> 
> > On Sat, May 07, 2005 at 10:14:49AM +0500, varun_saa@vsnl.net wrote:
> > > *filter
> > > :FORWARD ACCEPT [0:0]
> > > :INPUT DROP [0:0]
> > > :OUTPUT ACCEPT [0:0]
> > > -A INPUT -s 127.0.0.1 -j ACCEPT
> > > -A INPUT -p tcp -m tcp -i eth1 --dport 3128 --sport 1024:65535 -
> j 
> > ACCEPT> -A INPUT -p udp -m udp -i eth1 --dport 3128 --sport 
> > 1024:65535 -j ACCEPT
> > > -A INPUT -s 62.0.0.0/255.0.0.0 -i eth0 -j REJECT
> > > -A INPUT -p tcp -m tcp -s 217.81.0.0/255.255.0.0 -i eth0 -j REJECT
> > > -A INPUT -i eth0 -j DROP
> > > -A INPUT -p tcp -m tcp -i eth1 --sport 80 -j DROP
> > > -A INPUT -m state -i eth1 --state ESTABLISHED,RELATED -j ACCEPT
> > > -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
> > > -A FORWARD -p tcp -i eth1 -o eth0 --dport 25 --sport 1024: -j 
> > ACCEPT  --syn 
> > > -A FORWARD -p tcp -i eth1 -o eth0 --dport 110 --sport 1024: -j 
> > ACCEPT  --syn 
> > > -A FORWARD -p tcp -i eth1 -o eth0 --dport 1863 --sport 1024: -j 
> > ACCEPT  --syn 
> > > -A FORWARD -p tcp -i eth1 -o eth0 --dport 5050 --sport 1024: -j 
> > ACCEPT  --syn 
> > 
> > the policy of your FORWARD chain is set to ACCEPT, so even if 
> there's> traffic you haven't accounted for in these rules--it will 
> still be
> > allowed through.  you have a rule that allows SMTP (TCP 25) out--
> so i
> > bet if you type:
> > 
> >  telnet 64.233.185.27 25
> 
> [varun@saamail varun]$ telnet 64.233.185.27 25
> Trying 64.233.185.27...
> 
> No response
> > 
> > which is the IP of gmail's preferred MX, you'd get connected.  if 
> > you'reFORWARD policy was DROP, i'd say that the reason you can't 
> > send mail from
> > a client machine is because you have no rule allowing DNS traffic 
> out:> 
> >  -A FORWARD -i eth1 -o eth0 -p udp --sport 1024: --dport 53 -j 
> ACCEPT>  -A FORWARD -i eth1 -o eth0 -p tcp --syn --sport 1024: --
> dport 53 \
> >     -j ACCEPT
> > 
> > but since those packets will be accepted by the chain policy, my 
> only> guess is that you do not have any valid DNS servers 
> configured on your
> > client machines--on a *nix box:
> > 
> >  cat /etc/resolv.conf
> 
> [varun@saamail varun]$ cat /etc/resolv.conf
> search saice.edu
> nameserver 203.145.184.13
> 
> # ppp temp entry
> 
> > 
> > -j
> > 
> 
> Strange, I can browse but I can't ping ISP gateway
> and ISP DNS.
> 
> I can ping ISP gateway and ISP DNS from server.
> 
> 
> Varun
> 
> 
>  watch -d iptables -nvL -> gives the following


 Every 2.0s: iptables -nvL                                                                       Mon May  9 11:36:33 2005

Chain INPUT (policy ACCEPT 25339 packets, 3067K bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain FORWARD (policy ACCEPT 289 packets, 20494 bytes)
 pkts bytes target     prot opt in     out     source               destination

Chain OUTPUT (policy ACCEPT 7895 packets, 1313K bytes)
 pkts bytes target     prot opt in     out     source               destination


If yhat helps.

Varun




             reply	other threads:[~2005-05-09  6:01 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-09  6:01 varun_saa [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-05-12 15:06 mails not going thru' varun_saa
2005-05-12 15:05 varun_saa
2005-05-12 11:50 varun_saa
2005-05-12 12:38 ` Jason Opperisano
2005-05-12 13:47   ` Jason Opperisano
2005-05-09  6:13 varun_saa
2005-05-09  6:19 ` Taylor, Grant
2005-05-09  3:53 varun_saa
2005-05-09 14:34 ` Jason Opperisano
2005-05-07 16:03 varun_saa
2005-05-07  9:09 varun_saa
2005-05-09  6:07 ` Taylor, Grant
2005-05-07  7:12 varun_saa
2005-05-07  7:21 ` Taylor, Grant
2005-05-07  5:14 varun_saa
2005-05-07  6:15 ` Taylor, Grant
2005-05-07 14:47 ` Jason Opperisano

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=fccabefcb284.fcb284fccabe@vsnl.net \
    --to=varun_saa@vsnl.net \
    --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 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.