Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Apr 2005 17:47:40 -0700
From:      patrick <gibblertron@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Adding a default route for a specific NIC
Message-ID:  <b043a4850504031747592e6ab2@mail.gmail.com>
In-Reply-To: <b043a48505040316177af85510@mail.gmail.com>
References:  <b043a48505040316177af85510@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
And one more bit of info that might be helpful to know...

The jail I've setup will serve sites on various IP addresses. Since
FreeBSD jails by default only allow one IP, I've given the jail an
internal IP, and am just forwarding the desired ports on the external
IPs into the jail's IP using ipfw. This is all working fine, so the
only thing left for me to solve is how to get things in my jail
working so that I can make outbound TCP connections.

Thanks again,

Patrick

On Apr 3, 2005 4:17 PM, patrick <gibblertron@gmail.com> wrote:
> I have a FreeBSD 4.11 server with two NICs -- one has a real IP (bge0)
> and the other has an internal IP (bge1, 192.168.42.6).
> 
> The default route for the server (defaultrouter= in rc.conf) is the
> gateway for the real IP. How can I set a route such that traffic going
> out on bge1 goes through a different router, even if it's to the
> outside world?
> 
> Basically, I have a jailed setup running with a private IP address. On
> the private network, there is a gateway machine that's setup to NAT
> the traffic out to the internet. Currently, I cannot get out to the
> internet from the jail unless I set the default route of the entire
> server to be my internal NAT gateway.
> 
> Any ideas?
> 
> Thanks,
> 
> Patrick
>



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