On 01/13/2017 08:15 PM, Brandon Allbery wrote:

On Fri, Jan 13, 2017 at 10:51 PM, ToddAndMargo <toddandma...@zoho.com> wrote:
What ports are panda using other than git?

This is not a fault in panda.

I am confused.  Why in the world would panda be executing ftp code
when it is compiling/installing a module?   Who told it the name of
the FTP server?  Who told it the username and password?

And, my firewall, which I wrote, logs EVERYTHING that gets
rejected, both incoming and outgoing.  I used this logging to
create a rule to allow "git" to establish outgoing connections.

AND THE FIREWALL LOG IS DEAD QUIET when running
          panda install Net::FTP

Well, after installing the "git" rule and some turkey
sending mangles packets to port 443.

So I do not understand

The Net::FTP module implements the FTP protocol, which runs on TCP ports 20 and 21 --- but in active mode it will attempt to connect back to your machine, and in passive mode it will make an outgoing connection to a port specified by the server on the command channel. FTP is not a good idea behind restrictive firewalls; you will not be able to get it to work without a smart firewall that tracks the FTP command channel to open a hole for the requested port. If you don't absolutely need this module, consider just not installing it; if you do need it for some specific purpose, you probably want to talk to the admin(s) of the site you are working with and try to get permission to use a more modern protocol like scp or the sftp module of ssh.

--
brandon s allbery kf8nh                               sine nomine associates
allber...@gmail.com                                  ballb...@sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net

Hi Brandon and Friends,

Net::FTP supports "passive mode".
my $ftp = Net::FTP.new(:host<$FtpServer>, :user<$Username>, :pass<$Password>, :passive);

Active mode is not an issue as the target FTP server is
on a local network.  I plan on using passive mode anyway.

Part of the confusion is that my systems are Linux based and
I have wrote a really nasty firewall: all things are illegal
unless stated otherwise, both incoming and outgoing.
I model on my system and transfer to the customer's
systems.

The target system is a Windows client with an internal
Linux FTP server on the network: vsftpd-3.0.3-3.fc25.x86_64

vsftp does support sftp and I really don't care what I use
AS LONG AS IT WORKS.  This is an internal system.

The purpose behind what I am doing is to create a
backup archive rotator on an internal FTP server.

The reason behind backing up Windows clients to a
Linux FTP server is that ransomware can't get at the
backups, as they do with anything with drive letters.

The backup client is Cobian Backup.  It will write to
an FTP server.  But, Cobian can not do house
keeping properly on the FTP archive sets as it can not rotate
archives when files in the archives have letters in their
names that Windows Explorer (not IE) can not
deal with, such as "+++" (for example, Firefox's "Storage"
directory).

Cobian can backup, but can not rotate (remove) old
archives.

So, I am rewriting a batch script I wrote to rotate
Cobain backup files to local drives.  The Cobian
database for rotating does not work very well
and certainly falls apart with my hidden partitions
backup scheme on local drives.  (I will go
into that for anyone who is curious.)

So I need Perl6 to let me do a directory listing
on the FTP server, rename directories, and
recursively delete directories.

I can do this in Perl5, but I have had it with
Perl5's stone age subroutines.

Perl6 is pretty much useless without the modules, except writing
"hello world!"

<editorial comment>
        AAAAAAAHHHHHHHHHHH!!!!!!!!!!
</editorial comment>

Sorry for the frustration.  Thank you all for the help so far.
-T

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Computers are like air conditioners.
They malfunction when you open windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to