OpenBSD supports two different sorts of Point-to-Point Protocol:
/etc/ppp/ppp.conf.sample includes several sample connections that cover almost any sort of connection, such as UNIX-style logins over PPP (much like a serial terminal), PPP connections with a static IP addresses, and so on. We care about the boring, dynamic IP dial-up shown in the “PAPorCHAPpmdemand” label, which is a good model for an average Internet dial-up. PAPorCHAPpmdemand: set phone 1234567 1 set login 2 set authname MyName 3 set authkey MyKey 4 set timeout 120 5 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 6 add default HISADDR 7 enable dns 8 This configuration uses the settings from the default configuration, such as the modem port, the logging settings, and the connect string. All we have to set here is some basic information specific to this particular connection. First, we 1 set the phone number you want to call with the “set phone” option. Do not use parenthesis, dashes, or other separators. You can use commas, but they will cause a delay between dialing numbers. (This may be what you want, of course.) The 2 “set login” statement tells PPP to log in to the system on the other end. Next, tell the system your 3 dial-up username. In place of the string “MyName,” put your username. Your dial-up password goes in the 4 “set authkey” line. This entry is why /etc/ppp/ppp.conf is readable only by root. The 5 timeout line tells PPP how many seconds the line should remain idle before disconnecting the connection. If you don’t ever want the connection to go down, set the timeout to 0 or invoke PPP as a dedicated line (see “Using PPP”). The long, complicated-looking 6 “set ifaddr” line tells PPP which range of IP addresses you will accept for your connection. (You could use this to specify a static IP address, which we’ll look at later). The example given will work with almost any situation where you have a dynamic IP address. The 7 “add default” entry tells PPP to add a default route pointing to the host on the other end of the PPP connection. You don’t need to edit this; it doesn’t really matter what IP address lies on the other end of that tunnel, you just want to send your packets there. Finally, the 8 “enable dns” line tells PPP to update /etc/resolv.conf with the nameservers provided by your ISP’s dial-up servers. If you have preferred nameservers listed in /etc/resolv.conf, you don’t want to set this! Example ISP Configuration So, I’m going to use the example above as a basis for my own dial-up configuration. My ISP is AbsoluteOpenBSD. The modem number is 555-831-9944. My username is “mwlucas” and my password is “5k$l*!trB.” My configuration will look like this: AbsoluteOpenBSD: 1 set phone 5558319944 2 set login set authname mwlucas 3 Page 180
Note: If you are looking for cheapest and affordable webspace to host and run your servlet application check Astra servlet hosting services