Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Mar 2001 15:04:06 -0500 (EST)
From:      Peter Brezny <peter@black.purplecat.net>
To:        freebsd-net@freebsd.org
Subject:   natd - static nat on multiple aliased ip's
Message-ID:  <Pine.BSF.4.05.10103071501530.24949-100000@black.purplecat.net>

next in thread | raw e-mail | index | archive | help

Let's say I had two internal subnets that i'd like to nat with different
external ip's, while also doing static nat on one of each of the internal 
ip's. Could i do that by doing something like thils:

rc.conf
natd_flags="-f /etc/natd.conf1"
natd_flags="-f /etc/natd.conf2"

rc.firewall
$fwcmd add divert 8668 all from 10.1.1.1/24 to any via $oif
$fwcmd add divert 8669 all from 10.1.2.1/24 to any via $oif

natd.conf1
port    8668
interface fxp0
dynamic yes
alias_address external_ip_1
redirect_address 10.1.1.4 external_ip_1

natd.conf2
port    8668
interface fxp0
dynamic yes
alias_address external_ip_2
redirect_address 10.1.2.4 external_ip_2

TIA

pb



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.10103071501530.24949-100000>