From owner-freebsd-questions@FreeBSD.ORG Fri Mar 11 10:34:08 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9FD351065672 for ; Fri, 11 Mar 2011 10:34:08 +0000 (UTC) (envelope-from kayasaman@gmail.com) Received: from mail-qy0-f175.google.com (mail-qy0-f175.google.com [209.85.216.175]) by mx1.freebsd.org (Postfix) with ESMTP id 563F08FC1C for ; Fri, 11 Mar 2011 10:34:08 +0000 (UTC) Received: by qyk35 with SMTP id 35so5406890qyk.13 for ; Fri, 11 Mar 2011 02:34:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=Kf4MsXXaN73bS5BeHfby7EVmgP4QrH1qWsUWq0OzHQs=; b=rHxLye7ezvx056clXstAyZKTMVqTsduswibwrLGtrX8WVOZjlfdzc15HQlvU2KN44P Rgc4LXlyoHiL0EjeuidkLTu2i2dgcfDcGZXBUYBVaCTD9nheAlWEFn8L6yMaPL9quj5F gNzE6AxALgJBzP1NmVu/uphFaeG4lydHVwknQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=CXSyf47KwVTrUuOtRLiKzRa0dDJ7ohbFwV8n7GCa5RCi6BPJy0tdo+4fbKbjjYsahI 841xIB93/GPpk8raGCtBXc3gHZyis0Uz4BDEqFcQEallsSQW95c3BY9nqumZaymJFoPy xDU5BcmL/jOxIdX7lqXSl9J7JW5to7AnaCHcg= MIME-Version: 1.0 Received: by 10.224.76.84 with SMTP id b20mr8117911qak.161.1299839647518; Fri, 11 Mar 2011 02:34:07 -0800 (PST) Received: by 10.224.54.131 with HTTP; Fri, 11 Mar 2011 02:34:07 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Mar 2011 12:34:07 +0200 Message-ID: From: Kaya Saman To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Setting up a a route in FreeBSD with NAT issues X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Mar 2011 10:34:08 -0000 Ok I've managed to make some headway however it still isn't working properly: /etc/ipnat.rules #map em1 10.100.100.0/26 -> 0.0.0.0/32 portmap tcp/udp 10000:65000 map em1 10.100.100.0/26 -> 0.0.0.0/32 map em1 10.100.100.0/26 -> 0.0.0.0/32 auto I then added this addition to the end of the /etc/rc.conf file: static_routes="em0 em1" route_em1="-net 10.100.100.0/26 172.16.0.0/20" route_em0="-net 172.16.0.0 0.0.0.0/0" when I run traceroute on my host now I can see it going through the system however I'm still not sure it's being NAT'd or routed?? ROUTER# ipnat -l List of active MAP/Redirect filters: map em1 10.100.100.0/26 -> 0.0.0.0/32 List of active sessions: MAP 10.100.100.1 53 <- -> 10.100.100.1 53 [10.100.100.2 32772]