新手SET VPN

唔好意思,新手想SET VPN
我有部SYNOLOGY SET 左OPENVPN
我改左個FILE 個IP 係SYNOLOGY NAS 個IP
個VPN都WORK用得到
但問題係,如果我唔係用NAS 同一個WIFI 就會用唔到個VPN
所以想問問個IP 其實應該SET 邊個??

唔該哂各位....

本帖最後由 jackwong717 於 2021-8-30 21:57 編輯
唔好意思,新手想SET VPN
我有部SYNOLOGY SET 左OPENVPN
我改左個FILE 個IP 係SYNOLOGY NAS 個IP
個VPN都WO ...
able1992 發表於 2021-8-30 21:26

文件改紅色位
ROUTER SET番1194  PORTFORWARD

    dev tun
tls-client

remote XXX.myds.me 1194

# The "float" tells OpenVPN to accept authenticated packets from any address,
# not only the address which was specified in the --remote option.
# This is useful when you are connecting to a peer which holds a dynamic address
# such as a dial-in user or DHCP client.
# (Please refer to the manual of OpenVPN for more information.)

#float

# If redirect-gateway is enabled, the client will redirect it's
# default network gateway through the VPN.
# It means the VPN connection will firstly connect to the VPN Server
# and then to the internet.
# (Please refer to the manual of OpenVPN for more information.)

redirect-gateway def1

# dhcp-option DNS: To set primary domain name server address.
# Repeat this option to set secondary DNS server addresses.

#dhcp-option DNS DNS_IP_ADDRESS

pull

# If you want to connect by Server's IPv6 address, you should use
# "proto udp6" in UDP mode or "proto tcp6-client" in TCP mode
proto udp

script-security 2

TOP

jack 唔該你先,
但我照用左你個方法但轉另一個WIFI就連唔到VPN

TOP

我試過轉用L2TP VPN SETTING 伺服器都一定要用返NAS 個IP 就可以連到
但如果轉XXX.SYNOLOGY.ME OR 轉另一個WIFI 都係失敗

TOP

回復 3 #able1992

你有冇係router set port forward 1194比nas?

Android 紅米note8pro

TOP

回復 4 #able1992

你用咩router?

Android 紅米note8pro

TOP

用緊ORBI RBK20
有係ROUTER 度SET 返1194 FOR OPENVPN
同 500,4500,1701 FOR L2TP

TOP

本帖最後由 jackwong717 於 2021-8-31 07:50 編輯
用緊ORBI RBK20
有係ROUTER 度SET 返1194 FOR OPENVPN
同 500,4500,1701 FOR L2TP
able1992 發表於 2021-8-30 23:41



    我只能講...SYNOLOGY最近更新 VPN SERVER...我L2TP同OPENVPN都用唔到,
之前用左成年...降番舊版都唔得,
好多人都係咁,
https://community.synology.com/e ... xchBRddcKxqH6DGEl9Q
我而家係不能說VMM IKUAI開Ovpn

TOP

set nas vpn用途,系味share file唔用真ip?中轉?

TOP

本帖最後由 mj001415 於 2021-8-31 06:25 編輯

用syno既openVPN既話首先要設定好DDNS,一般syno自家既ddns個format係 “quickconnect.synology.me”,去返控制台>外部存取就可以setup,

set好之後第二版既ddns有一行使用緊既ddns,要狀態正常。

第三版既路由器配置入面,最好手動新增vpn server, openVPN就係1194或者自己改用嗰個,最好手動新增。要做一次測試連線,出現ok就可以。

VPN server嗰邊set好之後要啟用,然後匯出設定檔之後,解壓後,有個VPNConfig.ovpn既檔案,用txt黎開,修改位係“remote YOUR_SERVER_IP 1194”,改成“remote quickconnect.synology.me 1194”,然後save,就完成依步,一般router有開upnp既就都可以唔駛理,直接可以連到,不過依家最好唔開,咁就手動forward返個port 1194/自己個setting。

記住個通訊協定係有分TCP 同UDP,或者both,set port嗰兩個地方都要set啱先用到

最後, 要將成個解壓出黎同埋修改好既設定檔放入手機,不用再次壓縮,裝返個openVPN app ,斷WiFi用手機網絡做測試,帳號同密碼係用返你登入nas嗰陣既帳號同密碼就得。一般嚟講咁就大功告成。

上面講既quickconnect.synology.me,亦都可以直接改成外部IP,唔係192.168.x.x依個。

pptp 同openVPN我係一次就成功set好,依家都一直用緊,反而l2tp就得iphone可以連到,其他裝置都失敗

via HKEPC IR Pro 3.6.1 - Android(3.3.1)

TOP