On 4/26/07, <b class="gmail_sendername">Ricardo SIGNES</b> <<a href="mailto:rjbs-perl-abe@lists.manxome.org">rjbs-perl-abe@lists.manxome.org</a>> 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;">
* "Faber J. Fedor" <<a href="mailto:faber@linuxnj.com">faber@linuxnj.com</a>> [2007-04-26T21:13:24]<br>> I'm writing a Perl script wherein I have to set IP addresses, routing<br>> tables, etc. on local and remote machines.
<br>><br>> I'm planning on just gathering up the info and using Net::SSH::Perl to<br>> do my stuff.<br><br>If you're doing it on Linux, </blockquote><div><br>Like I'd attempt this on anything but! <br>
<br>It's an interesting project: an implementation of "direct routing" (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 "commercial IP spoofing". You, the end user, surfs to <a href="http://videos.linuxnj.com">videos.linuxnj.com</a>. 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'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>'s IP address in the packets. What I'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'm asking here. :-) I've looked around but haven't seen much. <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'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'd probably skip Net::SSH::Perl and use ssh and IPC::Run or something, but...<br>it's hard to say.
</blockquote><div><br>Again, seems to be local only. <br></div></div><br><br>--<br><br>faber<br><br>