Hey Dave, Good afternoon. Does this help with keeping the source IP to be the original IP (source natting)? As long as I keep all the configs the same regardless of the file it uses, it shouldn't be an issue. Anywhere is that config:
[root@em7-freebsd /usr/local/etc/rc.d]# cat snmptrapd #!/bin/sh # # $FreeBSD: ports/net-mgmt/net-snmp/files/snmptrapd.sh.in,v 1.2 2010/03/27 00:14:24 dougb Exp $ # # PROVIDE: snmptrapd # REQUIRE: DAEMON # # Add the following line to /etc/rc.conf to enable snmptrapd: # # snmptrapd_enable="YES" # snmptrapd_enable=${snmptrapd_enable-"NO"} snmptrapd_flags=${snmptrapd_flags-"-p /var/run/snmptrapd.pid"} . /etc/rc.subr load_rc_config net_snmptrapd if [ ! -z "$net_snmptrapd_enable" ]; then echo "Warning: \$net_snmptrapd_enable is obsoleted." echo " Use \$snmptrapd_enable instead." snmptrapd_enable="$net_snmptrapd_enable" [ ! -z "$net_snmptrapd_flags" ] && snmptrapd_flags="$net_snmptrapd_flags" fi name=snmptrapd rcvar=`set_rcvar` command=/usr/local/sbin/${name} pidfile=/var/run/${name}.pid load_rc_config ${name} run_rc_command "$1" Thanks as still cannot seem to get source forwarding/natting to work. Sincerely, George --- On Fri, 7/1/11, Dave Shield <d.t.shi...@liverpool.ac.uk> wrote: > From: Dave Shield <d.t.shi...@liverpool.ac.uk> > Subject: Re: Snmptrap not forwarding on proper port > To: "George" <ai...@yahoo.com> > Cc: "net-snmp-users@lists.sourceforge.net" > <net-snmp-users@lists.sourceforge.net> > Date: Friday, July 1, 2011, 5:07 PM > On 1 July 2011 21:10, George <ai...@yahoo.com> > wrote: > > Still no go: > > Ok - rather than trying to guess where the config > files > should go, it's probably worth checking this properly. > > Have a look at the /usr/local/etc/rc.d/snmptrapd script > > First, see if it specifies an explicit config file > location. > If so, then try copying the file there. > > If the rc.d script doesn't specify the config file, then > check that script to see where the snmptrapd binary is. > Run that using the option -Dread_config which should > display the search path that it's using. > What does that report? > > Dave ------------------------------------------------------------------------------ AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users