since i finally figured out how to connect to my department's VPN server, i just wonder whether is it also easy to create my own vpn server at home. The idea is - with vpn connect i can easy browse files i need from the file server, or to synchronize repositories/backup files. I won't need to stream stuffs from home, or sneak naughty packets through my home network :)
Thereforer i make a quick check on pptp and openvpn server setup. I realise both are relatively easy, but pptp looks more straight forward. True that pptp is not as secure as many claim, but i think for a home network remote access we are not talking corperate level of security. I am pretty comfortable with ssh tunnels, but for each service i use i have to build a new tunnel - that is tedious. So a quicky vpn server setup fits me perfectly. so off i went on with pptp server setup on Ubuntu.
For ubuntu 8.04 system it is surprisingly simple (i assume for other distribution it would be equally simple and direct too). First of all use either apt-get (console method) or synaptic (gui method) to install pptpd. So for a console guy like me, it is just a quicky
mybox: ~$ sudo apt-get install pptpd
and install whatever it ask you to install - in simple words, just keyin "yes" to go on :)
the next step is a brief edit on your pptpd.conf file. This will be the few lines that say something on your network configuration. For simplicity's sake, just scroll all the way down to the end of file, where you might see some example ip addresses. This is where you define network addresses for your vpn server (local ip point) and the road warriors ips. This is the part where i got confused a little in the beginning, so i think i will explain a little if it might help some of you out there.
the parameter localip means the ip address of your vpn server endpoint. Do not put the actual ip address of your server. I did that initially and i could not access the other services on the server at all! After playing around i only understood it as an ip address you can assign additionally to the vpn server as an endpoint to connect from outside. to simplify this, refer to the picture below how i can imagine the network:
[ road warriors ] ------- [vpn server] --- internal network /other workstation/servers in network.
192.168.1.200-205 192.168.1.199 192.168.1.2-198
until i get time to draw a real network, this simple text illustration should explain it well. Take an example network 192.168.1.0/255.255.255.0 as your home network. Say normally at home you get automatic dhcp addresses from .2 until .198. therefore you wish to assign road warriors (those who connect from outside using vpn, if this term is something new for you) say .200 until .205 (so maximum you can have 6 road warriors). The server serving VPN can be using any address from .2 until .198. This is what i mean by actual ip address above. So in this way, you should already understand what you should give to the parameter localip. in this case, i propose an address that is available, so in the example we will use 192.168.1.199 as the vpn server address.
you might realise now - oh, does it mean when the VPN server is up and running, it will have 2 addresses? my answer will be Yes! As soon as a road warrior comes in, the new interface will be up. In other words, your road warriors will receive the addresses allocated, and enters to the internal network via 192.168.1.199 (localip). At this point you should have roughly figured out what you should give to the parameter remoteip. got it? yes, it would be in our example 192.168.1.200-205! you can even use this syntax exactly. The - sign indicates to. So if you have coincidentally the same network and you want to use the same setting as in the example, at the end of the file pptpd.conf should look like this:
localip 192.168.1.199
remoteip 192.168.1.200-205
save this file and you are done.
next step is to set password for every possible roadwarrior. the file to edit is /etc/ppp/chap-secrets. Just key in following information with tab separating each other - username, pptpd, password and ip address where it is allowed to connect from. If your road warriors only connect from a specific network, say from a range of ip addresses (this would be common if you wish to connect from company with fixed ip address), then you can put this ip range at the end of a line. I would say for us, who might connect from anywhere will just put wild card "*" including the quotes. So as an example, you have a user call Rudolph (yes, it is near christmas now), and his password is reind33r. then your entry for him in /etc/ppp/chap-secrets will be:
rudolph pptpd reind33r "*"
i am not sure whether if names should be case sensitive, but i assume yes. repeat this step for all potential road warriors, and you are done. Don't worry about people being able to read the password - the file can and should only be read by root (which is the administrator). It should be safe until someone cracks into your system and obtain root permission/right. When that happens, even if you encrypt everything it is also easy for him to undo most of the things. This gives another idea - don't use the usual username and password combination then. use another set so that if a fake root ever reads this file, he can't really use the username password somewhere else. It's your decision. :)
if you follow the instruction so far, you are actually almost done. two more things to do. 1) restart pptpd. 2) check the setting of your router. to do the first, do the following:
mybox: ~$ sudo /etc/init.d/pptpd restart
and for the router setting, you must know how to enable port forwarding for your firewall/router. The simpler explanation is to allow your router to divert a request/connection from outside to your vpn server that is placed in internal network. I cannot give settings example for you here, since each router might have different ways to do this. For example, my router already has an automatic setting for pptp vpn. Once i have chosen this, it automatically creates port forwarding for tcp port 1723 and GRE 47 protocol. So it was really easy for me. Hope it would be also not too difficult for you.
once this is done, you can then try to connect from outside and see how it will work out for you. I use NetworkManager pptp plug-in and it was just a few click away. The setting is the same as the one i set for my previous blog.
Hope this simple short how-to will also help you to get a pptp vpn server up in 10 minutes. Enjoy.
Comments
Family Law Solicitors
Employers have legal responsibilities to uphold when it comes to their staff. Here are five instances which may dictate the need to talk to one about your business needs.
Free Glucose Monitor
This report is based on the training and experience gathered during my six months attachment in the Technical support/Installations department at Linkserve Ltd. The major areas of operation include VSAT technology, VPN (Virtual Private Network), web design and web hosting services and prepaid calling card among others. The training has exposed me to various aspects of computer networking, IP routing and IP switching and how to manage a network from an office network to larger networks. Areas covered in this report includes IP addressing, Network Address Translation (NAT), IP switching and Virtual Private Network (VPN).
Very good website, hope you
Very good website, hope you keep updating it more often. Thanks.
Tumacenje snova,dijete mrsavljenje,dijeta,izreke smesne slike.
sanovnik
kondilomi
vezbe za ramena,
Dijete mrsavljenje,
Dijeta,
kako smrsati
dijeta po krvnim grupama
Smesne slike blog
Thanks for sharing those
Thanks for sharing those useful information! I think we get the right information that we want to know
business stationery
Electronics
A drawing table is a computer input device which allows someone to hand-draw pictures and images, just like the way one draws graphics using a pencil and paper.
Electronics
Led tv
LED lighting is the newest energy-saving technology that is rapidly replacing traditional lighting solutions.
Digital cameras
Get some amazing information about your digital photography.
You actually make it seem so
You actually make it seem so easy with your presentation but I find this topic to be actually something that I think I would never understand. It seems
too complicated and extremely broad for me. I am looking forward for your next post, I’ll try to get the hang of it! Regards, college papers
Gospel
Bookmarking Website your presentation but I find this topic to be actually something
Very good content, thank you
Very good content, thank you for the topic.
seo success add-site.com
coincidentally
sign indicates to. So if you have coincidentally the same network and you want to use the same setting as in the example, at the end of the file pptpd.conf should look like this:search engine marketing
Wieso die Prepaid Kreditkarte
Wieso die Prepaid Kreditkarte so beliebt ist.
Eine Kreditkarte testen.
Wieso der Rechtsschutz für viele so wichtig ist.
Einen Unterhalts Rechtsschutz testen.
Kreditkarten Test
Auf www.kreditkarten-test.com eine Kreditkarte suchen oder eine Kreditkarte ohne Schufa beantragen.
Great to know about this
Great to know about this network which is for small network.
Reply
This gives another idea - don't use the usual username and password combination then. use another set so that if a fake root ever reads this file, he can't really use the username password somewhere else. It's your decision. :)
Einen
Einen Rechtsschutzversicherung Stiftung Warentest machen.
Die Private Rechtsschutzversicherung erfinden.
Wieso privat versichern so gefragt ist.
Eine Unfallversicherung abschliessen.
Wie man die Rechtsschutzversicherung bewertet.
Reply
I agree to all of you guys! Although there are some problems that may occur.
In my opinion the biggest
In my opinion the biggest advantage you will get through using ubuntu is that it is free :) For me this is quite important, as many of small companies (as mine) often don't have possibility to buy Windows. Thus, Linux in this situation looks much more attractive. And for home using it is also great.
Nice Locksmith
Your program is fabulous . We've picked up much through your blog website . It's extraordinary . Keep up the great work and cheers a million .
Thanks for the information.
Thanks for the information. The only problem is that I don't have Ubuntu. But still I'm glad I've found out about it. I hope I'll find another way to do it.
VPN networks
I never had any cloud hosting issues with Ubuntu through my VPN network. I tried your search engine but didn't find too many tutorials. I think I'll just stick to Wahlau ;)
Den Kostenvergleich morgen
Den Kostenvergleich morgen machen.
Auf immobilie-finanzieren.com
Auf immobilie-finanzieren.com eine Immobilie finanzieren oder eine Baufinanzierung ohne Schufa anfordern.
might
I would say for us, who might connect from anywhere will just put wild card "*" including the quotes. So as an example, you have a user call Rudolph..garlic
Eine Krankenversicherung
Eine Krankenversicherung testen.
Wie die Krankenkasse funktioniert.
Den PKV-Test machen.
Einen Private Krankenversicherung Vergleich machen.
vpn is one of the best ways
vpn is one of the best ways to secure your data from hacks
Is that true?
So in this way, you should already art essays understand what you should give to the parameter localip.
Einen Kredit für Arbeitslose
Einen Kredit für Arbeitslose beantragen.
I followed your guide on PPTP
I followed your guide on PPTP VPN server and it worked. Thanks.
PPTPD can only be run on
PPTPD can only be run on Linux? I thought it was a windows application but turns out that it runs on an open-source apps.
Copying YouTube videos to a
Copying YouTube videos to a PSP is one of the biggest challenges faced by new PSP owners. However in reality it is a very simple process.
latest technology news
The Technology Acceptance Model is an information systems theory that models how users come to accept and use a technology, The model suggests that when users are presented with a new software package, a number of factors influence their decision about how and when they will use it.
digital cameras for dummies
Shopping for a new digital camera can be quite frustrating with the hundreds of choices available. Digital camera reviews clarify this confusion by comparing camera features and options, then rating how each camera compares with similar models. An effective comparison of best digital cameras requires two things...
best desktop computer 2012
Ultra slim desktop is a highly facilitated desktop of the personal computers which is mostly used in business. This looks slim and light weighted. This helps in carrying massive storing capacity when compared to the normal common computers.
App Review
As an iPhone app developer, you have a right to be excited about the huge potential market for your applications. With all the iPhone, iPod touch, and iPad users in the world today, it is inspiring to think of how the best ideas in developing apps can make a splash all over the world.
digital cameras for dummies
Shopping for a digital camera can be a difficult task considering the sheer number of choices out there. The number of manufacturers, models, and price ranges that need to be sorted out make the process difficult enough, but throw in all the buzz-words that need to be understood, and even a short list of cameras can become difficult to analyze.
Thanks for sharing those
Thanks for sharing those useful information! I think we get the right information that we want to know
business stationery
pc reviews
Desktop virtualization is a concept in which the desktop environment is created in the absence of a physical machine. This virtual desktop is hosted on a remote central server and can be accessed for using applications, data and programs via any computing device, including PCs, laptops, smart phones and thin client.
iPad Bamboo Case
iPad is getting more and more well-known every day, the functions that it provides are very excellent and practical. iPad itself is very wonderful and very fashionable, it is also very highly effective. But other than it being very highly effective and fashionable device it is also very delicate and needs security.