All of lore.kernel.org
 help / color / mirror / Atom feed
From: Payal <payal@hotpop.com>
To: netfilter@lists.samba.org
Subject: masquerading and access
Date: Wed, 30 Oct 2002 12:32:00 +0530	[thread overview]
Message-ID: <20021030070200.GA1367@localhost.localdomain> (raw)

Hi,
	I want to implement a masquerading proxy ( I hope I am clear
here ) on a network of 50 machines. Out of this only 25 machines say
192.168.0.1-192.168.0.25 need to connect to net. Squid will be the
caching proxy.
I just want to know whether I have to put a rule as,

1. #iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Then I redirect all request to port 80 to port 3128 of squid
Then I make necessary acl changes in squid.conf to allow only
192.168.0.1-192.168.0.25.
And then for ftp I put  iptables ACCEPT rules for these ips in iptables ruleset
and block rest.
				OR

2. #iptables -t nat -A POSTROUTING -s 192.168.0.1/xx -j MASQUERADE
Will this rule do? Also what to put in place of xx for allowing
192.168.0.1-192.168.0.25. I also I will have to put port redirection of
80 to 3128 and use squid access list.

Can someone tell me which of the solution should I implement and if they
are right.

Thanks a lot in advance and bye.
-Payal






             reply	other threads:[~2002-10-30  7:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-30  7:02 Payal [this message]
2002-10-30  9:24 ` masquerading and access Antony Stone
2002-10-30  9:36 ` R. Sterenborg
  -- strict thread matches above, loose matches on Subject: below --
2002-10-30 17:42 Payal

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=20021030070200.GA1367@localhost.localdomain \
    --to=payal@hotpop.com \
    --cc=netfilter@lists.samba.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.