NATD and PPP problem
jvennervald at proventum.net
Tue Aug 5 13:09:35 PDT 2003
I finally got it working by specifying the static ip of my external
interface in the natd_interface instead of tun0.
Hope somebody else finds this helpfull.
Jacob Vennervald wrote:
> Here is the ppp.conf file:
> set log Phase tun command # you can add more detailed logging
> if you wish
> set ifaddr 10.0.0.1/0 10.0.0.2/0 0.0.0.0 0.0.0.0
> set device PPPoE:xl0
> set authname XXXXXXXX
> set authkey XXXXXXXX
> set dial
> set login
> add default HISADDR
> Here's the complete rc.conf file:
> # Setup PPPoE for internet connection
> ppp_nat="NO" # if you want to enable nat for your local network,
> otherwise NO
> # Setup NAT on external interface
> # Setup internal interface
> ifconfig_fxp0="inet 10.0.0.1 netmask 255.255.255.0"
> # Set the hostname of the server
> # Extra network settings
> # Enable linux binaries
> # Localization
> # Enable mouse daemon
> Andrew Boothman wrote:
>> On Tuesday 05 August 2003 4:02 pm, Jacob Vennervald wrote:
>>> I have setup the pppoe connection which works perfectly and then I've
>>> tried to setup the machine as a NAT Router by setting the following in
>>> the rc.conf:
>>> But when I restart the machine it gives me the following error:
>>> "Firewall rules loaded, starting divert daemons: natdnatd: tun0: cannot
>>> get interface address"
>> Hmmm.... Strange.....
>> I've got 4.8 doing what you want, except using an xl0 instead of a
>> tun0 as the natd_interface because I get an ethernet port on my cable
>> Do you have ifconfig_tun0 = "DHCP" or something simiar in your
>> rc.conf, or does pppoe set things up differently? How is pppoe
>> configured to start in your setup? Can we see a more complete rc.conf
>> (you can remove any specific addresses or other incriminating
>> evidance ;)
>> I can't say I have any experience with your problem - but hopefully
>> we can shed some light on it.
> freebsd-questions at freebsd.org mailing list
> To unsubscribe, send any mail to
> "freebsd-questions-unsubscribe at freebsd.org"
More information about the freebsd-questions