LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 09-26-2010, 12:16 PM   #1
mrwall-e
Member
 
Registered: Jul 2010
Distribution: Arch Linux, Xubuntu, Gentoo
Posts: 44

Rep: Reputation: 0
Setting up a VPN server (l2tp OR pptp) on arch linux


I am interested in setting up a l2tp OR pptp VPN server under arch linux. I have apache, mysql, and other server software installed, if that makes any difference. (note: this is a home server, nothing serious).

Thanks
 
Old 09-27-2010, 08:35 AM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
Have you seen this? http://wiki.archlinux.org/index.php/PPTP_Server. There's also an article on OpenVPN. If you find any good article on how to set one up, you should be able to apply it to Arch without much problem.
 
Old 09-28-2010, 05:29 AM   #3
mrwall-e
Member
 
Registered: Jul 2010
Distribution: Arch Linux, Xubuntu, Gentoo
Posts: 44

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Meson View Post
Have you seen this? http://wiki.archlinux.org/index.php/PPTP_Server. There's also an article on OpenVPN. If you find any good article on how to set one up, you should be able to apply it to Arch without much problem.
Somehow I missed that. Thanks!

Last edited by mrwall-e; 09-28-2010 at 04:42 PM.
 
Old 09-28-2010, 04:44 PM   #4
mrwall-e
Member
 
Registered: Jul 2010
Distribution: Arch Linux, Xubuntu, Gentoo
Posts: 44

Original Poster
Rep: Reputation: 0
DNS?

I'm not great with networking (this is actually just an experiment), but how might I obtain my DNS servers? In my router the fields were blank. I just used (I think) opendns. Also, the iptables commands at the end don't work, even with proper fill-in-the-blank.

Thanks for your help
 
Old 09-28-2010, 06:08 PM   #5
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
take a look at the file /etc/resolv.conf
 
Old 09-29-2010, 05:23 AM   #6
mrwall-e
Member
 
Registered: Jul 2010
Distribution: Arch Linux, Xubuntu, Gentoo
Posts: 44

Original Poster
Rep: Reputation: 0
Shows router address

Quote:
Originally Posted by Meson View Post
take a look at the file /etc/resolv.conf
That actually shows my router's IP? It's the same as on my mac (/etc/resolv.conf). Thanks a lot.
 
Old 09-29-2010, 06:20 PM   #7
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
That means that your router is giving itself as the DNS server via DHCP; this is common. If you want the actual DNS servers that your router uses, you need to get them from your router somehow. However, since they might be subject to change, using your router will probably be more convenient, and faster.
 
Old 09-30-2010, 05:28 AM   #8
mrwall-e
Member
 
Registered: Jul 2010
Distribution: Arch Linux, Xubuntu, Gentoo
Posts: 44

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Meson View Post
That means that your router is giving itself as the DNS server via DHCP; this is common. If you want the actual DNS servers that your router uses, you need to get them from your router somehow. However, since they might be subject to change, using your router will probably be more convenient, and faster.
So I can just use my router as a DNS server? Okay, cool. About the
Code:
iptables
commands, though, what I have to fill in is kind of confusing.

For example:

Code:
iptables -A INPUT -p tcp --dport 1723 -j ACCEPT # pptp connects to port 1723
iptables -A INPUT -p 47 -j ACCEPT # all tunneling is performed using GRE Protocol
iptables -A FORWARD -i ppp+ -o <outgoing interface> -j ACCEPT # To allow clients to access internet when connected to vpn
What sort of things do I fill in there?

Thanks so much for your help
 
Old 09-30-2010, 06:21 PM   #9
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
Sorry, I can't help you with iptables. If all you need is <outgoing interface> though, you shouldn't have too many options to try.
 
Old 10-01-2010, 05:45 AM   #10
mrwall-e
Member
 
Registered: Jul 2010
Distribution: Arch Linux, Xubuntu, Gentoo
Posts: 44

Original Poster
Rep: Reputation: 0
Thanks

So the outgoin interface is whatever I use to connect to the world? Thanks for your help
 
  


Reply

Tags
arch, vpn


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
Setting up a L2TP VPN server ratcateme Linux - Networking 5 06-26-2013 07:29 AM
Setting up L2TP over IPSec VPN server under CentOS 5.3 fantasygoat Linux - Networking 5 10-04-2012 04:08 PM
VPN server for Android 2.1 PPTP and L2TP/IPSEC no luck so far tekhead2 Linux - Mobile 9 06-25-2012 11:50 AM
LXer: Linux Configure point to point tunneling PPTP VPN client for Microsoft PPTP vpn server LXer Syndicated Linux News 0 06-13-2007 08:46 AM
L2TP VPN connections to an ISA Server kendoucet Linux - Networking 0 03-24-2004 08:07 AM


All times are GMT -5. The time now is 09:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration