Ok, I'm trying to set up a NAT. I have freebsd FreeBSD 9 with 2 interfaces. fxp0 and xl0.
xl0 is my "external" interface (10.0.0.1), and is connected to a basic DSL bridge, this will require pppoe running on the box. I can successfully enable ppp client, and it assigns my ADSL IP address to a new interface (tun0), but doesn't seem to put any DNS or gateway information anywhere. Since Bell (my DSL provider) will not assign static addresses, it has to get it dynamically, I can't just add a static route. How do I get it to do this dynamically?
For xl0 I have this in rc.conf:
This is my ppp.conf:
fxp0 is my "internal" interface (192.168.100.1), and I have dhcpd working and giving out IPs in the address space I want it to, no problem. I'll deal with the routing from internal to external afterwards, but right now I can't even get the box to get an internet connection. I guess you could call me a newbie, but not really... I'm just old and I've forgotten what I'm doing
I'm sure I'm missing something fairly obvious.
xl0 is my "external" interface (10.0.0.1), and is connected to a basic DSL bridge, this will require pppoe running on the box. I can successfully enable ppp client, and it assigns my ADSL IP address to a new interface (tun0), but doesn't seem to put any DNS or gateway information anywhere. Since Bell (my DSL provider) will not assign static addresses, it has to get it dynamically, I can't just add a static route. How do I get it to do this dynamically?
For xl0 I have this in rc.conf:
Code:
ifconfig_xl0="inet 10.0.0.1 netmask 255.255.255.0"
This is my ppp.conf:
Code:
default:
set log Phase Chat LCP IPCP CCP tun command
set redial 15 28800
set reconnect 15 28800
set ifaddr 10.0.0.1/0 10.0.0.2/0
pppoe:
set device PPPoE:xl0:
set timeout 0
set authname xxx@sympatico.ca
set authkey xxx
set dial
set login
add default HISADDR
fxp0 is my "internal" interface (192.168.100.1), and I have dhcpd working and giving out IPs in the address space I want it to, no problem. I'll deal with the routing from internal to external afterwards, but right now I can't even get the box to get an internet connection. I guess you could call me a newbie, but not really... I'm just old and I've forgotten what I'm doing
