Thay cổng mạng
vi /etc/config/network
Cài đặt sudo trên Debian
su –
apt update
apt install sudo
=================================
Cài ip tĩnh trên debian
sudo nano /etc/network/interfaces
auto enp2s0
iface enp2s0 inet static
address 192.168.1.238
netmask 255.255.255.0
gateway 192.168.1.1
=================================
cài server mptcp với quyền root
su –
apt-get update && apt-get upgrade
wget -O – https://www.openmptcprouter.com/server/debian-x86_64.sh | KERNEL=”6.1″ sh
=================================
Your shadowsocks key:
CaF/J4QLyWgjMAjk1CUDttk08V8ew3652v11OSGUbZk=
Your shadowsocks 2022 key:
WKOEWFKkTYarD2XkVuzZ+Sttd3H9uiGhHnfhlUnILws=:mbNeDgseGjeqVzWf2Nj25DQrGOiHvdAt4zs/eBl3Cg0=
V2Ray/XRay user id
5274158d-8bbe-4d20-9d3b-2ba21a12a0a3
Your glorytun key:
8B079D772F7EF5258FC9C6F0C966B28C3A5B011C974F13CFEEDDE408177DC606
A Dead Simple VPN key:
4E2233FCF3741E03D102DC58C70FFE5A67290DE5C40CEE9AC0D2954B5E2AA368
Your MLVPN password:
Tf0EuJRL732Kf0tZT2jmSuo8rU0KLXdBEgMcwWrW2eA=
IP máy chủ
27.74.246.165
OpenMPTCProuter Server key:
EA5E3C99753BA206C54FD7A6BE899E0E873E22F396EA6E2A00779F260CA8FD02
OpenMPTCProuter Server username:
openmptcprouter
mở port 65000-65535
Sau khi cài đặt, các khóa được lưu trong /root/openmptcprouter_config.txt
kiểm tra shadowsocks-go systemctl status shadowsocks-go
các cổng dành cho openmptcp
SSH port is changed to 65222 (TCP)
Shadowsocks port is 65101 (TCP & UDP)
Shadowsocks-Rust port is 65280 (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)
Iperf3 on port 65400 (TCP & UDP)
DSVPN port is 65401 (TCP)
V2Ray port is 65228, 65229, 65230 and 65231 (TCP)
Xray port is 65248, 65249, 65250, 65251, 65252 and 443 when VLESS-Reality is used (TCP)
Wireguard port is 65311 & 65312 (UDP)
ICMP mustn't be blocked
You can also open range 65000-65535
check on the VPS
journalctl -u omr-admin | (xem nhật ký hoạt động)
journalctl -u omr-admin -f | Xem log real-time (giống tail -f)
journalctl -u omr-admin --since "10 minutes ago" | Xem log trong 10 phút gần nhất
journalctl -u omr-admin --since today | Xem log từ đầu ngày hôm nay
sudo systemctl restart omr-admin | Khởi động lại dịch vụ nếu gặp lỗi
sudo systemctl status omr-admin | Kiểm tra trạng thái hiện tại của dịch vụ
sudo journalctl -u omr-admin --since "10 minutes ago" | grep -v 127.0.0.1 | awk '{print $7}' | cut -d: -f1 | sort | uniq | (lọc router đang online)
thêm người dùng
tạo pass echo -n 'trungdungmedia' | sha256sum
chỉnh file nano /etc/openmptcprouter-vps-admin/omr-admin-config.json
kiểm tra các ip kết nối đến server
sudo tcpdump -n -c 100 'port 65280 and tcp[tcpflags] & tcp-push != 0' | \
awk '{print $3}' | cut -d '.' -f 1-4 | grep -v '^192\.168\.14\.238$' | sort | uniq > /home/server4g/connections.log