Comments (15)
@vempire-ghost it marked in red for a while after that it became master again.
erspan0 is deactivated eth0 is deactivated gre0 is deactivated gretap0 is deactivated ifb4tun0 is deactivated ifb4wan1 is deactivated ifb4wan2 is deactivated ifb4wan3 is deactivated ifb4wan4 is deactivated ifb4wan5 is deactivated ip6gre0 is deactivated ip6tnl0 is deactivated lo is deactivated sit0 is deactivated teql0 is deactivated tun0 is deactivated wan1 is in default mode wan2 is in default mode wan3 is in default mode wan4 is in default mode wan5 is in default mode wlan0 is deactivated
Check in the advanced settings if the line network.globals.mptcp_force_multipath='0'
is indeed set to the value 0. However, OMR can sometimes change the value back to Default, but the script would revert it back to backup every minute.
There is another way to force the master as backup, but it involves modifying a file in OMR, it's a simple change but it can cause issues, so have a backup handy if you want to proceed.
Edit the file /etc/init.d/mptcp of OMR using nano, go to line 179, and change lines 179 to 182, replacing the values "On" with "Backup", so it becomes like this:
mode="backup"
config_set "$config" multipath "backup"
uci -q set network.${config}.multipath="backup"
uci -q set openmptcprouter.${config}.multipath="backup"
Go to line 413 and delete the lines 413, 414, and 415 as follows:
if ([ "$mode" = "master" ] || [ "$mode" = "on" ]) && [ -z "$(multipath $iface | grep default)" ]; then
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
multipath "$iface" "on"
And then add these new lines in place:
if [ "$mode" = "master" ] && [ -z "$(multipath $iface | grep backup)" ]; then
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
multipath "$iface" "backup"
elif [ "$mode" = "on" ] && [ -z "$(multipath $iface | grep default)" ]; then
logger -t "MPTCP" "Set $iface to $mode from $(multipath $iface)"
multipath "$iface" "on"
With these changes, the OMR will set the master WAN as backup without forcing it to default, although it will still appear in red in the Network Overview.
You will need to save and apply or restart the OMR for these changes to take effect.
from openmptcprouter.
@vempire-ghost
I appreciate your effort, thanks.
I'll try it and give you a feedback
Here you have to wait for people to go to sleep then you can use the internet
from openmptcprouter.
it's okay. You helped me a lot so far.
thanks a million.
from openmptcprouter.
@aladdinshammr can you open a new issue for this problem ?
from openmptcprouter.
It can't connect to VPS API, did you open 65000-65535 port range on GCP ?
from openmptcprouter.
I face the same issue.
when I configure the router it works just fine.
but when I start to consume all the aggregated speed I see " No Server ping response after 1 second" on the master connection. then I lose the connection to the VPS.
If there is a way to exclude the master connection from the aggregation and let it's solely job to connect to the server.
or do I need to configure something in OMR-tracker?
this is what I get in the log
Apr 8 23:28:06 OpenMPTCProuter daemon.err omr-tracker[25131]: sh: 66.6667: bad number
Apr 8 23:35:23 OpenMPTCProuter daemon.err omr-tracker[25130]: sh: 66.6667: bad number
in a whisper voice => the highest speed here is just 8 Mbps
router version : v0.60 rc2
VPS : 5.4.207-mptcp
provider: google cloud service
from openmptcprouter.
I face the same issue. when I configure the router it works just fine. but when I start to consume all the aggregated speed I see " No Server ping response after 1 second" on the master connection. then I lose the connection to the VPS.
> If there is a way to exclude the master connection from the aggregation and let it's solely job to connect to the server. or do I need to configure something in OMR-tracker?
this is what I get in the log
Apr 8 23:28:06 OpenMPTCProuter daemon.err omr-tracker[25131]: sh: 66.6667: bad number Apr 8 23:35:23 OpenMPTCProuter daemon.err omr-tracker[25130]: sh: 66.6667: bad number
in a whisper voice => the highest speed here is just 8 Mbps
router version : v0.60 rc2 VPS : 5.4.207-mptcp provider: google cloud service
I made this request in this topic https://github.com/Ysurac/openmptcprouter/issues/3131 but didn't get a response, which would be the option to configure the Master WAN as backup, so the MPTCP would only use it to initiate connections and communicate with the VPS, and the other WANs would be used for heavy traffic. Is it possible to configure this way in the context of MPTCP, but in OMR, it's configured to force the master WAN as default.
There's a way to work around this by disabling this configuration set network.globals.mptcp_force_multipath='0'
and adding this script to the Scheduled Tasks: */1 * * * * multipath eth1 backup
, assuming your master WAN is wan1. If it's another one, change it accordingly.
However, keep in mind that with this configuration, your master WAN will no longer aggregate the connection speed of all WANs and will be used solely to contact the VPS and initiate connections.
from openmptcprouter.
hi, Thanks for help .
I ran this in the terminal "set network.globals.mptcp_force_multipath='0'"
and put this in the Scheduled Tasks like this
is everything correct ??
from openmptcprouter.
hi, Thanks for help . I ran this in the terminal "set network.globals.mptcp_force_multipath='0'" and put this in the Scheduled Tasks like this
is everything correct ??
No, the command should use eth1 for wan1, eth2 for wan2... So if your wan1 is the master, keep it exactly as I put in the example */1 * * * * multipath eth1 backup
.
To check if it's working, you can use the command multipath
in the terminal and check if eth1 is set as backup instead of default. You can also see in the Network Overview of OMR; it will be marked in red that the WAN is set as backup because OMR does not accept this status as correct.
from openmptcprouter.
@vempire-ghost
it marked in red for a while after that it became master again.
erspan0 is deactivated
eth0 is deactivated
gre0 is deactivated
gretap0 is deactivated
ifb4tun0 is deactivated
ifb4wan1 is deactivated
ifb4wan2 is deactivated
ifb4wan3 is deactivated
ifb4wan4 is deactivated
ifb4wan5 is deactivated
ip6gre0 is deactivated
ip6tnl0 is deactivated
lo is deactivated
sit0 is deactivated
teql0 is deactivated
tun0 is deactivated
wan1 is in default mode
wan2 is in default mode
wan3 is in default mode
wan4 is in default mode
wan5 is in default mode
wlan0 is deactivated
from openmptcprouter.
unfortunately, it didn't work.
frankly I don't have much experience in networks, but after some searching I found out that this issue is not because of the heavy load on master connection.
my problem is exactly this multipath-tcp/mptcp#108
especially when I connect mikrotik router to OMR router.
Do you know how did they fix the issue???
if I disabled this thing "net.ipv4.tcp_mtu_probing" will OMR work perfectly?
from openmptcprouter.
unfortunately, it didn't work.
frankly I don't have much experience in networks, but after some searching I found out that this issue is not because of the heavy load on master connection.
my problem is exactly this multipath-tcp/mptcp#108 especially when I connect mikrotik router to OMR router.
Do you know how did they fix the issue???
if I disabled this thing "net.ipv4.tcp_mtu_probing" will OMR work perfectly?
It's unfortunate that it didn't work. I'm afraid I don't have much networking knowledge and can't assist you with the issue you've reported.
from openmptcprouter.
sure I will do.
thanks to you as well
from openmptcprouter.
I did a fresh installation of my VPS and router and still had the same issue.
When activating "Show advanced settings" in the Settings Wizard, I noticed that my router wasn't able to fetch all the tokens needed for the VPN connections.
After further investigation, I've noticed that many services were inactive on my VPS!
After starting the omr service, the router was able to fetch the tokens from the VPS again:
systemctl start omr.service
This fixed most of my issues, bringing up a new one:
I was capable of fixing that by switching the Default Proxy from "Shadowsocks-Rust 2022" to "Shadowsocks"!
It seems like the current version has some broken settings out-of-the-box, which required me to spend a Friday evening on this issue...
from openmptcprouter.
@MoweME please open a new issue.
from openmptcprouter.
Related Issues (20)
- Use public vps IP on internal firewall HOT 6
- Problem with localization HOT 7
- Aggregation only works for upload, download is not aggregated HOT 2
- Push streams to the SRS server on the LAN
- Block IP Adress on Raspberry Pie HOT 1
- I want install the OPENMPTCPROUTER on a Proliant DL360 Gen10 plus HOT 8
- I want to add a wireless network card to the router HOT 1
- > @Alison110 it's not related to this issue. And these devices are not supported, you will need to compile it yourself: https://github.com/Ysurac/openmptcprouter/wiki/Create-image-for-unsupported-platform
- Can I update the Linux on the VPS? HOT 1
- @Alison110 it's not related to this issue. And these devices are not supported, you will need to compile it yourself: https://github.com/Ysurac/openmptcprouter/wiki/Create-image-for-unsupported-platform HOT 1
- OPENMPTCPROUTER can't start HOT 9
- Feasibility of using OMR with highly restricted WAN, only access to TCP ports 80 & 443 HOT 3
- sdcard img
- 你网站上的bpi-r64的sdcard img镜像文件可能无法启动该硬件
- There is no wireless function in the network options HOT 1
- Access VPS port UDP 161
- OMR can't contact server admin script, OMR-ADMIN keeps restarting, OMR6IN4 doesn't start HOT 2
- Any plan to support Ubuntu as VSP host OS other than Debian? HOT 5
- clients randomly lose connection when master or other WANs drop connection HOT 25
- Aggregation not working HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openmptcprouter.