Setting up a VPN server (l2tp OR pptp) on arch linux
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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).
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.
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.
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.
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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.