I must not have explained myself correctly.
When I mention the word 'bind' it is referring to a NIC
that has more than 1 IP
address assigned to it. This is what I want to accomplish.
The IP address that I
have is on the same subnet, not a totally different network
(eg 10.10.10.1 and
10.10.10.2 versus 192.168.1.100 and 10.10.10.1)
I know this can be done, although I haven't implemented it.
I then want my
firewall rules set to take any traffic sent to the second
address and masquerade
this to an IP address on my intranet. I would appreciate an
example of the
iptables syntax that would accomplish this.
I appreciate the input.
Thanks,
James
RHCE
CCNA
"Red Hat Enterprise Linux 4 (Nahant) Discussion
List" <nahant-list redhat.com>
wrote:
> James Marcinek wrote:
> > Hello Everyone,
> >
> > I have a RHEL 4 server acting as my
router/firewall using IPtables. I am
> > currently only using 1 static IP address which is
used to NAT to my internal
> > network. I would like to setup my firewall to
accept requests from this
'new'
> > static address and forward them to another system.
I would also want only
> > certain ports available going into the server.
> >
> > Can anyone help me out with this?
>
> I'm not completely sure what you mean.
>
> Assuming your server is 192.168.1.1, and your new
server is 10.0.1.1 and
> that all your clients see your server as their gateway,
then if you just
> add a new NIC and give it the address 10.0.1.254 then
it will just work
> (without NAT).
>
> If you want the existing and new server on the same
physical wire, then
> you can't really obstruct traffic.
>
> I'd not use NAT unless I needed to, for example
because I only have one
> IP address (typical home/small office) or for part of
my security
> implementation. If I control (or trust) the whole
network, I'd rather
> not throw away information (client IP) that might be
useful for problem
> determination or for security.
>
> With the setup I suggest, you can block/allow ports as
you wish using
> iptables: directly, if you wish, but I prefer to use
shorewall, which
> uses a set of tables in simple text files to build the
rules.
>
> Note, if there is some arbitrary network between your
old and new
> servers, you _can_ set explicit routes to direct
traffic to the new
> server through one interface whilst all other traffic
goes through the
> other. See your network configuration tool for how to
do it.
>
>
>
>
> --
>
> Cheers
> John
>
> -- spambait
> 1aaaaaaa computerdatasafe.com.au Z1aaaaaaa computerdatasafe.com.au
> Tourist pics http://portgeographe.environmentaldisasters.cds.mers
eine.nu/
>
> do not reply off-list
>
> --
> nahant-list mailing list
> nahant-list redhat.com
> h
ttps://www.redhat.com/mailman/listinfo/nahant-list
--
nahant-list mailing list
nahant-list redhat.com
h
ttps://www.redhat.com/mailman/listinfo/nahant-list
|