ubuntu 9.04 server pptpd vpn server 配置 - XiZi's Blog

ubuntu 9.04 server pptpd vpn server 配置

Xizi posted @ 2009年5月28日 02:38 in Ubuntu with tags ubuntu, 9.04, server ,pptpd, v , 4996 阅读

This is a bug in Ubuntu 9.04 with pptpd you have to disable the logs in
/etc/pptpd.conf put a quote on logwtmp.

# TAG: logwtmp
#       Use wtmp(5) to record client connections and disconnections.
#
# logwtmp  //加一个#注释掉这行
 

重启pptpd服务

sudo /etc/init.d/pptpd restart

再次连接应该正常了。

Setup a VPN server in Ubuntu 8.10 for iPhone

Why still Intrepid (Ubuntu 8.10) server? I just don’t have time to upgrade it. For a server, as long as it is secure and stable, no need for the cutting edge.

Why VPN? Check wiki. For me, I want to access some location sensitive files while I am on the iPhone via 3G network.

How? There is an excellent How-To in Chinese. I followed it and it works! This post is a summary of what I did.

For iPhone, three VPN protocols are supported: L2TP, PPTP and Cisco IPSec. I am going to install a pptpd on my Ubuntu server.

  1. Get the server installed.
    sudo apt-get install pptpd
  2. Edit /etc/pptpd.conf file to setup the IP address for connected clients. Enable localip and remoteip to something like
    localip 10.100.113.1
    remoteip 10.100.113.2-4
  3. Use /etc/resolv.conf to find the DNS of the system, and edit /etc/ppp/pptpd-options to enable ms-dns - something like
    ms-dns 128.218.254.10
    ms-dns 128.218.254.40
  4. Set the VPN account by editing /etc/ppp/chap-secrets. For an account test with password TSET that can connect from any where
    test pptpd TSET *
  5. Restart the server by executing
    sudo /etc/init.d/pptpd restart
  6. Enable forward for Internet connection. First, edit /etc/sysctl.conf file to enable
    net.ipv4.ip_forward=1

    and

    sudo sysctl -p

    Second, use iptables (install by apt-get) to setup a route

    sudo iptables -t nat -A POSTROUTING -s 10.100.113.0/24 -o eth0 -j MASQUERADE
  7. Setup VPN in the iPhone by General > Network > VPN > PPTP. Enable Auto encryption level. Keep RSA SecurID off.
    iphone-vpn-pptp
    It should work now.
  8. Automatically enable iptables after rebooting. First, save the working iptables by
    # iptables-save > /etc/iptables-rules

    Second, edit /etc/network/interfaces to something like

    # The primary network interface
    auto eth0
    iface eth0 inet dhcp
    pre-up iptables-restore < /etc/iptables-rules
    

 

 That is all I did and I don’t need to tweak other things as listed in the original post. I also tested on a windows xp machine, which works like a charm. Enjoy Ubuntu!

PS:

这里添加一下在Centos6.4遇到防火墙(iptables及iptables6)的问题解决方法:(Added at 2013.4.11)

 

iptables -F FORWARD #允许转发,默认是禁止的
iptables -t nat -A POSTROUTING -j MASQUERADE #全网段可NAT,不安全。
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE #部分网段NAT,安全考虑可以使用这个命令。
iptables -A INPUT -i tun* -j ACCEPT #允许Tun*接口的所有传入连接
/etc/init.d/iptables save

ok,就这样应该就可以了。

 

 

 

 

 

 

Avatar_small
swappy 说:
2010年3月17日 12:04

很受帮助,嗯嗯。配置了好久……

Avatar_small
Xizi 说:
2013年4月10日 03:33

这里添加一下在Centos6.4遇到防火墙(iptables及iptables6)的问题解决方法:

iptables -F FORWARD #允许转发,默认是禁止的

iptables -t nat -A POSTROUTING -j MASQUERADE #全网段可NAT,不安全。

iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE #部分网段NAT,安全考虑可以使用这个命令。

iptables -A INPUT -i tun* -j ACCEPT #允许Tun*接口的所有传入连接

/etc/init.d/iptables save

就这样吧,应该行了。

Avatar_small
abc 说:
2019年5月17日 00:42

Wishing you the best of luck for all your blogging efforts.This is my first opportunity to chat this website. I found some interesting things and I will apply to the development of my blog.
cgc admission
MBA college in punjab
fashion technology in chandigarh

Avatar_small
Mark 说:
2019年5月30日 01:11

