Install or update the VPS

Ycarus (Yannick Chabanois) edited this page Dec 19, 2018 · 14 revisions

You need to have a MPTCP kernel,shadowsocks-libev, Glorytun, and a few services installed on the VPS. The VPS script will install and configure them for you.

MPTCP will not work on OpenVZ but you can use MLVPN or Glorytun UDP if TUN module is available.

Tested and working on:

  • OVH/Kimsufi (limit to 100Mb/s)
  • Firstheberg VPS (limit to 200Mb/s)
  • Scaleway recent VPS Virtual SSD Cloud Servers (not BareMetal SSD Cloud Servers and not Arm) with local boot enabled (100-400Mb/s) all ports used by SMTP are blocked on this one

Should work on most KVM VPS (you need to be able to boot from local kernel).

Work with all dedicated server.

Install on Debian 9 Stretch x86_64

Connect with SSH on your server, using ssh command under Linux or Putty under windows for example.

Then, as root:

wget -O - http://www.openmptcprouter.com/server/debian9-x86_64.sh | sh

or

wget http://www.openmptcprouter.com/server/debian9-x86_64.sh
sudo sh debian9-x86_64.sh

Some options available for advanced users before executing the script:

  • OBFS=yes add ShadowSocks obfuscating support
  • MLVPN=yes for MLVPN support
  • OPENVPN=yes for OpenVPN TCP support

This will install and configure mptcp kernel, shadowsocks, glorytun and shorewall (as firewall). Key for shadowsocks and glorytun are generated by the script.

  • SSH port is changed to 65222 (TCP)
  • Shadowsocks port is 65101 (TCP & UDP)
  • Glorytun port is 65001 (TCP & UDP)
  • OMR JSON admin is 65500 (TCP)
  • OpenVPN port is 65301 (TCP)
  • MLVPN ports are 65201-65208 (UDP)

After install, keys are saved in /root/openmptcprouter_config.txt

If you want to redirect ports 1-64999 to OpenMPTCProuter, you need to uncomment last line of /etc/shorewall/rules, you can then manage redirections from the router.

Install on Ubuntu Server 18.04 x86_64

Connect with SSH on your server, using ssh command under Linux or Putty under windows for example.

Then, as root:

wget -O - http://www.openmptcprouter.com/server/ubuntu18.04-x86_64.sh | sh

or

wget http://www.openmptcprouter.com/server/ubuntu18.04-x86_64.sh
sudo sh ubuntu18.04-x86_64.sh

Some options available for advanced users before executing the script:

  • OBFS=yes add ShadowSocks obfuscating support
  • MLVPN=yes for MLVPN support
  • OPENVPN=yes for OpenVPN TCP support

This will install and configure mptcp kernel, shadowsocks, glorytun and shorewall (as firewall). Key for shadowsocks and glorytun are generated by the script.

  • SSH port is changed to 65222.
  • Shadowsocks port is 65101.
  • Glorytun port is 65001.

After install, keys are saved in /root/openmptcprouter_config.txt

If you want to redirect ports 1-64999 to OpenMPTCProuter, you need to uncomment last line of /etc/shorewall/rules, you can then manage redirections from the router.

Update

To update, you have to download and run the script again. Keys will be preserved.

Files used by script

All files available here: https://github.com/Ysurac/openmptcprouter-vps

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.