From: "Dharmendra.T" <dharmu@nsecure.net>
To: federico@michosa.com, netfilter@lists.netfilter.org
Subject: Re: How to limit access to only a few hosts in the internet?
Date: Tue, 3 Dec 2002 10:43:10 +0530 [thread overview]
Message-ID: <200212031043.10800.dharmu@nsecure.net> (raw)
In-Reply-To: <000501c29803$7963c260$0200a8c0@ntd.michosa.com>
For the FORWARD rule you can specify -s source machine to allow only those
machines which you want to allow.
Regards,
Dharmendra.T
Linux Security Expert
www.nsecure.net
dharmu@nsecure.net
On Saturday 30 November 2002 05:30, Federico Canton wrote:
> Hi, is it possible to open a port in the firewall but limit access to
> only a few hosts natted behind a remote firewall?
>
> For example, I already use these rules to open port 80 and direct
> traffic to my internal web server,
>
> $IPTABLES -A FORWARD -i $INET_IFACE -p tcp -d $WEB_SERVER_IP --dport 80
> -j ACCEPT
> $IPTABLES -t nat -A PREROUTING -p tcp -i $INET_IFACE --dport 80 -j DNAT
> --to-destination $WEB_SERVER
>
> but I don't know what do I need to add to the rules so that only a few
> hosts can go through the firewall.
>
> Initially thought of using "--mac-source", but apparently this would not
> work for hosts located on remote networks since the firewall will only
> see the MAC address of the last router the frame passed through. Is
> this correct?
>
> I will greatly appreciate any suggestions.
>
> Regards,
>
> federico
--
prev parent reply other threads:[~2002-12-03 5:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-30 0:00 How to limit access to only a few hosts in the internet? Federico Canton
2002-12-03 5:13 ` Dharmendra.T [this message]
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=200212031043.10800.dharmu@nsecure.net \
--to=dharmu@nsecure.net \
--cc=federico@michosa.com \
--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