Posts

Showing posts with the label radius

radius add nas record to nas table fail

radius add nas record to nas table fail my compony has a radius that was used to auth, now I want to use that to strongswan vpn , and after I config the strongswan,I config the radius that add nas table a record like 10 | 172.16.2.10 | hlg-vpn | other | NULL | testing | NULL | NULL | RADIUS Client | and ok, the 172.16.2.10 is the ipaddress of the strongswan server, and the nas table also contain others nas records those work fine . the record I add to nas table seems doesn't work. when I auth the vpn with a radius account, the radius log is like Sat Jun 24 20:34:45 2017 : Error: Ignoring request to authentication address * port 1812 from unknown client 172.16.2.10 port 48394 Sat Jun 24 20:34:47 2017 : Error: Ignoring request to authentication address * port 1812 from unknown client 172.16.2.10 port 48394 Sat Jun 24 20:34:50 2017 : Error: Ignoring request to authentication address * port 1812 from unknown client 172.16.2.10 port 48394 Sat Jun 24 20:34:54 2017 : Er...

Javascript how to add a radius to latitude and longitude

Javascript how to add a radius to latitude and longitude I have a javascript function to calculate the distance between two coordinates. Now, I need to create another function that takes in a gps coordinates and add a radius to come up with a 2nd coordinates. I'm not sure how to do that and the math behind it. Here's the function for calculating the distance between two coordinates. function distanceInKm(lat1, lon1, lat2, lon2) { var earthRadiusKm = 6371; var dLat = degreesToRadians(lat2-lat1); var dLon = degreesToRadians(lon2-lon1); lat1 = degreesToRadians(lat1); lat2 = degreesToRadians(lat2); var a = Math.sin(dLat/2) * Math.sin(dLat/2) + Math.sin(dLon/2) * Math.sin(dLon/2) * Math.cos(lat1) * Math.cos(lat2); var c = 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1-a)); return earthRadiusKm * c; } By clicking "Post Your Answer", you acknowledge that you have read our updated terms of...