openvpn安卓怎麼用
❶ 使用花生殼怎樣搭建Openvpn
Openvpn是虛擬專用通道,簡單來說就是一個虛擬區域網。Openvpn部署在內網,但是Openvpn 伺服器端的網路並沒有公網ip地址,要怎樣才能在外網連接呢?沒有固定公網IP,需要藉助一些網路輔助實現VPN的搭建和訪問,類似應用有花生殼、nat123、dnspod等等。通過使用花生殼主機映射功能,達到外網連接Openvpn,詳細操作過程如下:
1.搭建Openvpn伺服器端和訪問端.
2.修改OpenVPN伺服器端的server.ovpn文件,將proto udp 更改為proto tcp;
3.在服務端安裝並設置埠映射.
應用名稱:Openvpn(可自定義)。
內網主機:填寫伺服器內網的ip地址或者計算機名稱(不支持中文);選擇主機映射。
4.在訪問端上安裝花生殼訪問者,然後填寫域名,點擊診斷。
5.修改Openvpn 客戶端的client文件,將proto udp更改為tcp;將remote my-server-1 1194更改為remote 域名(設置埠映射的域名)1194。運行Openvpn 客戶端,出現綠色代表連接成功。
6.搭建Openvpn成功後,可以檢驗一下。就以搭建一個遠程桌面為例:
伺服器端獲取虛擬ip地址為10.0.0.1,客戶端獲取虛擬ip地址為10.0.0.6。在訪問端開啟遠程桌面,在伺服器端點擊運行——mstsc——輸入客戶端虛擬ip地址10.0.0.6 進行連接,出現如下界面代表連接成功。
❷ Windows 7上OpenVPN怎麼設置使用
從你的問題來看你只是安裝了OpenVPN,但是沒有對其進行配置。此外OpenVPN分伺服器端和客戶端(安裝程序一樣,只是配置文件不一樣)。
OpenVPN客戶端不是安裝了就能用,需要伺服器端才能起作用。比如我的OpenVPN客戶端裝在我的Windows 7筆記本上,伺服器端用的是Windows2003 VPS.
我需要進行的操作為
(1)對伺服器端進行設置
(2)在伺服器端並生成相應的文件(包括server.ovpn, ca.crt, client.key, client.crt),確保配置正確後啟動伺服器端。
(3)復制客戶端需要的文件(ca.crt, client.key, client.crt)到客戶端,製作client.ovpn,啟動客戶端連接伺服器端。
❸ 請教高手了,android的2.1ROM連不上VPN嗎
可以呀,我用凸牆VPN的,他們專門針對安卓優化過,用它的L2TP,不勾選密鑰方式就能連上,好像android的VPN做的有問題,PPTP不行。或者你用OPENVPN,android上最穩定的方式了,凸牆VPN也有OPENVPN配置文件,只要你會配置,找他要就行。
❹ 007-Padavan固件公網ipv6下的openvpn服務端搭建
現在家庭寬頻全面鋪開,越來越多的家庭電子設備不光光只有貓和路由器了,了解NAS的同學也越來越多。內網設備量不可同日而語,那麼外網訪問內網的需求自然也會出現。
因為自家裡面用上了nas,又是大內網寬頻,在最近有了公網IPv6.所以搞了基於IPv6的ddns,(具體在另一篇文章【 ddns實現中阿里雲配置RAM及解析 】:)。
一開始想過每個需要的設備做ddns,發現這樣太麻煩不一定每個都能支持aliddns,所以最後選擇搭建openVPN服務端來解決問題,不光是能方便訪問內網,而且在外用不安全的網路時還可以開啟VPN保護數據安全,以前還能免流😂。
1. 首先是自家的網路信息,有在另一篇文章寫【 家庭寬頻的IPv6外網訪問 】:)
2. 路由器:小老弟用的是k2p刷的Padavan固件。
3. 能獲取到公網IP,並已經做好了ddns。
1.安卓端先安裝app,然後復制配置文件到手機,點擊文件選擇使用openvpn打開,蘋果同理,可以使用qq發送然後,選擇復制到應用程序。打開之後需要選擇添加這個配置文件,然後就會提示輸入用戶名和密碼就可以連接啦。win系統同理,安裝好程序後,右擊{start openVPN···}就行。
其實這篇文章又是新瓶裝舊酒,又把前人的走了一遍😂,踩到了一些坑,故記錄分享,滿足一下小小的虛榮感😀。
總結可以參考另外一篇文章【 家庭寬頻的IPv6外網訪問 】。
感謝大大的文章, 配置參考 :
❺ 高手請進!如何利用OpenVPN共享上網
1、在內網機器上安裝openvpn作為服務端
2、在本機上安裝客戶端
3、在內網機器上設置ip轉發和nat轉發
具體的,網上搜索下,有很多openvpn的教程
❻ 如何使用OpenVPN和PrivacyIDEA搭建雙因素認證的遠程接入
第一種,使用PAM的privacyidea_pam.py模塊。OpneVPN使用PAM認證,PAM調用privacyidea_pam.py模塊和PrivacyIDEA做驗證。
第二種,直接集成OpenVPN和FreeRADIUS。OpenVPN使用radius認證,FreeRADIUS向PrivacyIDEA驗證。
第三種,在OpenVPN中使用RADIUS的PAM模塊。
❼ OpenVPN的使用
1. 修改 C:\ProgramFiles\OpenVPN\easy-rsa\vars.bat.sample
set KEY_COUNTRY=CN #(國家)
set KEY_PROVINCE=JS #(省份)
set KEY_CITY=SuZhou #(城市)
set KEY_ORG=OpenVPN #(組織)
set [email protected] #(郵件地址)
2. DOS 下配置CA等信息
Microsoft Windows XP [版本 5.1.2600]
(C) 版權所有 1985-2001 Microsoft Corp.
C:\Documents and Settings\Administrator> cd "C:\Program Files\OpenVPN\easy-rsa"
C:\Program Files\OpenVPN\easy-rsa> init-config
C:\Program Files\OpenVPN\easy-rsa> vars.bat.sample vars.bat
已復制 1 個文件。
C:\Program Files\OpenVPN\easy-rsa> vars
C:\Program Files\OpenVPN\easy-rsa> clean-all
已復制 1 個文件。
已復制 1 個文件。
C:\Program Files\OpenVPN\easy-rsa> build-ca
Loading 'screen' into random state - done
Generating a 1024 bit RSA private key
................++++++
....++++++
writing new private key to 'keys\ca.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [CN]:
State or Province Name (full name) [JS]:
Locality Name (eg, city) [SuZhou]:
Organization Name (eg, company) [OpenVPN]:
Organizational Unit Name (eg, section) [changeme]:
Common Name (eg, your name or your server's hostname) [changeme]: OpenVPN-CA
Name [changeme]:
Email Address [[email protected]]:
C:\Program Files\OpenVPN\easy-rsa> build-dh
Loading 'screen' into random state - done
Generating DH parameters, 1024 bit long safe prime, generator 2
This is going to take a long time
................................................................................
.............................................+................+.................
........+.......................+...............................................
........................................................+.......................
.........+....+.................................................................
.........................................................................+......
...................................+.....+....................................+.
.....................................................................+..........
........................................................+.......................
...+.............++*++*++*
C:\Program Files\OpenVPN\easy-rsa> build-key-server server
Loading 'screen' into random state - done
Generating a 1024 bit RSA private key
.++++++
....++++++
writing new private key to 'keys\server.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [CN]:
State or Province Name (full name) [JS]:
Locality Name (eg, city) [SuZhou]:
Organization Name (eg, company) [OpenVPN]:
Organizational Unit Name (eg, section) [changeme]:
Common Name (eg, your name or your server's hostname) [changeme]: server
Name [changeme]:
Email Address [[email protected]]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from openssl-1.0.0.cnf
Loading 'screen' into random state - done
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'CN'
stateOrProvinceName :PRINTABLE:'JS'
localityName :PRINTABLE:'SuZhou'
organizationName :PRINTABLE:'OpenVPN'
organizationalUnitName:PRINTABLE:'changeme'
commonName :PRINTABLE:'server'
name :PRINTABLE:'changeme'
emailAddress :IA5STRING:'[email protected]'
Certificate is to be certified until Oct 13 07:18:46 2025 GMT (3650 days)
Sign the certificate? [y/n]: y
1 out of 1 certificate requests certified, commit? [y/n] y
Write out database with 1 new entries
Data Base Updated
C:\Program Files\OpenVPN\easy-rsa> build-key client
Loading 'screen' into random state - done
Generating a 1024 bit RSA private key
.....++++++
............................++++++
writing new private key to 'keys\client.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [CN]:
State or Province Name (full name) [JS]:
Locality Name (eg, city) [SuZhou]:
Organization Name (eg, company) [OpenVPN]:
Organizational Unit Name (eg, section) [changeme]:
Common Name (eg, your name or your server's hostname) [changeme]: client
Name [changeme]:
Email Address [[email protected]]:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
Using configuration from openssl-1.0.0.cnf
Loading 'screen' into random state - done
Check that the request matches the signature
Signature ok
The Subject's Distinguished Name is as follows
countryName :PRINTABLE:'CN'
stateOrProvinceName :PRINTABLE:'JS'
localityName :PRINTABLE:'SuZhou'
organizationName :PRINTABLE:'OpenVPN'
organizationalUnitName:PRINTABLE:'changeme'
commonName :PRINTABLE:'client'
name :PRINTABLE:'changeme'
emailAddress :IA5STRING:'[email protected]'
Certificate is to be certified until Oct 13 07:20:05 2025 GMT (3650 days)
Sign the certificate? [y/n]: y
1 out of 1 certificate requests certified, commit? [y/n] y
Write out database with 1 new entries
Data Base Updated
C:\Program Files\OpenVPN\easy-rsa>
3. 拷貝文件
將 ca.crt、dh1024.pem、server.crt、server.key 復制到伺服器 C:\Program
Files\OpenVPN\config 目錄下
將 ca.crt、client.crt、client.key 復制到客戶端 C:\Program Files\OpenVPN\config 目錄下
4. C:\ProgramFiles\OpenVPN\config 目錄下創建 client.ovpn、server.ovpn
server.ovpn
local 192.168.1.101
port 1194
proto tcp
;proto udp
dev tap
;dev tun
;dev-node MyTap
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
server 172.16.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100
;server-bridge
push "route 0.0.0.0 0.0.0.0"
push "redirect-gateway def1 bypass-dhcp"
;push "route 192.168.20.0 255.255.255.0"
client-config-dir ccd
;route 192.168.40.128 255.255.255.248
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
;learn-address ./script
;push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 223.5.5.5"
push "dhcp-option DNS 223.6.6.6"
client-to-client
plicate-cn
keepalive 10 120
;tls-auth ta.key 0
;cipher BF-CBC
;cipher AES-128-CBC
;cipher DES-EDE3-CBC
comp-lzo
max-clients 100
;user nobody
;group nobody
persist-key
persist-tun
status openvpn-status.log
;log openvpn.log
;log-append openvpn.log
verb 3
mute 20
client.open
client
dev tap
proto tcp
remote 192.168.1.101 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\client.crt"
key "C:\\Program Files\\OpenVPN\\config\\client.key"
comp-lzo
verb 3
mute 20
❽ openconnect安卓怎麼樣
具體安裝步驟如下: 1. 安裝 OpenVPN Connect (只需在第一次時安裝一次) 開始 "Google Play Store" ,搜索 "OpenVPN Connect" 應用並下載它。 2. 下載並安裝 OpenVPN 的連接配置文件 (.ovpn file) (只需在第一次時安裝一次) 通過使用 OpenVPN 為...
❾ Windows 7上OpenVPN怎麼設置使用
你是要做伺服器端還是客戶端 在OpenVPN\sample-config裡面有配置文件直接改裡面的就行了。
❿ 怎麼把電腦的網路共享到手機上使用
我在網上找到了一種解決方案
USB 反向共享 不需要 Root許可權 和 ADB命令,適用 Android(所有版本)和Windows 10
以下內容是用Chrome翻譯出的譯文,文字都翻譯成中文,但圖片內容還是英文。
本指南允許您通過可為手機充電的通用USB電纜與Android設備共享Windows 10PC的Internet連接。如果您不能或不想在智能手機上使用WIFI並且您不想消耗數據計劃中的流量,則此功能非常有用。限制手機無線連接使用的一個很好的理由是電磁污染會影響您的身體。但這是另一個故事。本指南的重點是,您的手機不需要植根。然後,我重復一遍,所有工作都沒有生根寶貴的智能手機。不幸的是,這涉及到某些應用程序(但不是最重要的)至少需要虛擬使用數據連接,因為您無法安裝Xposed模塊來解決這些應用程序的愚蠢限制。但這是較小的邪惡。此外,本指南還適用於Lollipop以上的Android版本。本指南僅需要內置的Android usb網路共享功能和Windows 10 PC,因此它適用於所有Android版本,甚至無需在Windows上安裝ADB(Android Debug Bridge)。它使用適用於Android和Windows的免費開源「openvpn」程序。唯一的限制是它一次只適用於單個Android設備。
步驟
從這里或從下面下載「openvpn for Windows」。雙擊剛剛下載的文件以開始安裝並確認Windows安全消息。
OpenVPN-Windows32bit
OpenVPN-Windows64bit
確保在安裝過程中選擇了所有組件。
注1:本教程假設USB網路共享模式下智能手機的IP地址為192.168.42.129,應該是這樣。通過在PlayStore的「android terminal」應用程序中鍵入「netcfg」來檢查這一點,並最終在上面相應地更改它,以及「Remote NDIS」介面的192.168.42.128地址。
注意2:如果在智能手機(或平板電腦)重新啟動「遠程NDIS」網路名稱更改後,再次按照我們的說明將新的網路名稱設置為「專用網路」,否則它將不再起作用。
注3:稍作修改後,本指南也適用於低於10的Windows版本。