LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-29-2012, 12:23 PM   #1
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Rep: Reputation: Disabled
creating VPN problem


i have a P4 machine with Debian 6.0.5 XFCE and i want to turn it into a VPN server. i want to share all my files (music,movies etc.) throughout a wireless home network. i tried a dozen of guides with pptpd and openvpn but i can seem to make it work.my router's a NETGEAR DGN2200. here's a map of the network i wanna create:

Pentium4 [Debian 6.05 XFCE] - server
Sony Vaio laptop [Kubuntu 11.10] - client
AMD Phenom II x6 multiboot [Fedora 16 GNOME, Windows 7 x64] - client
Sony Xperia Arc [Android 2.3.7 - Cyanogenmod 7.2] - client

Please any help, guide, steps, will be much appreciated...i'm busting my head for days now...

Here's a couple of guides i followed (unsuccessfully):

http://www.howtogeek.com/51237/setti...ver-on-debian/
http://pigtail.net/nicholas/pptp/
http://poptop.sourceforge.net/dox/debian-howto.phtml
http://www.larmeir.com/2010/03/setti...an-and-ubuntu/
http://dev.shyd.de/2011/02/dockstar-...penvpn-debian/
 
Old 05-29-2012, 01:09 PM   #2
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Why VPN, if you are trying to share files set up NFS mounts and use samba to mount them on your other systems. Do some searching for creating nfs mounts and mounting them with samba.
 
Old 05-29-2012, 02:38 PM   #3
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Original Poster
Rep: Reputation: Disabled
is it faster than vpn or more stable?cause i plan to grab a multimedia player with wifi and connect it to my tv,to watch my bluray videos
 
Old 05-29-2012, 04:39 PM   #4
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
I don't follow you on your TV setup, you would just be serving the files to any client that requests it and its applications/codecs would decode and playback any media. If you are looking to serve media files to other devices VPN really isnt a good option at all, the traditional setup is to use network file shares.
 
Old 05-29-2012, 04:51 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,397

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
Just to elaborate on Kustom42 posts basically a VPN in a nutshell is for connecting remote networks over the internet together. It is not necessary since what you want to accomplish is only on your home network. There many options for file sharing like NFS as mentioned.
 
Old 05-29-2012, 06:05 PM   #6
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Original Poster
Rep: Reputation: Disabled
ok i look into the NFS.by the tv setup i meant that my TV media player will connect wirelessly to my server and have access to the fiis.is that achievable through nfs? also if i set my nfs hard disks,then how can i create a vpn so tha i can access them from everywhere?
 
Old 05-29-2012, 08:14 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,397

Rep: Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652Reputation: 1652
NFS is for sharing files between computers. "Sharing" files to a TV depends on its capabilities. You will need to look its manual to see what protocols it supports. Post back with the details including make/model.

One suggestion would be Plex Media Server

Last edited by michaelk; 05-29-2012 at 08:52 PM.
 
Old 05-30-2012, 10:34 AM   #8
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
Please stop thinking VPN for this. VPN is not a solution for what you are trying to accomplish, stick to looking at NFS mounts and shares and you will have no problem. The guides posted should help get you there.

---------- Post added 05-30-12 at 08:35 AM ----------

http://nfs.sourceforge.net/nfs-howto/
 
Old 05-30-2012, 10:38 AM   #9
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Original Poster
Rep: Reputation: Disabled
thnx,i'll look into it and post back results.
 
Old 06-06-2012, 04:53 AM   #10
bbb13
Member
 
Registered: Mar 2012
Distribution: Manjaro XFCE 0.8.10, Fedora 19 XFCE, Fedora 20 Cinnamon
Posts: 41

Original Poster
Rep: Reputation: Disabled
NFS is working great but i really need the vpn, i wanna have access from another location but i still can't get it to work. i switched to lubuntu 11.10. nothing new really. here are my configurations:

/etc/pptpd.conf:
Code:
# (Recommended)
localip athedsl-311428.home.otenet.gr
remoteip 192.168.0.6-238
# or
#localip 192.168.0.234-238,192.168.0.245
#remoteip 192.168.1.234-238,192.168.1.245
/etc/ppp/pptpd-options:
Code:
ubuntuserver13.VPN
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ms-dns athedsl-311428.home.otenet.gr
proxyarp
nodefaultroute
lock
nobsdcomp
noipx
mtu 1490
mru 1490
/etc/ppp/chap-secrets:
Code:
# Secrets for authentication using CHAP
# client	server	secret			IP addresses
*****		pptpd   *******		                *
*****		pptpd	*******          		*
*****		pptpd   *******             		*
nmap -p 1723 athedsl-311428.home.otenet.gr gives:
Code:

Starting Nmap 5.21 ( http://nmap.org ) at 2012-06-06 12:49 EEST
Nmap scan report for athedsl-311428.home.otenet.gr (85.72.72.xx)
Host is up (0.0019s latency).
PORT     STATE  SERVICE
1723/tcp closed pptp

Nmap done: 1 IP address (1 host up) scanned in 1.36 seconds
i can't understand what am i doing wrong....any ideas?

PS. net.ipv4.ip_forward = 1 is already on and also /sbin/iptables -P FORWARD ACCEPT and /sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE
 
Old 06-08-2012, 11:20 AM   #11
Kustom42
Senior Member
 
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
You need to setup port forwarding on your actual router. You should be able to login to your router by going to your default gw in an internet browser and if you look up the manufacturers docs you can reference those for how to set it up. The port can be opened locally on the OS but will not be open on your router unless you forward it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Creating a VPN server compatible with Cisco VPN hardware? illuminatedwax Linux - Networking 0 08-14-2011 09:56 PM
Creating a VPN isolated from my LAN miniBill Linux - Networking 8 09-09-2009 06:49 AM
LXer: Creating a VPN with tinc LXer Syndicated Linux News 0 04-12-2008 01:50 AM
creating a vpn connection Dunadan1821 Linux - Networking 3 08-24-2004 05:18 AM
creating a VPN with Linux? mfeoli Linux - Networking 3 06-23-2004 06:40 AM


All times are GMT -5. The time now is 03:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration