From: Andrew Beverley <andy@andybev.com>
To: Chris Percol <chris.percol@gmail.com>
Cc: netfilter@vger.kernel.org
Subject: Re: PREROUTING
Date: Wed, 05 Oct 2011 23:05:31 +0100 [thread overview]
Message-ID: <1317852331.26402.2250.camel@andybev-desktop> (raw)
In-Reply-To: <CAGwLQT0UUvmuzuY1WkJ30KzMJhMGQggwJw6Rcqc=-O6Hcuam1g@mail.gmail.com>
On Wed, 2011-10-05 at 12:49 +0100, Chris Percol wrote:
> Hi,
> I am currently using the following rules on centos iptables to direct
> users from a --to-destination to different samba servers.
> What is the best approach to take to allow the users of 10.91.0.0 to
> also access Samba Server A?
I don't understand what you are trying to achieve. There are no
filtering rules below, so anybody trying to access Samba Server A will
be able to do so anyway?
> # Samba Server A
> /sbin/iptables -t nat -A PREROUTING -p udp --dport 137 -j DNAT
> --to-destination 192.168.1.10 --source 10.90.0.0/16
> /sbin/iptables -t nat -A PREROUTING -p udp --dport 138 -j DNAT
> --to-destination 192.168.1.10 --source 10.90.0.0/16
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 139 -j DNAT
> --to-destination 192.168.1.10 --source 10.90.0.0/16
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT
> --to-destination 192.168.1.10 --source 10.90.0.0/16
>
> # Samba Server B
> /sbin/iptables -t nat -A PREROUTING -p udp --dport 137 -j DNAT
> --to-destination 192.168.2.10 --source 10.91.0.0/16
> /sbin/iptables -t nat -A PREROUTING -p udp --dport 138 -j DNAT
> --to-destination 192.168.2.10 --source 10.91.0.0/16
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 139 -j DNAT
> --to-destination 192.168.2.10 --source 10.91.0.0/16
> /sbin/iptables -t nat -A PREROUTING -p tcp --dport 445 -j DNAT
> --to-destination 192.168.2.10 --source 10.91.0.0/16
>
> Thanks,
> Chris
> --
> To unsubscribe from this list: send the line "unsubscribe netfilter" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2011-10-05 22:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAGwLQT0SRyga4go7uk2ujyPiBaD_K4jvd_XHCXG7YGi1hUxVbw@mail.gmail.com>
2011-10-05 11:49 ` PREROUTING Chris Percol
2011-10-05 22:05 ` Andrew Beverley [this message]
2003-09-19 15:48 PREROUTING Mickael DILY
2003-09-19 16:48 ` PREROUTING Jim Carter
-- strict thread matches above, loose matches on Subject: below --
2003-04-29 7:23 PREROUTING netfilter_user
2003-04-29 7:49 ` PREROUTING SaVaGE
2003-04-29 9:21 ` PREROUTING Frederic Gobin
2003-04-29 13:28 ` PREROUTING Eric Poulin
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=1317852331.26402.2250.camel@andybev-desktop \
--to=andy@andybev.com \
--cc=chris.percol@gmail.com \
--cc=netfilter@vger.kernel.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