CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Sat Sep 21, 2019 6:40 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Webvisu get mac address
PostPosted: Sat Jun 22, 2019 3:14 pm 
Offline

Joined: Sat Oct 20, 2018 12:08 am
Posts: 16
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


Top
   
PostPosted: Sat Jun 22, 2019 6:51 pm 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 187
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).

_________________
Make CODESYS great again


Top
   
PostPosted: Thu Jun 27, 2019 6:55 am 
Offline

Joined: Sat Oct 20, 2018 12:08 am
Posts: 16
Thanks for your answer,

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

Thanks
Luca


Top
   
PostPosted: Thu Jun 27, 2019 10:45 am 
Offline
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 187
lucaver89 wrote:
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

_________________
Make CODESYS great again


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited