🛠️ Tools Free CFW: Full OpenVPN for Openwrt Routers

that was your BIGGEST MISTAKE!!! dapat indi mo pinaka-alaman yung router while flashing process is still in progress. normal na lang yun na ma-disconnect ka sa wifi, kasi nirereload nung router yung mga drivers while flashing so ma-didisconnect ka talaga sa wifi. kung hinayaan mo lang sana mag-reboot yung router ng sarili. this bricking will not happen. kahit disconnected ka sa wifi flashing is still happening on the router itself, dapat hinayaan mo na lang na mag-reboot ng kusa yung router.

confirmed it was your flashing procedure mistake. to all newbie here dont try this method. DONT EVER EVER INTERRUPT your router while flashing process is still on progress.

As for your brick router the only chance you can revive is to try tftp flashing. i will give you some link later about tftp flashing procedure. walang kasiguraduhan na mabubuhay ng tftp flashing yan.

kung indi kaya mabuhay ng tftp flashing, you can
also try serial port flashing too, mas madugo procedure nun kasi you need to solder some wires on tx rx grnd of your router. wala rin assurance na mabubuhay nito router mo. you will also need a usb serial port flashing device para makapag-serial port flashing ka. im sorry for your bricked router. wala akong kasalanan dyan. it is your own fault.

no worry meron ako rs232 usb to serial emulator gadget kaya kaya ko revive yan after damaging the u-boot :giggle:

sayang ang router 8mb flash,250php bye bye :(

padala mo sa akin revive natin yang router mo
 
yes ganun. palaging mas matagal yung firstboot ng every router during firstboot (after firmware upgrade/flashing) kasi may mga firstboot script lahat ng router na kailangan iexecute during firstboot. all firstboot script will automatically dissappear/erase on the system after the firstboot.
firstboot will reload only kapag ni-restore yung router into factory defaults.

[openwrt info]

all firstboot script can be found and inject on folder

/etc/uci-defaults

gumawa rin ako ng sarili kong firstboot script,
sa firsboot script ko, nilalagyan lahat ng firewall script for openvpn, dyan din ako ng-sesetup ng default na wifi password.

pero tulad ng sinabi ko, indi nyo makikita mga scripts sa folder na yan kasi naka-auto remove yan.

firstboot script is somehow similar to /etc/rc.local
file any scripts on rc.local will automatically execute during reboot. the only difference is that firstboot is just for literal first boot of the router whereas rc.local stays on system and continue its script/command every reboot.

not to me sir but no worry sir wala akong planong galawin or angkinin at ilagay sa build ko kasi i have my own script din which is more secure for others to unpack :giggle:

Code:
#!/bin/ash
echo " "
echo " "
echo "  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| O P E N V P N  F O R  4 M B  R O U T E R
 -----------------------------------------------------
       Custom Firmware by phcorner.org Linuxnoob
            Request For Your Own FREE CFW @ 
        https://phcorner.org/threads/647926/
 -----------------------------------------------------"

echo " "
echo " "
PIDOF=$(uname -r)
echo "activating tun0 module"
modprobe /tmp/lib/modules/${PIDOF}/tun.ko
echo " "
echo " "
echo "adding openvpn interface on network settings"
uci set network.vpnclient="interface"
uci set network.vpnclient.ifname="tun0"
uci set network.vpnclient.proto="none"
uci commit network
/etc/init.d/network restart
sleep 10s
echo " "
echo "creating backup of firewall settings"
cp /etc/config/firewall /etc/config/firewall.bak
echo " "
echo "firewall.bak created"
sleep 3s
echo " "
echo "creating openvpn firewall script"
uci add firewall zone
uci set firewall.@zone[-1].name="vpnclient"
uci add_list firewall.@zone[-1].network="vpnclient"
uci set firewall.@zone[-1].input="REJECT"
uci set firewall.@zone[-1].output="ACCEPT"
uci set firewall.@zone[-1].forward="REJECT"
uci set firewall.@zone[-1].masq="1"
uci set firewall.@zone[-1].mtu_fix="1"
uci add firewall forwarding
uci set firewall.@forwarding[-1].src="lan"
uci set firewall.@forwarding[-1].dest="vpnclient"
uci commit firewall
/etc/init.d/firewall stop
/etc/init.d/firewall reload
cp /etc/config/firewall /etc/config/firewall.vpn
sleep 5s
echo " "
chmod +x /etc/rc.local
sleep 2s
echo " "
echo " "
echo "openvpn firewall setup done..."
echo "coded by: linuxnoob"
echo "<phcorner.linuxnoob@gmail.com>"
echo "copyright 2018"
echo " "
/etc/init.d/cron enable
/etc/init.d/cron start
uci set wireless.radio0.disabled=0
uci set wireless.radio0.channel=auto
uci set wireless.radio0.country=PH
uci set wireless.default_radio0.ssid=OpenWrtLinux
uci set wireless.default_radio0.encryption=psk2
uci set wireless.default_radio0.key=linuxnoob
uci set wireless.default_radio0.mode=ap
uci commit wireless
wifi down
wifi up
 
sorry to say but im not using any pc apps or android openvpn apps. this is why i create a firmware with openvpn installed on router.

advantage

  1. less electricity consumption
  2. not all people nowadays use pc. most of the time they are just using their phones or tablets.
  3. once they connected on router with vpn software. no need to install anything. just surf na lang.
  4. good for devices that doesn't have openvpn like smart tv that are not smart enough.
  5. less cpu usage on smart phone, means more juice or battery life
may pang Android na pala. ?
 
not to me sir but no worry sir wala akong planong galawin or angkinin at ilagay sa build ko kasi i have my own script din which is more secure for others to unpack :giggle:

Code:
#!/bin/ash
echo " "
echo " "
echo "  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| O P E N V P N  F O R  4 M B  R O U T E R
-----------------------------------------------------
       Custom Firmware by phcorner.org Linuxnoob
            Request For Your Own FREE CFW @
        https://phcorner.org/threads/647926/
-----------------------------------------------------"

echo " "
echo " "
PIDOF=$(uname -r)
echo "activating tun0 module"
modprobe /tmp/lib/modules/${PIDOF}/tun.ko
echo " "
echo " "
echo "adding openvpn interface on network settings"
uci set network.vpnclient="interface"
uci set network.vpnclient.ifname="tun0"
uci set network.vpnclient.proto="none"
uci commit network
/etc/init.d/network restart
sleep 10s
echo " "
echo "creating backup of firewall settings"
cp /etc/config/firewall /etc/config/firewall.bak
echo " "
echo "firewall.bak created"
sleep 3s
echo " "
echo "creating openvpn firewall script"
uci add firewall zone
uci set firewall.@zone[-1].name="vpnclient"
uci add_list firewall.@zone[-1].network="vpnclient"
uci set firewall.@zone[-1].input="REJECT"
uci set firewall.@zone[-1].output="ACCEPT"
uci set firewall.@zone[-1].forward="REJECT"
uci set firewall.@zone[-1].masq="1"
uci set firewall.@zone[-1].mtu_fix="1"
uci add firewall forwarding
uci set firewall.@forwarding[-1].src="lan"
uci set firewall.@forwarding[-1].dest="vpnclient"
uci commit firewall
/etc/init.d/firewall stop
/etc/init.d/firewall reload
cp /etc/config/firewall /etc/config/firewall.vpn
sleep 5s
echo " "
chmod +x /etc/rc.local
sleep 2s
echo " "
echo " "
echo "openvpn firewall setup done..."
echo "coded by: linuxnoob"
echo "<phcorner.linuxnoob@gmail.com>"
echo "copyright 2018"
echo " "
/etc/init.d/cron enable
/etc/init.d/cron start
uci set wireless.radio0.disabled=0
uci set wireless.radio0.channel=auto
uci set wireless.radio0.country=PH
uci set wireless.default_radio0.ssid=OpenWrtLinux
uci set wireless.default_radio0.encryption=psk2
uci set wireless.default_radio0.key=linuxnoob
uci set wireless.default_radio0.mode=ap
uci commit wireless
wifi down
wifi up

yes there are some tools to unpack bin files. modifying it and just inserting any changes will have a chance to brick the device. my mga checksums mga bin. once modified isang file parang nagiging corrupted na yung buong firmware. para siyang some kind oh hex editing. dapat tugma pa rin yung size checksums etc. and i will not teach anyone to this unpacking method. learn to build using buildroot generator or image builder instead, that is the proper way.
 
no worry meron ako rs232 usb to serial emulator gadget kaya kaya ko revive yan after damaging the u-boot :giggle:



padala mo sa akin revive natin yang router mo

sa pagkaka-alam ko nasa 200+ pesos na shipping ng item via lbc. another 200+ pesos for shipping it back. much better kung bumili ka na lang ulet ng 2nd hand units baka mas makumura pa siya.
 
sa pagkaka-alam ko nasa 200+ pesos na shipping ng item via lbc. another 200+ pesos for shipping it back. much better kung bumili ka na lang ulet ng 2nd hand units baka mas makumura pa siya.
oo nga sir,,,meron ako kadeal tp link mr3220 v2.2 pwede po ba yun?
 

About this Thread

  • 2K
    Replies
  • 133K
    Views
  • 491
    Participants
Last reply from:
cxthiane

Online now

Members online
1,131
Guests online
1,104
Total visitors
2,235

Forum statistics

Threads
2,271,859
Posts
28,938,649
Members
1,237,885
Latest member
fdaadkfrtz2
Back
Top