<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Syslog event generator with Net::RawIP (perl)	</title>
	<atom:link href="https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/feed/" rel="self" type="application/rss+xml" />
	<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/</link>
	<description>Ramblings of an old-fashioned space cowboy</description>
	<lastBuildDate>Wed, 10 Dec 2014 08:45:56 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>
		By: Chris		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-157618</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Wed, 10 Dec 2014 08:45:56 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-157618</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-3700&quot;&gt;Ben&lt;/a&gt;.

Packet.pm goes under Packet, and in there have a directory UDP in which udp.pm goes, and in there a directory called syslog in which you put Syslog.pm.  Easiest thing to do is have /Packet  in the same directory as your perl script unless you end up better packaging your code]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-3700">Ben</a>.</p>
<p>Packet.pm goes under Packet, and in there have a directory UDP in which udp.pm goes, and in there a directory called syslog in which you put Syslog.pm.  Easiest thing to do is have /Packet  in the same directory as your perl script unless you end up better packaging your code</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ben		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-3700</link>

		<dc:creator><![CDATA[Ben]]></dc:creator>
		<pubDate>Tue, 07 Jan 2014 22:38:16 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-3700</guid>

					<description><![CDATA[I&#039;m not quite clear of the filenames and directory structure that the 2nd &#038; 3rd pieces of code should be saved in.  Can you elaborate on that, or give more specifics?]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not quite clear of the filenames and directory structure that the 2nd &amp; 3rd pieces of code should be saved in.  Can you elaborate on that, or give more specifics?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sunil		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-743</link>

		<dc:creator><![CDATA[Sunil]]></dc:creator>
		<pubDate>Mon, 18 Mar 2013 09:51:45 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-743</guid>

					<description><![CDATA[Hi Johnny, 

I want to change my source IP from where syslog packet is being send e.g. ip address of my machine is 192.168.0.10 which is getting identified as &#039;log source&#039; ip, instead of that I want 10.10.0.12 as a source IP, how to do that, please help. 

Thanks 
Sunil]]></description>
			<content:encoded><![CDATA[<p>Hi Johnny, </p>
<p>I want to change my source IP from where syslog packet is being send e.g. ip address of my machine is 192.168.0.10 which is getting identified as &#8216;log source&#8217; ip, instead of that I want 10.10.0.12 as a source IP, how to do that, please help. </p>
<p>Thanks<br />
Sunil</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-737</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Sat, 09 Mar 2013 20:28:27 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-737</guid>

					<description><![CDATA[Actually, it does work it just seems to be acting as padding, a space does the same job without the strange hex codes.]]></description>
			<content:encoded><![CDATA[<p>Actually, it does work it just seems to be acting as padding, a space does the same job without the strange hex codes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Chris		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-736</link>

		<dc:creator><![CDATA[Chris]]></dc:creator>
		<pubDate>Sat, 09 Mar 2013 20:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-736</guid>

					<description><![CDATA[Yep \@udp_fields and \@ip_fields should be in UDP.pm

However, what on earth is � in Syslog.pm?  Without it, it doesnt send.  With it you get \xEF\xBF on the end of the message?

--Chris]]></description>
			<content:encoded><![CDATA[<p>Yep \@udp_fields and \@ip_fields should be in UDP.pm</p>
<p>However, what on earth is � in Syslog.pm?  Without it, it doesnt send.  With it you get \xEF\xBF on the end of the message?</p>
<p>&#8211;Chris</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Michael Fread		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-556</link>

		<dc:creator><![CDATA[Michael Fread]]></dc:creator>
		<pubDate>Tue, 25 Sep 2012 20:28:44 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-556</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-491&quot;&gt;Johnny Morano&lt;/a&gt;.

I got these errors as well. The problem is that all the \ characters are missing in the UDP.pm code listing.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-491">Johnny Morano</a>.</p>
<p>I got these errors as well. The problem is that all the \ characters are missing in the UDP.pm code listing.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Johnny Morano		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-491</link>

		<dc:creator><![CDATA[Johnny Morano]]></dc:creator>
		<pubDate>Thu, 12 Jul 2012 12:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-491</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-487&quot;&gt;blaxthos&lt;/a&gt;.

Hi,

How does your &#039;syslog_gen.pl&#039; script look like?]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-487">blaxthos</a>.</p>
<p>Hi,</p>
<p>How does your &#8216;syslog_gen.pl&#8217; script look like?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: blaxthos		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-487</link>

		<dc:creator><![CDATA[blaxthos]]></dc:creator>
		<pubDate>Mon, 09 Jul 2012 15:38:20 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-487</guid>

					<description><![CDATA[This is great stuff, however... when I attempt to run the script as presented above, I receive the following error:

&lt;code&gt;dev@ubuntu:~/Documents/syslog_generator$ ./syslog_gen.pl 
Odd number of elements in anonymous hash at UDP.pm line 59.
Can&#039;t use string (&quot;source&quot;) as an ARRAY ref while &quot;strict refs&quot; in use at /usr/local/lib/perl/5.14.2/Net/RawIP.pm line 564.
&lt;/code&gt;

I&#039;ve tried turning off strict, but still couldn&#039;t get it working.

Line 59 in UDP.pm:

&lt;code&gt;my(@udp_data) = $self-&#062;{rawip}-&#062;get({ udp =&#062; @udp_fields });&lt;/code&gt;

Line 564 in RawIP.pm:

&lt;code&gt;map { ${$$hash{&quot;$self-&#062;{proto}h&quot;}}{$_} = &#039;$&#039; } @{$hash-&#062;{$self-&#062;{proto}}}; &lt;/code&gt;

Perl 5.14.2.

Any ideas?

Thanks!

/b

PS - running all with elevated permissions, just in case you need root to access Raw IP.]]></description>
			<content:encoded><![CDATA[<p>This is great stuff, however&#8230; when I attempt to run the script as presented above, I receive the following error:</p>
<p><code>dev@ubuntu:~/Documents/syslog_generator$ ./syslog_gen.pl<br />
Odd number of elements in anonymous hash at UDP.pm line 59.<br />
Can't use string ("source") as an ARRAY ref while "strict refs" in use at /usr/local/lib/perl/5.14.2/Net/RawIP.pm line 564.<br />
</code></p>
<p>I&#8217;ve tried turning off strict, but still couldn&#8217;t get it working.</p>
<p>Line 59 in UDP.pm:</p>
<p><code>my(@udp_data) = $self-&gt;{rawip}-&gt;get({ udp =&gt; @udp_fields });</code></p>
<p>Line 564 in RawIP.pm:</p>
<p><code>map { ${$$hash{"$self-&gt;{proto}h"}}{$_} = '$' } @{$hash-&gt;{$self-&gt;{proto}}}; </code></p>
<p>Perl 5.14.2.</p>
<p>Any ideas?</p>
<p>Thanks!</p>
<p>/b</p>
<p>PS &#8211; running all with elevated permissions, just in case you need root to access Raw IP.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Johnny Morano		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-113</link>

		<dc:creator><![CDATA[Johnny Morano]]></dc:creator>
		<pubDate>Thu, 16 Feb 2012 08:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-113</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-112&quot;&gt;Pierre&lt;/a&gt;.

If you need help, I&#039;m happy to assist ;-)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-112">Pierre</a>.</p>
<p>If you need help, I&#8217;m happy to assist 😉</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Pierre		</title>
		<link>https://jmorano.moretrix.com/2011/06/syslog-event-generator-with-netrawip-perl/#comment-112</link>

		<dc:creator><![CDATA[Pierre]]></dc:creator>
		<pubDate>Wed, 08 Feb 2012 08:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://jmorano.moretrix.com/?p=632#comment-112</guid>

					<description><![CDATA[Hi Johnny

wow, this is really cool. I know very little about perl and scripting, but I am faced with a problem whereby I am recieving a sh#tload of syslog messages from Cisco devices. They are all received by a CiscoWorks LMS server , they are then filtered and then  forwarded to an another syslog collecting server. Thing is, that this collecting server &quot;sees&quot; all these messages coming from one device - which is the LMS server. I hope to use your script and modify this forwarding script so that it will show the original devices&#039; IP address. 
Cheers
P]]></description>
			<content:encoded><![CDATA[<p>Hi Johnny</p>
<p>wow, this is really cool. I know very little about perl and scripting, but I am faced with a problem whereby I am recieving a sh#tload of syslog messages from Cisco devices. They are all received by a CiscoWorks LMS server , they are then filtered and then  forwarded to an another syslog collecting server. Thing is, that this collecting server &#8220;sees&#8221; all these messages coming from one device &#8211; which is the LMS server. I hope to use your script and modify this forwarding script so that it will show the original devices&#8217; IP address.<br />
Cheers<br />
P</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
