Linux Netfilter discussions
 help / color / mirror / Atom feed
* mixing static and dynamic mappings
@ 2002-06-08  1:38 Patrick Conlin
  2002-06-08  9:39 ` Antony Stone
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Conlin @ 2002-06-08  1:38 UTC (permalink / raw)
  To: netfilter

seeking advice...

i have a /29 range of public ips from my isp. all but one of the ip
addresses are taken up by static mappings (servers of various
functions/domains) to addresses on my 10.1.1.0/24 internal network. what
i'd like to do with the remaining public ip address is use it as a sort
of MASQUERADE ip address for all remaining non-server machines on the
network (so the machines on the network that aren't servers can all
share an ip for internet access). i've got a dhcp server set up that's
dishing out internal ips in the 10.1.1.200-240 range only, so i'm
wondering if i could so something like:

iptables -t nat -A POSTROUTING -s 10.1.1.200-10.1.1.240 -j SNAT
--to-source 207.224.76.205

and combine it with state ESTABLISHED

somehow so that just that range of ips gets a pnat-style translation for
basic browsing, etc.

unfortunately the basic iptables command above just gives an error, as
it should. i'm pretty sure i'm going about this the wrong way, so would
greatly appreciate anyone's suggestions!

thanks a lot,

-=p=-



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

end of thread, other threads:[~2002-06-08 10:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-08  1:38 mixing static and dynamic mappings Patrick Conlin
2002-06-08  9:39 ` Antony Stone
2002-06-08 10:31   ` Antony Stone

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox