PDA

View Full Version : Connecting through the phone (VPN)



choshiiru
Oct 1, 2014, 12:03 AM
Has anyone here tried connecting to PSO2 using a VPN from a phone (namely [rooted] android phones) to a vita?

aduran
Oct 1, 2014, 01:39 AM
it works. i used hotspot shield from google playstore(not free for Japan VPN) and created a shell script on the phone with the following.

iptables --flush
iptables -A POSTROUTING -o tun0 -j MASQUARADE -t nat
iptables -A FORWARD -i tun0 -o wlan0 -m state --state RELATED,ESTABLISHED -j RETURN
iptables -A FORWARD -i wlan0 -o tun0 -m state --state INVALID -j DROP
iptables -A FORWARD -i wlan0 -o tun0 -j RETURN