Send a File to Other System



  • Hello, I need to retrieve the arp table from pfsense and send it to other system, my idea was to have a batch running "arp -a" and writing the output to a file that I would send to other system.

    I think that I would prefere to push a file from pfSense so that I don't have to give ssh permissions to other users. The problem is where do I put the private key to give root the ability to scp to other system? Is this possible?

    Another solution would be to publish the content in the pfSense webserver, but I would prefere to do that as a last resource so that I don't have the arp table open to all pc's on the network.

    Thank You


  • Netgate Administrator

    You probably want a variation on this:
    https://www.netgate.com/docs/pfsense/backup/remote-config-backup.html#push-it

    Never tried it myself but 30secs Googling turned up this likely suspect:
    https://gist.github.com/ilumos/f6861ea879889146ce9ad61a956ba801

    You should be able to get suitable command setup from that to write out the arp table to remote system directly I would have thought.

    Edit: Tested. Mostly works. Should be adaptable to your needs.

    Steve


 

© Copyright 2002 - 2018 Rubicon Communications, LLC | Privacy Policy