All of lore.kernel.org
 help / color / mirror / Atom feed
* RE: Restrict LAN users to send mail to Internet but allow to send mail to other LAN user.
@ 2004-10-27 18:55 Gary Smith
  2004-10-27 19:16 ` Aleksandar Milivojevic
  0 siblings, 1 reply; 9+ messages in thread
From: Gary Smith @ 2004-10-27 18:55 UTC (permalink / raw)
  To: Aleksandar Milivojevic, netfilter

You would still need netfilter to prevent other users from using the internet as a back door.  For example, financial firms must log all incoming and outgoing smtp traffic.  To accomplish this you need to ensure that your users cannot access external SMTP servers otherwise they could sent out unlogged messages.  We have done this in the past for a few companies.  This forces the user to use the sendmail server for their email.  I think this is the goal of the requester.
 
Gary Smith
 
 

________________________________

From: netfilter-bounces@lists.netfilter.org on behalf of Aleksandar Milivojevic
Sent: Wed 10/27/2004 11:20 AM
To: netfilter@lists.netfilter.org
Subject: Re: Restrict LAN users to send mail to Internet but allow to send mail to other LAN user.



ads nat wrote:
> Now I want to allow LAN users to send emails to each
> other on LAN but want to allow some LAN users to send
> email to Internet(Outside world).
> Is there any way using Linux iptables firewall to
> acieve this requirement.

I will assume that LAN users are allowed to connect to mail server only,
and not to outside world.  Controlling this on Sendmail level would be
much more simpler and efficient.  Assuming you are using Sendmail as
your MTA.  Netfilter isn't suited for this, because there's no way for
it to know if SMTP connection between client (LAN user) and server is
delivery of email addressed to another LAN user, or to somebody at the
outside.  Also, Sendmail will take care of generating appropriate error
messages back to the users, while Netfilter would simply block the
traffic without any explanation to the user what happened.

--
Aleksandar Milivojevic <amilivojevic@pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7





^ permalink raw reply	[flat|nested] 9+ messages in thread
* RE: Restrict LAN users to send mail to Internet but allow to send mail to other LAN user.
@ 2004-10-27 20:47 Gary Smith
  0 siblings, 0 replies; 9+ messages in thread
From: Gary Smith @ 2004-10-27 20:47 UTC (permalink / raw)
  To: Aleksandar Milivojevic, netfilter

True...  Sometimes I should read it twice... :)
 
Gary

________________________________

From: netfilter-bounces@lists.netfilter.org on behalf of Aleksandar Milivojevic
Sent: Wed 10/27/2004 12:16 PM
To: netfilter@lists.netfilter.org
Subject: Re: Restrict LAN users to send mail to Internet but allow to send mail to other LAN user.



Gary Smith wrote:
> You would still need netfilter to prevent other users from using the internet as a back door.  For example, financial firms must log all incoming and outgoing smtp traffic.  To accomplish this you need to ensure that your users cannot access external SMTP servers otherwise they could sent out unlogged messages.  We have done this in the past for a few companies.  This forces the user to use the sendmail server for their email.  I think this is the goal of the requester.

Which is exactly what my first sentence said: "I will assume that LAN
users are allowed to connect to mail server only, and not to outside
world".  BTW, this is something that should be done by default.
Financial firm or not.

--
Aleksandar Milivojevic <amilivojevic@pbl.ca>    Pollard Banknote Limited
Systems Administrator                           1499 Buffalo Place
Tel: (204) 474-2323 ext 276                     Winnipeg, MB  R3T 1L7





^ permalink raw reply	[flat|nested] 9+ messages in thread
* Restrict LAN users to send mail to Internet but allow to send mail to other LAN user.
@ 2004-10-27 14:58 ads nat
  2004-10-27 16:54 ` Jason Opperisano
  2004-10-27 18:20 ` Aleksandar Milivojevic
  0 siblings, 2 replies; 9+ messages in thread
From: ads nat @ 2004-10-27 14:58 UTC (permalink / raw)
  To: netfilter

Hi,
I will elaborate my problem.

I am looking for solution for following problem.

I have A Linux interent gateway server having 3 NIC
cards 
1) eth0 connected to internet.
2) eth1 connected to private LAN (192.168.0.1.)
3) eth2 connected to DMZ server.(10.0.0.1)

DMZ server is with one LAN card (eth0 : 10.0.0.2)

On DMZ, DNS, Web and sendmail are installed.
Iptables prerouting rules are set on Gateway server so
that users from LAN 192.168.0.0 can acess web as well
as mail server.

Now I want to allow LAN users to send emails to each
other on LAN but want to allow some LAN users to send
email to Internet(Outside world).
Is there any way using Linux iptables firewall to
acieve this requirement.

thanks for support.


		
_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now. 
http://messenger.yahoo.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-28 16:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-27 18:55 Restrict LAN users to send mail to Internet but allow to send mail to other LAN user Gary Smith
2004-10-27 19:16 ` Aleksandar Milivojevic
  -- strict thread matches above, loose matches on Subject: below --
2004-10-27 20:47 Gary Smith
2004-10-27 14:58 ads nat
2004-10-27 16:54 ` Jason Opperisano
2004-10-27 18:20 ` Aleksandar Milivojevic
2004-10-28 15:35   ` ads nat
2004-10-28 15:48     ` Jason Opperisano
2004-10-28 16:42     ` Aleksandar Milivojevic

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.