Our academic pursuits, along with a range of extracurricular activities, help in honing a child's skills and ensuring that he/she grows to be a mature and responsible citizen.
top school in greater noida
Secure school in greater noida

Avatar_small
Mark 说:
2019年5月30日 01:11

Moonlight Films and Theatre Studio operates under the Moonlight Films and Theatre Society , a non-profit association whose goals are to spread knowledge of and interest in theatrical and media arts through education.
acting school in mumbai
acting classes in delhi

Avatar_small
Mark 说:
2019年5月30日 01:13

Our academic pursuits, along with a range of extracurricular activities, help in honing a child's skills and ensuring that he/she grows to be a mature and responsible citizen.
top public school in greater noida
admission 2019 best school in greater noida
premium school in noida

Avatar_small
Mark 说:
2019年5月30日 01:14

Our academic pursuits, along with a range of extracurricular activities, help in honing a child's skills and ensuring that he/she grows to be a mature and responsible citizen.
top public school in greater noida
admission 2019 best school in greater noida
premium school in noida

Avatar_small
Mark 说:
2019年5月30日 01:14

Moonlight Films and Theatre Studio operates under the Moonlight Films and Theatre Society , a non-profit association whose goals are to spread knowledge of and interest in theatrical and media arts through education.
acting school in delhi

Avatar_small
ab 说:
2019年6月27日 00:42

Apple products are revered for its quality, precision and great design. SRSG started its operations as Apple technology partners in the year 1997.
apple reseller in Mumbai
apple authorized service center in delhi
Broadcast consultancy
ipad reseller delhi
macbook air reseller ahmedabad

Avatar_small
abc 说:
2019年11月18日 00:38

Provides multiple learning environment of International standard with holistic system of education at an affordable cost for the successful life of young generation.
best paramedical college north india
agriculture college in dehradun
top agriculture College in north india
The goal of the society is to create professionally well skilled students To achieve the said goal, arrangements have been made with the pioneers and front runners both in India and abroad.
best cbse school in dehradun

Avatar_small
abc 说:
2019年11月18日 00:39

Welcome to the world of gaming, where life is fast paced and interesting. There is always an adventure waiting for you online.
buy csgo accounts
csgo ranks

Avatar_small
abc 说:
2019年11月18日 00:39

Our approach brings together best-in-class virtualized compute, storage, and networking infrastructure.
IT services & support company in uae
email security partner in uae
AWS partner in uae
cloud partner in uae

Avatar_small
muneer 说:
2020年3月14日 00:46

Great post, please keep on sharing amazing article like this! It makes me happy reading your post. EZ solutions

Avatar_small
muneer 说:
2020年3月17日 20:45

Regular visits listed here are the easiest method to appreciate your energy, which is why why I am going to the website everyday, searching for new, interesting info. Many, thank you nauseous after eating

Avatar_small
Russo 说:
2020年4月04日 03:46

Gnarly article mate, keep the good work, just shared this with ma friendz no glare screen protector

Avatar_small
Russo 说:
2020年4月12日 19:12

It is wonderful to be here with everyone, I have a lot of knowledge from what you share, to say thank you, the information and knowledge here helps me a lot antispy screen protector

Avatar_small
frank 说:
2020年11月30日 21:05

document conversion is the biggest requirement for studenst for research paper or essays. For that matter it is good to be in touch with https://es.altosignpdf.com/about-us. After using this it gets unnecessary to go somehwere else.

Avatar_small
UMAIR 说:
2020年12月09日 21:12

MP Board 10th Class Model Sample Guess Questions Papers Download 2021 Exam, click here MP Board Subject Wise 10th Class MP Board English Questions and Madhya Pradesh Sample Hindi Model bit Bank Papers MPBSE Final Exam Mathematics Previous Years Sample Questions Papers MPBSE 10th Annual Exam Social Studies and Geography, History, Civics, Disaster Guessing Questions Namuna Papers Madhya Pradesh Educational Board Science Pdf Questions Download

Avatar_small
lsm99 说:
2020年12月20日 05:51

Thank you very much for this useful article. I like it. Abstract Paintings For sale

Avatar_small
lsm99 说:
2020年12月20日 06:23

Interesting and amazing how your post is! It Is Useful and helpful for me That I like it very much, and I am looking forward to Hearing from your next.. digital marketing agency Singapore

Avatar_small
lsm99 说:
2021年1月12日 16:29

This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. 918kiss ios

Avatar_small
lsm99 说:
2021年1月13日 06:18

I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog online casino singapore

Avatar_small
lsm99 说:
2021年1月14日 06:20

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information. the breezeway

Avatar_small
lsm99 说:
2021年1月14日 06:58

