設定VPN server(ipsec+xl2tp) - Linux

Doris avatar
By Doris
at 2010-09-03T13:30

Table of Contents

※ 引述《dendrobium (石斛蘭)》之銘言:
: 各位好
: 我參考鳥哥網站中網友分享的"VPN架設"設定我的server
: 該文連結於以下網頁: http://linux.vbird.org/somepaper
: 我的網路架構如下
: fedora 13
: +------------+
: | | VPN private ip: 192.168.1.254
: 遠端電腦 ~~~~~ router ----------| VPN server |
: | |
: +------------+
: 140.x.x.x
: VPN 連線完成後 遠端電腦 ip : 192.168.1.128
: mask: 255.255.255.255
: gw : 192.168.1.128 <= 是不是應該要是 192.168.1.254?
: 執行 ipsec verify
: Checking your system to see if IPsec got installed and started correctly:
: Version check and ipsec on-path [OK]
: Linux Openswan U2.6.27/K2.6.34.6-47.fc13.x86_64 (netkey)
: Checking for IPsec support in kernel [OK]
: NETKEY detected, testing for disabled ICMP send_redirects [OK]
: NETKEY detected, testing for disabled ICMP accept_redirects [OK]
: Checking that pluto is running [OK]
: Pluto listening for IKE on udp 500 [OK]
: Pluto listening for NAT-T on udp 4500 [OK]
: Two or more interfaces found, checking IP forwarding [OK]
: Checking NAT and MASQUERADEing [N/A]
: Checking for 'ip' command [OK]
: Checking for 'iptables' command [OK]
: Opportunistic Encryption Support [DISABLED]
: 想請問一下要如何解決vpn client default gateway異常的情形?
: 還有Checking NAT and MASQUERADEing為N/A該如何修正呢?

之前我試openVPN 也有相同問題,
而我的解決方式是:

從遠端電腦的網路連線設定,
按右鍵-->內容-->網路功能(分頁)-->內容-->進階

有個「使用遠端網路的預設閘道」,把這個打勾取消掉。

然後再重連一次,gateway 就不會被亂改了。

--
Tags: Linux

All Comments

設定VPN server(ipsec+xl2tp)

Elma avatar
By Elma
at 2010-09-03T00:45
各位好 我參考鳥哥網站中網友分享的and#34;VPN架設and#34;設定我的server 該文連結於以下網頁: http://linux.vbird.org/somepaper 我的網路架構如下 fedora 13 ...

灌linux 沒有發生問題的主機板

Hedda avatar
By Hedda
at 2010-09-02T23:56
我覺得可能是主機板的問題了 我灌Ubuntu 怎麼樣都開不了機 灌CentOS 5.3 也是一樣開不了機 而且是直接卡住鍵盤完全沒反應 都用reset的.. google了好久始終無法找到解決辦法 我後來問NOVA的服務人員 他說的確有些主機板沒辦法支援linux的系統 我想說就換一片主機板 ...

有關於xargs -i的問題

Lily avatar
By Lily
at 2010-09-02T18:26
之前寫了一個程式,會讀取第一個argument作為參數使用,另外在一個txt檔中將很多args 一個一個列出來,類似: A B C D ... 其中A B C D都是該執行的指令。 然後再利用cat args.txt | xargs -i command {}的指令,希望能一次執行所有數據。但 最後發現 ...

在Ubuntu上使用bjam產生執行檔的問題

Ivy avatar
By Ivy
at 2010-09-02T16:28
小弟最近在使用bjam企圖產生某個C code的執行檔 但是出現了以下兩個錯誤訊息: /home/steven7337/tetra/tt_token.hpp:174: error: declaration of ‘const tetra::symbolandlt;char_typeandgt;* tetr ...

arch 編譯btnx 或easystroke 失敗

Ula avatar
By Ula
at 2010-09-02T16:23
XD 晚上的時候更新 不知為啥HWCLOCK抓不到 開不起來QQ 索性重灌 灌完之後不死心再一次 這次很順利 有跑出錯誤訊息 之前只看到整片的錯誤XD 這次很明顯看到沒有安裝gtkmm這個套件 補安裝之後順利編譯過easystroke了 抱歉浪費各位的時間了 ---------------------- ...