joserp93
Sharing WAN with other networks using Nerves - speed reduced by 1/50
Using VintageNet Cookbook — vintage_net v0.13.12
You can share internet from wlan0 to eth0. Following the Vintage cookbook, I understand that this is done via software using NAT and iptables rules.
However, I’m having a problem with download speed; it’s reduced by about 1/50. I tested this with a Raspberry Pi 4. Now, with Raspbian, it works perfectly, maintaining almost the same speed as the Wi-Fi connection shared over Ethernet.
I’d like to know if anyone has experienced this using Nerves and VintageNet, and if so, what possible solutions they have.
Marked As Solved
joserp93
I found the problem, I needed to add the MSS Clamping rules.
-A FORWARD -i wlan0 -o eth0 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
-A FORWARD -i eth0 -o wlan0 -p tcp -m tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









