Skip to contentSkip to conversation

IP address ranges for USA and Europe

DISCUSSION James Cooke 3 participants 3 messages Jun 2, 2005

lore
Share & tools
lore
#0 lore raw

Hi all,

I'm running a VPN server to which IP tables limits connections to the IP addresses of the client offices. However, now the client wants roaming access to the VPN via laptops - they will be moving around Europe and the USA. There are two layers of password security, but I'm still nervous about opening the server to the entire world...

Therefore, is there a nice way to open the firewall for connections just from Europe and USA?

I've found lots of IP address ranges, but even those don't seem to be complete - AOL IPs don't fit in to the list I've compiled so far for example. So I'm thinking there's got to be something better than writing out a full list of ranges and allowing them connections...

The SSH brute force thread was very interesting with the recent/tarpit trap for our less than welcome guests and I would like to implement this on the VPN ports in the future - but for now I'm just looking for a quick fix.

Thanks in advance for any input on this...

James

#1 lore raw
Quoted 16 lines · James Cooke

Hi all,

I'm running a VPN server to which IP tables limits connections to the IP addresses of the client offices. However, now the client wants roaming access to the VPN via laptops - they will be moving around Europe and the USA. There are two layers of password security, but I'm still nervous about opening the server to the entire world...

Therefore, is there a nice way to open the firewall for connections just from Europe and USA?

I've found lots of IP address ranges, but even those don't seem to be complete - AOL IPs don't fit in to the list I've compiled so far for example. So I'm thinking there's got to be something better than writing out a full list of ranges and allowing them connections...

Quoted 9 lines

The SSH brute force thread was very interesting with the recent/tarpit trap for our less than welcome guests and I would like to implement this on the VPN ports in the future - but for now I'm just looking for a quick fix.

Thanks in advance for any input on this...

James

A couple of things come to mind, that being GEOIP and having your client SSH in to a server before they set up the VPN. You could combine the idea behind port knocking as in remembering what port is active or was active and then allow VPN connections from an IP that has an established SSH connection with more than X number of packets or byes. Take a look at http://netfilter.org/patch-o-matic/pom-extra.html#pom-extra-geoip for more information on GeoIP and http://www.maxmind.com/app/geoip_country for information on where to obtain the database.

I would be interested in seeing what you would like to do with the SSH_Brute_Force idea on your VPN. I'm getting ready to expand the idea to other things as well and I would be interested in talking to you about what you are wanting to see if I could not role that in to the new version that I'm going to be working on.

Grant. . . .

#2 lore raw
Quoted 9 lines · Grant
Quoted 8 lines · James Cooke

Hi all,

I'm running a VPN server to which IP tables limits connections to the IP addresses of the client offices. However, now the client wants roaming access to the VPN via laptops - they will be moving around Europe and the USA. There are two layers of password security, but I'm still nervous about opening the server to the entire world...

Quoted 5 lines
Quoted 4 lines

Therefore, is there a nice way to open the firewall for connections just from Europe and USA?

<snip>

I do not know if this will be of any help to you but we've taken a completely different approach. We have implemented out-of-band user authentication in the ISCS project (http://iscs.sourceforge.net).
Basically, we dynamically reconfigure IP tables for each RAS user and implement custom iptables rules based upon the DER_ASN.1_DN of their X.509 cert.

Thus, for example, when someone with a cert where 0=mycompany,OU=executive connects, the are granted access to executive and financial resources. When someone with O=mycompany,OU=sales connects, they are given access to sales resources. We still have some issues to iron out and a few obscure exploits to close but perhaps you can use the ideas we have implemented. They are well documented in the code.

The NuFW folks (http://www.nufw.org) have taken this idea much further but I believe their solution is more geared toward internal users on trusted networks although that may have changed. Good luck - John

Signature · 7 lines
John A. Sullivan III
Open Source Development Corporation
+1 207-985-7880
[email protected]

Financially sustainable open source development
http://www.opensourcedevel.com