User Tools

Site Tools


linux:openwrt:openwrt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
linux:openwrt:openwrt [2020/10/18 23:05] – created percylinux:openwrt:openwrt [2021/08/31 10:48] percy
Line 10: Line 10:
      
 ===== Update network config ===== ===== Update network config =====
-After install the image in the VMM, need to update the network config+After install the image in the VMM, need to update the network config(/etc/config/network)
   - gateway   - gateway
   - dns   - dns
  
-```+<code>
 config interface 'lan' config interface 'lan'
  option type 'bridge'  option type 'bridge'
Line 25: Line 25:
  option gateway '192.168.1.1'  option gateway '192.168.1.1'
  list dns '8.8.8.8'  list dns '8.8.8.8'
-```+</code>
  
 ===== Install luci ===== ===== Install luci =====
Line 31: Line 31:
 ``` ```
 opkg update opkg update
-opkg install luck+opkg install luci 
 +``` 
 +===== Install tools ===== 
 +``` 
 +opkg install curl unzip wget-ssl ipset 
 + 
 +``` 
 + 
 +===== Install v2ray ===== 
 +Download the v2ray from 
 +  - https://github.com/v2ray/v2ray-core/releases 
 +I use my VPS to download it first 
 +  wget https://ef.pjq.me/download/openwrt/v2ray-linux-64.zip 
 +  unzip v2ray-linux-64.zip -d v2ray 
 + 
 + 
 + 
 +===== Install BBR ===== 
 +``` 
 +opkg install kmod-tcp-bbr 
 +insmod kmod-tcp-bbr 
 +lsmod|grep bbr 
 +``` 
 +  vim /etc/sysctl.conf 
 +And add the following: 
 +  net.core.default_qdisc=fq_codel 
 +  net.ipv4.tcp_congestion_control=bbr 
 + 
 +Then reload the setting 
 +  sysctl -p 
 + 
 +``` 
 +lsmod|grep bbr 
 +tcp_bbr                16384 35  
 +``` 
 + 
 +===== Update hosts ===== 
 +  vim /etc/config/dhcp 
 + 
 +Add the `list addnhosts '/etc/myhosts'
 +``` 
 +config dnsmasq                                                                                                     ...                                                                                            
 +        list addnhosts '/etc/myhosts'    
 ``` ```
 +Then add your hosts to /etc/myhosts
 +  vim /etc/myhosts
 +  
 +Then restart the dnsmasq service
 +  /etc/init.d/dnsmasq restart
  
 +  
 +  
  
/var/www/dokuwiki/wiki/data/pages/linux/openwrt/openwrt.txt · Last modified: 2022/05/03 19:52 by jianqing