Linux Netfilter discussions
 help / color / mirror / Atom feed
From: varun_saa@vsnl.net
To: Rob Sterenborg <rob@sterenborg.info>
Cc: netfilter@lists.netfilter.org
Subject: Re: RE: smtp/pop and NAT only
Date: Wed, 18 May 2005 16:43:40 +0500	[thread overview]
Message-ID: <190811a190cfab.190cfab190811a@vsnl.net> (raw)



----- Original Message -----
From: Rob Sterenborg <rob@sterenborg.info>
Date: Wednesday, May 18, 2005 3:54 pm
Subject: RE: smtp/pop and NAT only

> > Hello,
> >      My server is on FC3 (fedora3)
> > eth0 is WAN ---> DSL router ----> ISP
> > eth1 is LAN
> 
> Not sure I understand the ASCII art : is your server the DSL router ?
The server has two ethernet card. eth0 is basically WAN.
> 
> > I would like to that 2 client 192.168.0.253 and 192.168.0.248 
> > are connected to " fedora3 server "
> > via NAT.
> 
> So that they can do "anything" ?

Yes that is correct.
> 
> > And all other clients connected to "fedora3 server"
> > are able to only send / recieve mail.
> > 
> > Howto do that
> 
> Something like :
> 
> $IPT -P FORWARD DROP
> 
> $IPT -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
> $IPT -A FORWARD -i eth1 -o eth0 -s 192.168.0.248 -j ACCEPT
> $IPT -A FORWARD -i eth1 -o eth0 -s 192.168.0.253 -j ACCEPT
> $IPT -A FORWARD -i eth1 -o eth0 -p tcp --dport 25 -j ACCEPT
> $IPT -A FORWARD -i eth1 -o eth0 -p tcp --dport 110 -j ACCEPT
> 
> $IPT -t nat -A POSTROUTING -o eth0 -s 192.168.0.0/24 -j SNAT \
>  --to-source <inet_ip>

No static IP
> 
> Maybe Oscars IPTables tutorial is something useful :
> http://iptables-tutorial.frozentux.net/iptables-tutorial.html
> 
> 
> Gr,
> Rob

Thanks a lot

I shall give it a try.

Varun
> 
> 
> 



                 reply	other threads:[~2005-05-18 11:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=190811a190cfab.190cfab190811a@vsnl.net \
    --to=varun_saa@vsnl.net \
    --cc=netfilter@lists.netfilter.org \
    --cc=rob@sterenborg.info \
    /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