linux:openwrt:openwrt
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:openwrt:openwrt [2020/10/18 23:05] – created percy | linux:openwrt:openwrt [2022/05/03 19:52] (current) – jianqing | ||
---|---|---|---|
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(/ |
- gateway | - gateway | ||
- dns | - dns | ||
- | ``` | + | < |
config interface ' | config interface ' | ||
option type ' | option type ' | ||
option ifname ' | option ifname ' | ||
option proto ' | option proto ' | ||
- | option ipaddr ' | + | option ipaddr ' |
option netmask ' | option netmask ' | ||
option ip6assign ' | option ip6assign ' | ||
Line 25: | Line 25: | ||
option gateway ' | option gateway ' | ||
list dns ' | list dns ' | ||
- | ``` | + | |
+ | config interface ' | ||
+ | option ifname ' | ||
+ | option proto ' | ||
+ | |||
+ | </ | ||
===== Install luci ===== | ===== Install luci ===== | ||
- | https:// | + | - https:// |
+ | |||
+ | opkg update | ||
+ | opkg install luci | ||
+ | |||
+ | ===== Install tools ===== | ||
``` | ``` | ||
- | opkg update | + | opkg install |
- | opkg install | + | |
``` | ``` | ||
+ | ===== Install v2ray ===== | ||
+ | Download the v2ray from | ||
+ | - https:// | ||
+ | I use my VPS to download it first | ||
+ | wget https:// | ||
+ | unzip v2ray-linux-64.zip -d v2ray | ||
+ | |||
+ | |||
+ | |||
+ | ===== Install BBR ===== | ||
+ | |||
+ | opkg install kmod-tcp-bbr | ||
+ | insmod kmod-tcp-bbr | ||
+ | lsmod|grep bbr | ||
+ | |||
+ | vim / | ||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | |||
+ | ===== Update hosts ===== | ||
+ | vim / | ||
+ | |||
+ | Add the `list addnhosts '/ | ||
+ | < | ||
+ | config dnsmasq | ||
+ | list addnhosts '/ | ||
+ | </ | ||
+ | Then add your hosts to / | ||
+ | vim / | ||
+ | | ||
+ | Then restart the dnsmasq service | ||
+ | / | ||
+ | |||
+ | ===== eth0/lan doesn' | ||
+ | |||
+ | |||
+ | The network eth0 doesn' | ||
+ | device eth0 entered promiscuous mode | ||
+ | After google, I try to disable promiscuous mode. | ||
+ | ifconfig eth0 -promisc | ||
+ | |||
+ | - https:// | ||
+ | - https:// | ||
+ | |||
+ | | ||
+ | | ||
/var/www/dokuwiki/wiki/data/attic/linux/openwrt/openwrt.1603033513.txt.gz · Last modified: 2020/10/18 23:05 by percy