- RaspberryPi 4
- Power Supply
- MicroSd at least 32 GB
- MicroSd Card Reader
- Ethernet Cable (cat5)
- Usb Wifi Adapter
- Download OPENWRT SysUpgrade Version (EXT4)
- Install raspbery pi imager Or Using Balena
- change IP to 192.168.1.10
- connect via
ssh root@192.168.1.1
- change password with
cd /etc/config && ls
cp wireless wireless.bk
cp network network.bk
cp firewall firewall.bk
$ vi network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd3c:3698:d05c::/48'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0'
config interface 'lan'
option device 'br-lan'
option proto 'static'
option ipaddr '192.168.1.2'
option netmask '255.255.255.0'
option ip6assign '60'
option force_link '1'
config interface 'wwan'
option proto 'dhcp'
option preerdns '0'
option dns '1.1.1.1 8.8.8.8'
config interface 'vpnclient'
option ifname 'tun0'
option proto 'none'
vi firewall
config zone
option input ACCEPT
$ reboot
$ ssh root@192.168.1.2
$ cd /etc/config
$ vi /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option channel '7'
option htmode 'HT20'
option disabled '0'
option hwmode '11g'
option short_gi_40 '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'none'
$ uci commit wireless
$ wifi
in browser call 192.168.1.2
- go to wifi radio0
- scan wifi
- select wifi
- ∆ tick Replace wireless configuration
- save and apply
reboot
ssh root@192.168.1.2
opkg update
opkg install kmod-usb-core kmod-usb-uhci kmod-usb-ohci kmod-usb2 usbutils openvpn-openssl luci-app-openvpn
opkg install kmod-rt2800-usb rt2800-usb-firmware
opkg install nano curl
config wifi-device 'radio0'
option type 'mac80211'
option path 'platform/soc/fe300000.mmcnr/mmc_host/mmc1/mmc1:0001/mmc1:0001:1'
option channel '7'
option htmode 'HT20'
option disabled '0'
option mode 'ap'
option hwmode '11g'
option short_gi_40 '0'
option cell_density '0'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ssid 'OpenWrt'
option encryption 'psk2'
option key '1234'
config wifi-device 'radio1'
option type 'mac80211'
option path 'scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.0'
option channel '7'
option hwmode '11g'
option htmode 'HT20'
option disabled '0'
option mode 'sta'
option short_gi_40 '0'
option cell_density '0'
https://docs.openwrt.melmac.net/simple-adblock/#requirements-for-dns-resolver
Download Luci-app-v2ray
https://github.com/kuoruan/luci-app-v2ray/releases
opkg install luci-app-v2ray_*.ipk
opkg update; cd /tmp/ && opkg download dnsmasq-full; opkg install ipset libnettle8 libnetfilter-conntrack3;
opkg remove dnsmasq; opkg install dnsmasq-full --cache /tmp/; rm -f /tmp/dnsmasq-full*.ipk;
#OR
opkg update
opkg install luci-app-v2raya v2ray-geoip v2ray-geosite
opkg update
opkg install openssh-sftp-server
/etc/init.d/dropbear restart
default: proxy
ip(geoip:private, geoip:ir)->direct