LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-31-2005, 06:15 PM   #1
4mix
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian 2.4.18
Posts: 19

Rep: Reputation: 0
Question VPN for authenticating to access internet?


Hi

I have a small network of computers where we share an internet account.

We have a problem people steal internet by changing their mac and ip addres which is used to authenticate.

I installed pptpd (Poptop) to permit authentication based on username/password but I don't know what to do in order to provide internet access for the people who authenticate in this VPN.

What should I do ? should I modify something in firewall, routing policies? What exactly?

I'm using a Debian stable, kernel 2.6.10.

Thank you in advance!

Last edited by 4mix; 09-01-2005 at 03:09 AM.
 
Old 09-01-2005, 05:02 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian 6+, CentOS 5+
Posts: 1,323

Rep: Reputation: 100Reputation: 100
Well what you need to do is turn of IP forwarding (NAT) on the server then when someone tries to access a resource not on the LAN, like msn.com the only route for it to travel outside your LAN is through the PPTP Connection.

If I may suggest something though...if all these users are authorized why not use SSH with tunneling. Disable the NAT masquerading and then let the users logon with an SSH client like PUTTY then when they wat to access a resource they can simply use 127.0.0.1ort or in the case of a web browser they setup a proxy server config where traffic proceeds through the 127.0.0.1 which is actually being tunneled through ssh then from there to the outside world. It is your choice.

From an admin standpoint ssh probably is the better solution, from the user standpoint PPTP is probably better though. If you are looking for end user ease PPTP is the way to go, because all the user has to do is logon via pptp, as opposed to setting up tunnels and proxies etc...

Alex
 
Old 09-01-2005, 05:57 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
For authentication, use the modules for squid..

If people are smart enough to sniff the network for logins etc, you may have a problem passing credentials..

There are documents for this at http://www.comfsm.fm/computing/squid/FAQ-23.html

Using pptpd, users would login to the proxy server and be given a 2nd ip number via dhcp. If the proxy for the internet connection is blocked for access only via the pptpd interface pppx, you can specify the server's 2nd ip number as the proxy address for clients.

pptpd allocates an individual number for the client and can also keep a separate server ip number for that connection. You can also specify the client ip number in the /etc/ppp/chap-secrets file, in the 4th column

You can also run the pptp connection without compression or encryption to keep the speed up. Logins can be specified as mschapV2 to ensure they are encrypted..

Last edited by peter_robb; 09-01-2005 at 08:44 AM.
 
Old 09-05-2005, 04:22 PM   #4
4mix
LQ Newbie
 
Registered: Jul 2004
Distribution: Debian 2.4.18
Posts: 19

Original Poster
Rep: Reputation: 0
Thank you scheidel21, and thank you peter_robb.

As you said I disabled the FORWARD for the static IP range of the computers from my network, and then I FORWARD-ed the IP-s from the VPN, I made the NAT, and it worked . Thank you. Of course I let people access the server with the INPUT chain.

/sbin/iptables -A INPUT -i ppp+ -j ACCEPT

/sbin/iptables -A FORWARD -s 10.168.109.0/24 -j ACCEPT

/sbin/iptables -t nat -A POSTROUTING -s 10.168.109.0/24 -o eth1 -j SNAT --to-source 999.999.999.999


I used the pptp approach because the people accessing internet are newbies, so I couldn't use the SSH approach (thank you for this suggestion).

Pptp is very good, also because you don't need clients on windows workstation, and is working even on win 98

Also because I wanted to pass all trafic (even p2p - kazaa, emule, ftp, ssh) without restriction not only http I couldn't use squid, which is another possibility to authenticated login as you kindly suggested.

For the sake of information in this field, because there are people who are interested in ways of protecting their server from Internet theft, I will write what I did found during my small research. Please excuse me for any errors, and please correct them.

Squid (a proxy) it's good for http authentication if you don't have the need to pass other forms of traffic.

Pptp, poptop is relatively easy to install. This protocol can be encripted, but it's less secure than openvpn. You also should give a user and a pass to each client in a secure manner.

openvpn it's another vpn server (free), uses ssl encription with keys and certificates. It has very good documentation, and relatively easy to set up. It is working also with windows clients but you need to install a piece of software to each client, and to give them a pair of a key and a certificate in a secure manner. It's not working with Win 98. There are graphical tools on clients also.

Another form of authentication is pppoe (point to point protocol over ethernet), but it's documentation is very thin. It is used by ISP-s. It doesn't require the instalation of software clients on windows stations. It has a free server and client for linux.

The last form of authentication - but I'm not sure is using IPSEC. I'm not sure, maybe this is mainly for big institutions, requires more resources. Excuse me if I'm wrong (google should help here )

The problem with VPN-s for this aim of authentication, is that they consume computing power. This consume depends if the protocol is encripted, and if it is compressed. You can choose theese. Depends on the situation = if you have a slow server and newbies it's ok without encription , otherwise you shoud upgrade the hardware.
For the resource consume - I was said that the most important factor is not how many people do you have in your VPN, but how many are using the internet in the same time. One example was with a Pentium 200 with 20 people using the vpn. Unfortunately I don't know if they were all using it in the same time, and if the protocol was encripted.

Kind regards!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I browse the internet? ctroyp Linux - General 5 11-22-2005 12:51 AM
Unable to browse the internet daliernest Linux - Newbie 2 08-12-2004 04:50 PM
can't browse internet but can ping cj7_laredo Fedora 3 01-21-2004 10:43 PM
internet is connected but cannot browse internet?!?!? myk3 Linux - Newbie 3 11-17-2003 05:57 AM
cannot browse internet circle454 Linux - Newbie 3 11-09-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration