gfdgfdgfd454asaakhj 0 Posted ... Is there a list of all the VPN entry IPs, in format easy to import in UFW (ubuntu firewall) so there won't be internet connectivity until connected to any of the VPNs? Quote Share this post Link to post
go558a83nk 362 Posted ... https://airvpn.org/topic/14378-how-can-i-get-vpn-servers-entry-ip-addresses/ Quote Share this post Link to post
gfdgfdgfd454asaakhj 0 Posted ... Thanks but ideally for me would be a full list ready to copy paste with import commands for UFW Quote Share this post Link to post
corrado 100 Posted ... dig earth.all.vpn.airdns.org +short 1 snaggle reacted to this Quote Share this post Link to post
tedreddy 0 Posted ... Here is a simple script in R to get server IP addresses in Windows. You can adapt it to Linux,as R is usually included. Someone could do the same technique in Python or Java. ### serverslist.txt contains a server name per line, in simple ASCII### copy the names from the pingmatrix page### example:### Alathfar ### Algedi### Alshain### servers = read.csv("c:/airvpn/serverslist.txt", stringsAsFactors = F)serveripaddr = c()for (s in 1:nrow(servers)){ x = shell(paste0("nslookup ", servers[s,1], ".airservers.org") , intern = TRUE) ipaddr =gsub("^\\w*:\\s*","",x[6] , ignore.case = TRUE) ### serveripaddr = c(serveripaddr, paste0(servers[s,1], "-- ", ipaddr) ) #### uncomment this line for server name -- ipaddr serveripaddr = c(serveripaddr, ipaddr) Sys.sleep(2)}write.table(serveripaddr, file = "C:/airvpn/serveripaddr.txt", row.names = F, col.names = F, quote = F) Or you could scrape the XML list in Eddie to get all the IP addresses for a server instead of one each. Quote Share this post Link to post
tedreddy 0 Posted ... In Windows, create an AirVPN directory on C:Create a txt file with the server names you want IP addresses for and save the file as serverslist.txtStart R and copy and paste the code into it. Wait for 1-2 minutes and you'll have a IP address list. In Linux, R should come with the distro (like Python usually does). You would have adapt the directory path, and the codex = shell(paste0("nslookup ", servers[s,1], ".airservers.org") , intern = TRUE)would have to be changed for Linux. Maybe someone can adapt it, or provide some code directly useable in Linux. Quote Share this post Link to post
go558a83nk 362 Posted ... One problem I see is that this only gets entry IP 1. Quote Share this post Link to post
corrado 100 Posted ... One problem I see is that this only gets entry IP 1. Airvpn's API could help here - but unfortunately it currently doesn't seem to include data for the second generation servers (only first and second entry IP). Quote Share this post Link to post