The article looks magnificent, but it would be beneficial if you can share more about the suchlike subjects in the future. Keep posting. SEO services Singapore

Avatar_small
lsm99 说:
2021年1月17日 05:16

I love the way you write and share your niche! Very interesting and different! Keep it coming! Buy Vicodin Online

Avatar_small
lsm99 说:
2021年1月21日 05:13

Hi, I find reading this article a joy. It is extremely helpful and interesting and very much looking forward to reading more of your work.. โรงงานผลิตสบู่

Avatar_small
lsm99 说:
2021年1月30日 02:15

Nice post mate, keep up the great work, just shared this with my friendz How can I stop my insomnia

Avatar_small
lsm99 说:
2021年2月01日 22:38

I have been checking out a few of your stories and i can state pretty good stuff. I will definitely bookmark your blog GraphPad Prism Torrent

Avatar_small
lsm99 说:
2021年2月17日 03:23

You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. Buy Oxycontin Online

Avatar_small
lsm99 说:
2021年2月25日 19:36

You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. cbd gummies

Avatar_small
lsm99 说:
2021年3月01日 03:25

You have done a great job on this article. It’s very readable and highly intelligent. You have even managed to make it understandable and easy to read. You have some real writing talent. Thank you. best cbd bath bombs

Avatar_small
lsm99 说:
2021年3月11日 07:14

Very interesting blog. Alot of blogs I see these days don't really provide anything that I'm interested in, but I'm most definately interested in this one. Just thought that I would post and let you know. 科技券

Avatar_small
lsm99 说:
2021年3月11日 23:33

Good post but I was wondering if you could write a litte more on this subject? I’d be very thankful if you could elaborate a little bit further. Appreciate it! 迷你倉

Avatar_small
lsm99 说:
2021年3月12日 00:44

Great post, and great website. Thanks for the information! 利得稅

Avatar_small
lsm99 说:
2021年3月13日 06:11

Thanks for sharing nice information with us. i like your post and all you share with us is uptodate and quite informative, i would like to bookmark the page so i can come here again to read you, as you have done a wonderful job. watch bands

Avatar_small
lsm99 说:
2021年3月14日 00:52

Positive site, where did u come up with the information on this posting? I'm pleased I discovered it though, ill be checking back soon to find out what additional posts you include. beige wall art

Avatar_small
dark web/deep web/d 说:
2022年8月21日 00:58

You should also avoid looking for links on dark web sites. It's a lot harder to trace a link back to its owner if you do so, and you run the risk of your identity being stolen. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 01:52

This isn't an overnight process, so be patient and keep track of your progress as you search for the perfect opportunity. deep web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:19

Linking is just another way of saying that if you write or have some information on a particular website and if you have a link to that website, then you can help bring people to the website. dark web sites

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:38

They spent hours researching and writing articles and submitting them to directories so that they can get the maximum exposure and for people to use. dark web links

Avatar_small
dark web/deep web/d 说:
2022年8月21日 02:56

Once you have found the right people, you can start by creating some links for your own website. In this process, you will need to spend time looking for relevant links and then putting them on your website. dark web

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:15

First, visit the company's main website and look for their "Affiliate" link. On the "Affiliate" link there will be a button for joining the program. When you click this button, the program will begin to display products and services related to the product or service you selected. work from home jobs

Avatar_small
dark web/deep web/d 说:
2022年8月21日 03:34

Also, make sure that your site is easy to navigate and that it is visually appealing to the visitor. No one wants to visit your site and spend time trying to figure out how to use the link on your site! affiliate marketing success

Avatar_small
charlly 说:
2023年1月18日 17:11

This tutorial provides an in-depth guide for setting up an Ubuntu 9.04 server with PPTP VPN capabilities. The instructions are laid out in an easy-to-follow format, making the deployment process straightforward and hassle-free. With this guide, users can quickly Benefits of CBD and efficiently get their Ubuntu 9.04 server up and running with a PPTP VPN connection.

Avatar_small
Bluehost Webmail Log 说:
2023年1月30日 19:56

Blue host Webmail has capabilities that allow users to generate personal email without having to construct a website. The Blue host Webmail management panel enables you to establish several emails and access them easily. Bluehost Webmail Login will develop a method to access the Blue host Webmail login using the direct email address or the Blue host Webmail control panel. Individuals who have set up their Blue host Webmail may access their mailbox immediately using their email address.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter
Host by is-Programmer.com | Power by Chito 1.3.3 beta | © 2007 LinuxGem | Design by Matthew "Agent Spork" McGee