Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 11 Jun 2001 10:44:48 +0800
From:      Xia Tao <wtxiatao@hust.edu.cn>
To:        Christopher Farley <chris@northernbrewer.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: How to change the default source address?
Message-ID:  <01c301c0f220$7b7f9d10$6401010a@rhapsody>
References:  <200106100607.BAA16222@drake.host4u.net> <016f01c0f1ab$3f6020e0$6401010a@rhapsody> <20010610111042.A51916@northernbrewer.com> <20010610111430.B51916@northernbrewer.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
Thanks for your reply.
But it seems that it does not work this way.I think that
Because the gateway is 192.168.251.80 always.So the
FreeBSD takes the 192.168.251.30  as the default source
address.

Anyway, I found a way to solve this problem.I install ipfw+natd.
And          ipfirewall open
                natd  -a 210.74.130.100
Then it works well.




> Christopher Farley (chris@northernbrewer.com) wrote:
> 
> > ifconfig_ed0_alias0="inet 210.74.130.100 netmask 255.255.255.255" 
> > ifconfig_ed0_alias1="inet 10.0.0.2 netmask 255.255.255.255"
> 
> You'll want to replace 10.0.0.2 with your own private IP, in your case
> 192.168.251.30...
> 



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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01c301c0f220$7b7f9d10$6401010a>