Webvisu get mac address

Runtime
lucaver89
2019-06-22
2019-06-27
  • lucaver89

    lucaver89 - 2019-06-22

    Hi to All,

    In ny application I would like implement the "hardware authentication" with mac address for increase the safety. I was thinking of filing out a table with a list of mac address of authorized devices. From the webvisu server is possible get the mach address of the clinent connected? If no, are there other options to do it?

    Thanks for support,
    Luca

     
  • e.kislov

    e.kislov - 2019-06-22

    You can get IP address of web-visu client:
    https://faq.codesys.com/display/CDSFAQ/ ... the+Client

    After that you can execute ARP request with SysProcess library (search info about appropriate Linux commands) or ARP library (unfortunately, there is no example for it).

     
  • lucaver89

    lucaver89 - 2019-06-27

    Thanks for your answer,

    How can I refuse the client connection if the IP dosn't match in my private table?

    Thanks
    Luca

     
  • e.kislov

    e.kislov - 2019-06-27

    lucaver89 hat geschrieben:
    Thanks for your answer,
    How can I refuse the client connection if the IP dosn't match in my private table?
    Thanks
    Luca

    Well, i think it's not CODESYS side.
    Check examples how to use iptables in Raspbian...
    Something like that:
    https://www.cyberciti.biz/tips/iptables ... ering.html m

     

Log in to post a comment.