pptp server的問題 - Linux

Ina avatar
By Ina
at 2014-04-20T16:16

Table of Contents

ubuntu 14.04
server透過中華ADSL連上internet(非固定制固定IP)

google了好幾種教學,嘗試架pptpd

最後結果都是連的上,可是沒有回應(client端可以傳封包出去,但收不到封包)

實在不清楚是哪個環節出錯了
===========
以下是設定
pptpd part
/etc/pptpd.conf
localip 10.99.99.99
remoteip 10.99.99.100-120

/etc/ppp/pptpd-options
ms-dns 8.8.8.8
ms-dns 8.8.4.4

sysctl part
/etc/sysctl.conf
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1

iptables part
iptables -A INPUT -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -s 10.99.99.0/24 -o p5p1 -j MASQUERADE

--
Tags: Linux

All Comments

Yuri avatar
By Yuri
at 2014-04-20T21:23
p5p1是啥? 用中華電信ADSL應該是ppp0吧?
Puput avatar
By Puput
at 2014-04-24T14:21
有些電腦沒有eth0,而是p5p1....
Kelly avatar
By Kelly
at 2014-04-28T08:13
但用ADSL撥接應該都是ppp0,用ifconfig查一下就知道了
Lucy avatar
By Lucy
at 2014-04-28T14:23
p5p1是biosdevname 不過PPPoE確實實際應該是ppp0才對
Zenobia avatar
By Zenobia
at 2014-05-02T22:59
改ppp0就OK了,謝謝!!!
Skylar Davis avatar
By Skylar Davis
at 2014-05-06T02:52
mtu通常得修正...

Lubuntu 14.04無法安裝g++

Belly avatar
By Belly
at 2014-04-19T14:00
sudo apt-get install g++ 跳出以下錯誤訊息 有些套件無法安裝。這可能意謂著您的要求難以解決,或是若您使用的是 unstable 發行版,可能有些必要的套件尚未建立,或是被移出 Incoming 了。 以下的資訊或許有助於解決當前的情況: 下列的套件有未滿足的相依關係: g++ : ...

Ubuntu 14.04無法安裝Cadsoft Eagle 6.5

Linda avatar
By Linda
at 2014-04-19T01:02
最近我從Ubuntu 12.04 (x64)升級到了14.04 (x64),發現沒辦法安裝Eagle http://www.cadsoftusa.com/download-eagle/?language=en 我照了之前我查的安裝說明,在12.04是可以正常安裝成功的 但是在14.04卻不行 http ...

Port Forwarding問題

Catherine avatar
By Catherine
at 2014-04-18T19:41
好像找不到Router板 不知道可不可以在這裡問 =============================================== 我把實驗要用的板子Zedboard(基本上可以把他當一個server)接上路由器 用他發出來的內網IP(192.168.0.101) 我用另一台內網裡的電腦可 ...

Ubuntu 14.04 (Trusty Tahr) released

Bennie avatar
By Bennie
at 2014-04-18T11:06
http://fridge.ubuntu.com/2014/04/17/ubuntu-14-04-trusty-tahr-released/ Ubuntu https://wiki.ubuntu.com/TrustyTahr/ReleaseNotes Edubuntu https://wiki.ubunt ...

Canonical 在臺灣的工作機會

Blanche avatar
By Blanche
at 2014-04-18T10:57
又多了一個工作機會 工作職稱:Software Engineer - OEM/ODM Support 工作內容:http://bit.ly/RtJA3h 工作地點:台北 101 大樓 ※ 引述《fourdollars (四元)》之銘言: : 最近多了三個新的工作機會 : 工作職稱:Software Engin ...