|
|
|
| PPP to dial ISP | |
|
|
|
| Let's get to the point, check the tun0 device in
/dev , if there are no tun* devices then create them by this
following command :
#cd /dev #sh MAKEDEV tun0 or #sh MAKEDEV tun15 ( this will create tun0, ... ,tun15 ). check the modem device in /dev , or you can create them by : #sh MAKEDEV cuaa ( this will create cuaa* devices ). make sure you have done the steps above, and now we will need ppp.conf file in /etc/ppp/ . You can get the ppp.conf.sample in /usr/share/example/ppp/ for the sample configuration. Here is ppp.conf file in my FreeBSD machine:
#PPP.CONF The PPP.conf file above assumes that we have two ISPs , so just decide which ISP we want to dial. Then simply execute ppp -auto telkom or ppp -auto ISP2 ( automatic mode ), we also enable dial in interactive mode. For fully PPP tutorial see http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ppp-and-slip.html Don't forget to put your ISP`s DNS in your resolv.conf file : #resolv.conf.sample It's great idea to resync the ipf current list in the kernel each time ppp make a connection, and I always unload the ipnat.rules when ppp closes connection. So I put some commands in the ppp.linkup and ppp.linkdown in /etc/ppp/ or you can create them both by yourself. Here is the samples : #PPP.LINKUP Happy surfing ,, now .. :)) G-net Pekalongan, June 2002 by esteh |
|