Date: Mon, 13 May 1996 21:24:52 -0500 (CDT) From: Tony Kimball <alk@Think.COM> To: ejs@bfd.com Cc: questions@freebsd.org Subject: setting up an iijPPP server Message-ID: <199605140224.VAA19846@compound.Think.COM>
next in thread | raw e-mail | index | archive | help
I recommend kernel ppp when acting as a dial-up server. Works well for me. % tail -6 /etc/rc.local echo -n 'starting local daemons:' pppd ttyd0 persist echo -n ' pppd' echo '.' % cat /etc/ppp/options crtscts proxyarp netmask 255.255.255.0 proust-ppp:compound domain think.com #passive persist modem % I also put in a crontab entry... proust# crontab -u root -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.466 installed on Fri May 10 13:13:02 1996) # (Cron version -- $Id: crontab.c,v 1.3 1995/05/30 03:47:04 rgrimes Exp $) SHELL=/bin/sh PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/etc HOME=/root #min hr md mo wd cmd */5 * * * * checkpppd proust# cat /usr/bin/checkpppd #!/bin/sh k=`ps ax | grep pppd | grep -v grep | cut -c 1-5` if [ "X$k" = "X" ]; then pppd ttyd0 persist fi exit 0 This is because I found that pppd would sometimes fail to reaquire the device after a hangup, and then would terminate. Here are the relevant sysconfig sections: ######################### Start Of Netconfig Section ####################### # Set to the name of your host - this is pretty important! hostname=proust # Set to the NIS domainname of your host, or NO if none defaultdomainname=think.com # # Some broken implementations can't handle the RFC 1323 and RFC 1644 # TCP options. If TCP connections randomly hang, try disabling this, # and bug the vendor of the losing equipment. # tcp_extensions=YES # # Set to the list of network devices on this host. You must have an # ifconfig_${network_interface} line for each interface listed here. # for example: # # network_interfaces="ed0 sl0 lo0" # ifconfig_ed0="inet 10.0.0.1 netmask 0xffffff00" # ifconfig_sl0="inet 10.0.1.0 netmask 0xffffff00" # network_interfaces="lo0 ix0 ppp0" ifconfig_lo0="inet localhost" ifconfig_ix0="inet 198.87.99.30 netmask 0xffffff00" ifconfig_ppp0="inet 198.87.99.33 198.87.99.34 netmask 0xffffff00 down" # # Set to the list of route add lines for this host. You must have a # route_${static_routes} line for each static route listed here. # static_routes="loopback ppp" route_loopback="198.87.99.30 127.0.0.1" route_ppp="198.87.99.34 198.87.99.33" # Set to the host you'd like set as your default router, or NO for none. defaultrouter=198.87.99.1 # These are the flags you'd like to start the routing daemon with router=routed routedflags="-g" # If you want this host to be a gateway, set to YES. gateway=YES # Set to YES if you want to run gated gated=NO I suppose I should turn off routed altogether. But that would be draconian:-) I left out the details of security, so the above configuration provides a promiscuous dialup. But this should get you up, anyhow, and then you can fix the security at your leisure. //alk
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605140224.VAA19846>