1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Share VPN Connection via wifi hotspot

Discussion in 'Android Phones' started by wilsonyow, Nov 16, 2015.

  1. wilsonyow

    wilsonyow Enthusiast Established

    Hello Mga ka PH (y) meron akong ishishare na trick na aking nabasa Para ma share nyo ung connection ng free VPN nio.. Sundin nio lang po ito
    1.Kailangan rooted ang phone nyo
    2.Download kayo ng Terminal Emulator sa playstore
    3.Buksan nyo ung wifi hotspot tas i connect nyo narin ung vpn na gamit nyo
    4.Buksan ang Terminal emulator dun sa tabi ng "$" type nio "su" tapos enter pag may lumabas na root permission allow nio lang
    5.Pagkatapos nio i allow ung root permission type nio to sa tabi ng "#" "iptables -t filter -F FORWARD
    iptables -t nat -F POSTROUTING
    iptables -t filter -I FORWARD -j ACCEPT
    iptables -t nat -I POSTROUTING -j MASQUERADE
    ip rule add from 192.168.43.0/24 lookup 61
    ip route add default dev tun0 scope link table 61
    ip route add 192.168.43.0/24 dev wlan0 scope link table 61
    ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61"

    6.Tanggalin nyo nalang ung quotation then wag nio kalimutang isave ung code na yan sa notepad kasi kada reboot ng cp mo nawawala yan kailangan mo ulit gawin

    Un lang po sorry first time ko lang mag post :) pa feedback na lang salamat (y)(y):)
     
    mojako09 and werns_27 like this.
  2. knatskee77

    knatskee77 Addict Established

    nice, its a big help... salamat boss...
     
  3. wilsonyow

    wilsonyow Enthusiast Established

    Welcome boss :)
     
  4. Byaduria

    Byaduria Journeyman Established

    Salamat po sa pagshare ts
     
  5. wilsonyow

    wilsonyow Enthusiast Established

    welcome (y)
     
    Byaduria likes this.
  6. werns_27

    werns_27 Addict Established

    Testing mode salamat ts.
     
  7. mojako09

    mojako09 Addict Established

    Salamat sa share ts tagal na ako nag hahanap ng ganto salamat ulit.
     
  8. Procedure :;)
    1. You need a rooted device
    2. Download Terminal Emulator
    3. Activate your hotspot and connect to your VPN
    4. Launch Terminal emulator and on the first line type "su" (without the quotes) and press enter
    5. Copy and paste this to the Terminal Emulator, Make sure to Copy and Paste it at exact format as shown

    iptables -t filter -F FORWARD
    iptables -t nat -F POSTROUTING
    iptables -t filter -I FORWARD -j ACCEPT
    iptables -t nat -I POSTROUTING -j MASQUERADE
    ip rule add from 192.168.43.0/24 lookup 61
    ip route add default dev tun0 scope link table 61
    ip route add 192.168.43.0/24 dev wlan0 scope link table 61
    ip route add broadcast 255.255.255.255 dev wlan0 scope link table 61

    6. That's it :)
    NOTE: Repeat procedure after reboot to be able to Tether again .

    That's all

    Credits to XDA
     
    Odlanyer22 likes this.
  9. anokamo

    anokamo Eternal Poster Established

    thanks for sharing boss.
     
  10. Walang anuman boss :asmile:
     
  11. Cricketail

    Cricketail Addict Established

  12. Thanks sa share. Try ko to.
     
  13. Cge lang, working na working po yan :)
     
  14. This tutorial is so simple
    Direct to the point.

    ROOT is NEEDED


    First, Download Terminal Emulator from Playstore

    Second, Connect the VPN or any free net you have there.

    Third, Tether it Hotspot or Usb your choice

    Fourth, Open Terminal Emulator

    Fifth, Type "su" without Quotes, then enter

    Sixth, Copy Paste this

    Then Enter.


    Finished, It should work now.

    It resets after a reboot so, just do steps 2-6 after a reboot.
    Better save it on a memo or something in your Android Phone :)
     
    maxxine, db_9, hanneman and 8 others like this.
  15. Useful info, thanks :)
     
    Chidorigafuchi likes this.
  16. wiZka

    wiZka Forum Veteran Established

    Thanks for the infoshare tol!
     
    Chidorigafuchi likes this.
  17. TheGamerZ(2-D)

    TheGamerZ(2-D) Addict Established

    salamat boss sa info. ;)

    Ang gamit ko ngayun para tether is PdaNet.
     
    hanneman and Chidorigafuchi like this.