Date: Tue, 13 May 2003 10:08:58 +1000 From: Zhi Hao Simon Lai <zhislai@bigpond.net.au> To: freebsd-questions@freebsd.org Subject: NETGRAPH SUPPORT Message-ID: <17E49628-84D7-11D7-8E77-0050E460B252@bigpond.net.au>
next in thread | raw e-mail | index | archive | help
Hello, I'm a newbie to FreeBSD and I'm currently trying to set up a my machine as a gateway via an ADSL connection and two Realtek 10/100 ethernet cards. I have installed a standard developers distribution of FreeBSD 5.0-RELEASE. My kernel is a standard one. I tried to get my machine connected using ppp. However I get the following errors: rusty# ppp Working in interactive mode Using interface: tun0 ppp ON rusty> dial bigpond Warning: netgraph: Cannot load module Warning: ng_ether: Cannot load module Warning: ng_pppoe: Cannot load module Warning: ng_socket: Cannot load module Warning: Cannot create netgraph socket node: Operation not permitted ppp ON rusty> Warning: netgraph: Cannot load module Warning: ng_ether: Cannot load module Warning: ng_pppoe: Cannot load module Warning: ng_socket: Cannot load module Warning: Cannot create netgraph socket node: Operation not permitted Warning: deflink: Device (PPPoE:rl0:bigpond) must begin with a '/', a '!' or contain at least one ':' I was following instructions based on this website: http://logicsquad.net/freebsd/PPPoE-how-to.html#AEN64 I have e-mailed the author and he seems to think it may have something to do with the support of netgraph and ng_* modules in FreeBSD 5.0-RELEASE. I have taken a look at an article in freebsd.org, http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoe.html and I get the impression that netgraph and ng_* modules have been and will be continually dynamically loaded in 4.x and 5.x builds? Below I have included all the files I have modified (excluding the /etc/rc.firewall). Please let me know if you require any further information about my machine. regards, Newbie Simon /etc/rc.conf gateway_enable="YES" hostname="rusty.homelan.com" #network_interfaces="rl0" #ifconfig_rl0="up" ifconfig_rl1="inet 192.168.0.1 netmask 255.255.255.0" kern_securelevel_enable="YES" kern_securelevel="1" linux_enable="YES" moused_enable="YES" sendmail_enable="NO" sshd_enable="YES" usbd_enable="YES" syslogd_flags="-ss" portmap_enable="NO" inetd_enable="NO" log_in_vain="YES" accounting_enable="YES" #ntpupdate_enable="YES" #ntpupdate_program="/usr/sbin/ntpdate" #ntpdate_flags="ntp.ise.canberra.edu.au" #xntpd_enable="YES" #xntpd_program="/usr/sbin/ntpd" #xntpd_flags="-p /var/run/ntpd.pid" firewall_enable="YES" firewall_script="/etc/rc.firewall" firewall_type="client" firewall_quiet="NO" firewall_logging="YES" firewall_flags="" ppp_enable="YES" ppp_profile="bigpond" ppp_mode="ddial" >>>>>>>>>>>>>>>>>>>>> /etc/sysctl.conf # $FreeBSD: src/etc/sysctl.conf,v 1.7 2002/09/25 22:17:18 jmallett Exp $ # # ``sysctl'' to adjust kernel values. ``man 5 sysctl.conf'' for details. # # Uncomment this to allow users to only see information about processes that # are being run under an equivalent UID. #security.bsd.see_other_uids=0 net.inet.tcp.blackhole=2 net.inet.udp.blackhole=1 net.inet.ip.rtexpire=2 nen.inet.ip.rtminexpire=2 kern.ipc.comaxconn=1024 net.inet.tcp.sendspace=8192 net.inet.tcp.recvspace=16384 net.inet.tcp.rfc1323=1 net.inet.tcp.always_keepalive=1 kern.ipc.maxsockets=163840 kern.ipc.maxsockbuf=2097152 >>>>>>>>>>>>>>>>>>>>> /etc/ppp/ppp.conf 2.2.5. ################################################################# # PPP Sample Configuration File # Originally written by Toshiharu OHNO # Simplified 5/14/1999 by wself@cdrom.com # # See /usr/share/examples/ppp/ for some examples # # $FreeBSD: src/etc/ppp/ppp.conf,v 1.8 2001/06/21 15:42:26 brian Exp $ ################################################################# default: set device PPPoE:rl0:bigpond set speed sync set mru 1492 set mtu 1492 set ctsrts off enable lqr add default HISADDR set timeout 0 set redial 0 0 # Network Address Translation (NAT) nat enable yes nat log yes nat same_ports yes nat unregistered_only yes enable dns bigpond: set authname set authkey >>> >>>>>>>>>>> /etc/rc.conf ppp_enable="YES" ppp_profile="bigpond" ppp_mode="ddial" >>>>>>>>>>>>>>> /etc/resolv.conf rusty# cat /etc/resolv.conf domain homelan.com nameserver 61.9.192.14 nameserver 61.9.192.15 >>>>>>>>>>>>>>>>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17E49628-84D7-11D7-8E77-0050E460B252>