Ysurac / openmptcprouter

OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
https://www.openmptcprouter.com/
GNU General Public License v3.0
1.85k stars 266 forks source link

openvpn and mlvpn run failed on the lastest VPS. #115

Closed abilly007 closed 5 years ago

abilly007 commented 6 years ago

Expected Behavior

In English please.

Actual Behavior

Steps to Reproduce the Problem

1.when i install the shadowsocks and glorytun by the script debian9-x86_64.sh, they work well. 2.and then i change the script debian9-x86.sh by set MLVPN=${MLVPN:-yes} and OPENVPN=${OPENVPN:-yes}, and run it to install. i found there a bit problem : 1) in the script debian9-x86_64.sh the omr-6in4 change into omr-service ,and omr-6in4-service change into omr-6in4.service.in form last version, but in the script debian9-x86_64-mlvpn didnot change them ; 2) the bellow command return error ,is the filename change on the server ? wget -O /lib/systemd/network/openvpn.network http://www.openmptcprouter.com/server/openvpn.network

  1. after i fix the two bug, and install is ok. but when i run them in serice mode, they failed all. root@instance-ai0i4ljl:~# systemctl status openvpn-server@tun0.service ● openvpn-server@tun0.service - OpenVPN service for tun0 Loaded: loaded (/lib/systemd/system/openvpn-server@.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:openvpn(8) https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage https://community.openvpn.net/openvpn/wiki/HOWTO root@instance-ai0i4ljl:~# root@instance-ai0i4ljl:~# systemctl status openvpn-server@tun0 ● openvpn-server@tun0.service - OpenVPN service for tun0 Loaded: loaded (/lib/systemd/system/openvpn-server@.service; disabled; vendor preset: enabled) Active: inactive (dead) Docs: man:openvpn(8) https://community.openvpn.net/openvpn/wiki/Openvpn24ManPage https://community.openvpn.net/openvpn/wiki/HOWTO root@instance-ai0i4ljl:~# systemctl status mlvpn@mlvpn0.service ● mlvpn@mlvpn0.service - MLVPN connection to mlvpn0 Loaded: loaded (/lib/systemd/system/mlvpn@.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Tue 2018-07-31 10:02:33 CST; 2min 39s ago Process: 749 ExecStart=/usr/local/sbin/mlvpn --config /etc/mlvpn/mlvpn0.conf --user mlvpn (code=exited, status=1/FAILURE) Main PID: 749 (code=exited, status=1/FAILURE)

Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: mlvpn@mlvpn0.service: Unit entered failed state. Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: mlvpn@mlvpn0.service: Failed with result 'exit-code'. Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: mlvpn@mlvpn0.service: Service hold-off time over, scheduling restart. Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: Stopped MLVPN connection to mlvpn0. Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: mlvpn@mlvpn0.service: Start request repeated too quickly. Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: Failed to start MLVPN connection to mlvpn0. Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: mlvpn@mlvpn0.service: Unit entered failed state. Jul 31 10:02:33 instance-ai0i4ljl systemd[1]: mlvpn@mlvpn0.service: Failed with result 'exit-code'. root@instance-ai0i4ljl:~#

can you help me take a look?thanks.

Specifications

Ysurac commented 6 years ago

1) Fixed 2) The file exist, what is the error ? 3)

abilly007 commented 6 years ago
  1. i get it.

  2. x lv8xjcf zvgssv 7trbh

  3. i pq fgel1x0l2m r36f tx

Ysurac commented 6 years ago
  1. Strange, on my server the log say "connection closed by client". What is the result if you try https instead of http ?
    • For MLVPN, /var/run/mlvpn exist ? Seems to be cleared at reboot. In latest version I use /var/opt/mlvpn.
    • For OpenVPN, I'm able to reproduce the issue, I will fix it ASAP.
abilly007 commented 6 years ago
  1. use https instead of http that is ok.
  2. there didnot exist /var/run/mlvpn and /var/opt/mlvpn.
Ysurac commented 6 years ago

All should be fixed in latest OpenMPTCProuter VPS script.

abilly007 commented 6 years ago

hi,Ysurac, i update the VPS script to lastest, and running is ok. but there still a few problems have bothered me. 1.first , i use shadowsock and glorytunVPN tcp or glorytunVPN udp ,they all work well,and i can see the tunnel is established,i can ping success from each other.

  1. but,when i disable shadowsock , I can't access any web site through the browser,is should be all the traffic go throught by VPN when the shadowsock is disable(how it can do this i'm not very clear.) ,they seems didnot work?
  2. when i change the default VPN from glorytunTCP to MLVPN, the tunnel interface name change into mlvpn0 but didnot have a client ip,so i think the vpn tunnel didnot established.
Ysurac commented 6 years ago
  1. ok
  2. Strange, working for me. How to you try to disable ShadowSocks ? What OpenMPTCProuter version are you using ?
  3. Did you set MLVPN key ? It get IP from DHCP when MLVPN can connect.
abilly007 commented 6 years ago
  1. by command line : /etc/init.d/shadowsocks-libev stop ,the openMPTCProuter is v0,29 rpi2 download from your web. 3.yes, ss,glorytun mlvpn all the key had set.
Ysurac commented 6 years ago
  1. Update to v0.29.1 and use interface to disable it :)
  2. Same, try v0.29.1. If no change try to reboot VPS.
abilly007 commented 6 years ago

2.it's already v0.29.1 of openMPTCProuter.use interface to disable shadowsocks? there are several local instances,e.g. ss_local ,ss_redir1,ss_redir2,ss_tunnel.etc,and a remote server, and a redir rules .i have to disable all of them beside the remote server?that seems is not a convenient way. 3.the VPS is the lastest v0.40 and had been reboot.

Ysurac commented 6 years ago
  1. You only need to check the Disable case on Remote Servers tab in ShadowSocks interface. You can also remove key in OpenMPTCProuter wizard.
  2. Strange. MLVPN is running on the VPS ? Can you check if the key in /etc/mlvpn/mlvpn0.conf is the same as what you set to be sure ?
abilly007 commented 6 years ago

2.I get it.But after I disabled shadowsocks from the interface like you say, I still couldn't access any website through the browser, but my QQ (an instant messaging APP) could log in and communicate.

  1. I had check the key of mlvpn config of the both router and VPS ,the are the same. but it still don't work .