On 4/26/07, <b class="gmail_sendername">Ricardo SIGNES</b> &lt;<a href="mailto:rjbs-perl-abe@lists.manxome.org">rjbs-perl-abe@lists.manxome.org</a>&gt; wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* &quot;Faber J. Fedor&quot; &lt;<a href="mailto:faber@linuxnj.com">faber@linuxnj.com</a>&gt; [2007-04-26T21:13:24]<br>&gt; I&#39;m writing a Perl script wherein I have to set IP addresses, routing<br>&gt; tables, etc. on local and remote machines.
<br>&gt;<br>&gt; I&#39;m planning on just gathering up the info and using Net::SSH::Perl to<br>&gt; do my stuff.<br><br>If you&#39;re doing it on Linux, </blockquote><div><br>Like I&#39;d attempt this on anything but!&nbsp; <br>
<br>It&#39;s an interesting project: an implementation of &quot;direct routing&quot; (alittle more complicated than this (<a href="http://www.linuxvirtualserver.org/VS-DRouting.html">http://www.linuxvirtualserver.org/VS-DRouting.html
</a>) which I view as &quot;commercial IP spoofing&quot;.&nbsp; You, the end user, surfs to <a href="http://videos.linuxnj.com">videos.linuxnj.com</a>.&nbsp; The packets are rerouted to <a href="http://router.jcap.com">router.jcap.com
</a>, a Linux-based router which redirects them to <a href="http://videos.jcap.com">videos.jcap.com</a> which does the actual hosting of linuxnj&#39;s videos. <a href="http://www.jacp.com">www.jacp.com</a> sends the packets back to you with 
<a href="http://video.linuxnj.com">video.linuxnj.com</a>&#39;s IP address in the packets. What I&#39;m writing is the program that sets up <a href="http://videos.linuxnj.com">videos.linuxnj.com</a>, <a href="http://router.jcap.com">
router.jcap.com</a> and <a href="http://videos.jcap.com">videos.jcap.com</a>.<br><br>Supposedly it can all be done with scripts (as opposed to kernel modules).<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
there may be modules to do a bunch of that stuff.</blockquote><div><br>Which is why I&#39;m asking here. :-)&nbsp; I&#39;ve looked around but haven&#39;t seen much.&nbsp; <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There&#39;s <a href="http://search.cpan.org/~dpates/IPTables-IPv4-0.98/IPv4.pm">http://search.cpan.org/~dpates/IPTables-IPv4-0.98/IPv4.pm</a></blockquote><div><br>Interesting, but it looks to be local only. <br></div><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I&#39;d probably skip Net::SSH::Perl and use ssh and IPC::Run or something, but...<br>it&#39;s hard to say.
</blockquote><div><br>Again, seems to be local only. <br></div></div><br><br>--<br><br>faber<br><br>