Skip to contentSkip to conversation

public IP behind NAT system

DISCUSSION Mike McLean 3 participants 3 messages Oct 3, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

I have a situation where I've setup a system that has one public IP and does NAT for a network of computers with private IPs. However I wish to setup a couple of machines behind this NAT system with public IPs like the following:

outside router --> NAT system --> other systems with public IPs.

I am wondering if this is possible and feasable with netfilter. I don't want netfilter to NAT any packets sent to the public IPs that aren't on the NAT system.

Any help is greatly appreciated,

Mike

#1 lore raw
Quoted 7 lines

outside router --> NAT system --> other systems with public IPs.

I am wondering if this is possible and feasable with netfilter. I don't want netfilter to NAT any packets sent to the public IPs that aren't on the NAT system.

Any help is greatly appreciated,

If there are only "other systems with public IPs", then I'd say there's no need for a "NAT system". The only thing you want to do would be filtering ?
You can just allow forwarding for IP's that you want and route the packets through your firewall.
If you also have other systems that have private IP's then you just NAT those IP's, in addition to the above.

Gr,
Rob

#2 lore raw
In reply to Mike McLean
Quoted 8 lines · Mike McLean

Hi,

I have a situation where I've setup a system that has one public IP and does NAT for a network of computers with private IPs. However I wish to setup a couple of machines behind this NAT system with public IPs like the following:

outside router --> NAT system --> other systems with public IPs.

Something like,
iptables -t nat -A PREROUTING -d <ext ip> -j DNAT --to <int ip>

might help.

-Payal

Quoted 10 lines

I am wondering if this is possible and feasable with netfilter. I don't want netfilter to NAT any packets sent to the public IPs that aren't on the NAT system.

Any help is greatly appreciated,

Mike

Signature · 3 lines
"Visit GNU/Linux Success Stories"
http://payal.staticky.com
Guest-Book Section Updated.