PDA

View Full Version : ep0 --> ppp0


ealwen
July 28th, 2003, 11:38
Ok so here is the short of it. I set my BSD box to dial my isp and I rebuilt the kernel to bridge the connections from ep0 to ppp0. But a couple things are happening that I can't figure out.

First off after I configured the ppp settings to get it running, I edited resolv.conf with the DNS of my ISP. Now even though I save it, everytime I reboot the resolv.conf gets changed back to the way it was before I configured PPP which means I can't resolve anything. I looked at the /etc directory to see if there was another resolv.* that maybe is being replaced but I didn't find any. I have also scanned the handbook on this and can't find anything about ppp modifying the resolv.conf everytime. So what is going on?

Just a side question since I have never tried it before, is there somewhere I can put "ppp -auto provider" so that I don't have to log in as root and start it everytime I reboot? Thanks

|MiNi0n|
July 28th, 2003, 12:21
Does the box DHCP on the lan side of things?

As for the ISP's DNS address, you want to use the 'enable dns' function in ppp to have the DNS added automagically each time the connection is brought up.

|MiNi0n|
July 28th, 2003, 13:05
Just a side question since I have never tried it before, is there somewhere I can put "ppp -auto provider" so that I don't have to log in as root and start it everytime I reboot? Thanks

You want to create a startup script in /usr/local/etc/rc.d

socomm
July 28th, 2003, 13:06
Just a side question since I have never tried it before, is there somewhere I can put "ppp -auto provider" so that I don't have to log in as root and start it everytime I reboot? Thanks

/etc/rc.conf

Check the handbook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoe.html).

ealwen
July 28th, 2003, 16:56
Currently I am using static ip addresses I chose. I did add "enable DNS" into my ppp.conf but I will check it again. Really I want it be in there anyway because this machine is also a cache DNS server itself. I needed it there so it can so lookups from my ISP's DNS server.

ealwen
July 28th, 2003, 20:51
I got it. I had the natd stuff in rc.conf before the ppp. I saw that it was failing and I think it was firewall me away from the internet. I switched them and now everything works like it is suppose to.