From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rowan Reid Subject: RE: Routing Public IPs over NAT Address Space Date: Mon, 14 Jul 2003 12:57:50 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <000401c34a42$34c8aed0$1001a8c0@s3ac> References: <200307141052.AA122028212@mail.alberni.net> Mime-Version: 1.0 Content-Transfer-Encoding: 7BIT Return-path: In-reply-to: <200307141052.AA122028212@mail.alberni.net> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: techlists@alberni.net, 'Netfilter Mailing List' I'm gonna take a shot and guess your going some vpn routing. Well either way the solution is the same .. Don't route the packets meant for the public domain. Then just route them using a standard routing table entry. I clipped the following rule from my rules. It basically states NAT everything outgoing except 10.0.0.0/24 which in this case is my VPN. After that routing is handled via the routing table. IPTABLES -t nat -A POSTROUTING -o $EXTIF ! -d 10.0.0.0/24 -j SNAT --to $EXTIP > Just like the subject says; is there any way to route a > public IP/subnet over a NAT address space? > > -- > Aaron Clausen >