[Routing][Tutorial]OpenWrt connects to the superior router through LAN to make a switch + wireless function tutorial

1 Introduction

The upper-level router is the ikuai soft router, and the data processing is handed over to the soft router. OpenWrt runs on the router, and connects to the upper-level router through LAN to only perform WIFI receiving and sending functions.

This tutorial can only use the LAN as a switch, not the WAN port!

2. Set LAN port IP

The IP of the LAN port can be assigned statically or dynamically by DHCP, depending on the distribution method of the upper-level route. I choose the static IP method here.

image-20230115175951564

3. Disable DHCP

image-20230115180006732

image-20230115180028791

4. Close dnsmasq

image-20230115194849150

5. Turn off "Unique Authorization" and "DNS Redirection"

Because the upper level already has a DHCP server, the only authorization is turned off

DNS redirection will cause DNS redirection of all devices under OpenWrt, resulting in slow network access, so it is turned off.

image-20230115180704643

So far the configuration is complete.

6. Firewall settings

6.1 Enable MSS clamping

This option should be turned on, otherwise it will cause WeChat pictures and red envelopes to be received very slowly

image-20230218095918332

6.2 Turn off IP dynamic masquerading

IP dynamic masquerading is NAT, we don't need NAT here, so turn it off

7. Other

For Aikuai, Openwrt, etc. that use virtual machines, you must pay attention to network card allocation and line connections to prevent large loops. Otherwise, there will be a problem of slow access to the network by devices under the secondary route, because the network is blocked.

8. Reference

Regarding firewall settings. What does it mean that there is MSS clamping and IP dynamic masquerading in it?

Guess you like

Origin blog.csdn.net/qq_38844263/article/details/128698773