Skip to main content
Post Undeleted by xavier_fakerat
Post Deleted by xavier_fakerat
added 126 characters in body
Source Link
xavier_fakerat
  • 10.2k
  • 6
  • 42
  • 103

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

     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
    

Edit

If you are not rooted you can use PdaNet+.

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

     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
    

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

     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
    

Edit

If you are not rooted you can use PdaNet+.

corrected bad formatting
Source Link
xavier_fakerat
  • 10.2k
  • 6
  • 42
  • 103

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

     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
    

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

     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
    

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

     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
    
added 97 characters in body
Source Link
xavier_fakerat
  • 10.2k
  • 6
  • 42
  • 103

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

    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

     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
    

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

    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

You could make your phone to act as a VPN Gateway

Requirements:

  • root
  • vpn server (can obtain any free openVPN from playstore)

Using a VPN gateway will make tethered traffic to go through the VPN.

Steps

  • Turn on portable hotspot

  • Open terminal as root and enter the following codes (you can paste them)

     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
    
Source Link
xavier_fakerat
  • 10.2k
  • 6
  • 42
  • 103
Loading