Lenovo Newifi (Y1) OpenWrt Notes

Install OpenWrt Chaos Calmer 15.05.1

https://downloads.openwrt.org/chaos_calmer/15.05.1/ramips/mt7620/openwrt-15.05.1-ramips-mt7620-Lenovo-y1-squashfs-sysupgrade.bin

  1. Press and hold “Reset” button on the back.
  2. Power on the router, you will see 2.4G and 5G LED light is flashing
  3. Set the PC connected to the router to address 192.168.1.2 (or whatever in 192.168.1 subnet)
  4. Browse 192.168.1.1 from browser and select the firmware download above and click “恢復”
  5. Wait it finish and browser to 192.168.1.1 again.

Install essential packages

# For 5Ghz WiFi
kmod-mt76

# For GRE Protocol, Allow VPN connections
kmod-nf-nathelper-extra

# For External HDD / USB Flash Drive
kmod-usb-storage
kmod-usb-storage-extras
block-mount
kmod-fs-ext4

# For VNStat
luci-app-vnstat
vnstat

# For BitTorrent
transmission-daemon
transmission-web
luci-app-transmission

# For PPTP VPN
kmod-mppe
kmod-gre
pptpd

# For Samba
samba36-server
luci-app-samba

# For DDNS
ddns-scripts
luci-app-ddns

Configure PPTP VPN

  1. Edit /etc/config/pptpd set enable to “1” set login username and password, set the localip to the same subnet as the router, e.g 192.168.1.1, remoteip to 192.168.1.20-30
  2. In luci, Network > Firewall > Traffic Rules, add a rule to open port 1723
  3. Edit /etc/config/network, add
    config rule
    	option target 'ACCEPT'
    	option _name 'pptp'
    	option src 'wan'
    	option proto 'tcp'
    	option dest_port '1723'
    
    config rule
    	option target 'ACCEPT'
    	option _name 'gre'
    	option src 'wan'
    	option proto '47'
  4. In luci, Network > Firewall > Custom Rules, add below rules
    # Allow all traffic in and out of the ppp interface. No reason to specify nets.
    iptables -A input_rule -i ppp+ -j ACCEPT
    iptables -A output_rule -o ppp+ -j ACCEPT
    # This rule will allow traffic towards internet
    iptables -A forwarding_rule -i ppp+ -j ACCEPT
    iptables -A forwarding_rule -o ppp+ -j ACCEPT
  5. Enable and start the service
    /etc/init.d/pptpd enable
    /etc/init.d/pptpd start

OpenWrt Wiki (outdated)

https://wiki.openwrt.org/toh/lenovo/lenovo_y1_v1

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s