eBay Suspension & PayPal Limited Forums  
Join Today
Register Subscribe
     

Registration is fast, simple and absolutely free so please, join our community today!


Go Back   Home

eBay Suspended & PayPal Limited Forums

eBay Suspended & PayPal Limited Forums (https://www.aspkin.com/forums/)
-   IP Address (https://www.aspkin.com/forums/ip-address/)
-   -   Turning A Flashed to Verizon Android Phone Into A VPN Server (https://www.aspkin.com/forums/ip-address/109249-turning-flashed-verizon-android-phone-into-vpn-server.html)

nate 07-28-2017 09:33 AM

Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Verizon VPN?

I wish I was able to tell you how to do it right now...

I'm just wondering if anyone here has turned a Android device into a VPN server that works flawlessly so I can get a better idea of how to go about it?

I know what your thinking... its a lot of work for a 3g connection. What I'm thinking is it's a server for $5 a month, with thousands of RESIDENTIAL IP'S (not data-center ip's). Which would be optimal for account creation. Plus these flashed to 3G devices barley get signal where I'm at. After 90 days I can make accounts a VPN connection using a data center ip.

I see there are a few different ways to do this. All requiring root...
Im trying to figure out if I should try an app like Servers Ultimate Pro using openVPN...

Or if I should install Linux on the phone. I'm thinking if I install Linux using Linux Deploy and Busy Box it might be possible to run Softether VPN server. There is a ARM version of SoftEther for Linux.

Multiloginapp already gave the instruction on how to toggle airplane mode on/off remotely with Tasker & Notify My Android so that work is done.

He also gave the instructions on how to do this ( MRI Method ) but his way required a VPS and a back-connected proxie to the cellular connection. I believe it can be done without the use of a VPS.

empirestate 07-28-2017 11:01 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Too much work, why not just tether? Just toggling airplane mode gives you a new IP, nuff said....

phaz0rz 07-28-2017 01:53 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Can you clarify what exactly you are trying to do?

By turning the phone into a VPN server, wouldn't the VPN IP address be the same IP as if you were to tether? I can't see any pro's for going the server route other than it would be mildly cool.

nate 07-28-2017 02:35 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by empirestate (Post 861638)
Too much work, why not just tether? Just toggling airplane mode gives you a new IP, nuff said....

You cant be serious...
I'm looking for at least Tier 2 support here...

empirestate 07-28-2017 02:38 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by nate (Post 861680)
You cant be serious...
I'm looking for at least Tier 2 support here...

Not when you have a Tier -100 question.
__________________
How to use Paypal correctly
Run multiple portable Firefox, 1 user account
How to add new PP to eBay

nate 07-28-2017 03:05 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by phaz0rz (Post 861675)
Can you clarify what exactly you are trying to do?

By turning the phone into a VPN server, wouldn't the VPN IP address be the same IP as if you were to tether? I can't see any pro's for going the server route other than it would be mildly cool.

Mildly cool? Think of the possibilities. You can't deny it'd be a nice tool to have in the arsenal. [edit] let me add I realize its over kill for this form of stealth.

I'm trying to leave the phone 1,600 miles away. While using it as if it were in front of me.

Different locations give different blocks of IP's. As we all know 1 Flashed to Verizon 3G phone gives thousands of Residential ip's. Another issue that has me looking into this is Verizon has started closing this exploit this year. For instance this service doesn't work from Miami to Daytona with two exceptions of Vero Beach & Melbourne on Interstate 95. That's somewhere around a 300+ mile dead zone with two small spots of coverage.

I'm sure we can all agree that creating an account with a residential ip is optimal.

AT&T gives about 250 residential ip's this I know for sure. I can only guess T-Mobile and Verizon 4G is the same. It's easy to run through those 200+ ip in a matter of months. I'm looking into options to safe guard the future.

From the research I've done so far its not impossible for me to figure out. There's quite a few guides out there and I'm very comfortable with SoftEther server. So its all relative. I'm just trying to decide which way to go about it.

I love solving these kind of puzzles as I'm sure others here do too. If nothing else just for the thrill. If it beats me... I move on.

empirestate 07-28-2017 03:25 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
First Residential IPs are TOTALLY different than mobile 3g/4g IPs.

Mobile phones DO NOT give Residential. Residential IPs are the ones you get from Time Warner, Comcast etc...

It's great I'm running one myself, thousands of miles away. 3G connection is too slow, must upgrade to 4G unlimited data and you are all set mate.

__________________
How to use Paypal correctly
Run multiple portable Firefox, 1 user account
How to add new PP to eBay

nate 07-28-2017 04:11 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by empirestate (Post 861693)
First Residential IPs are TOTALLY different than mobile 3g/4g IPs.

different maybe. data center ip? NO.

Quote:

Originally Posted by empirestate (Post 861693)
Mobile phones DO NOT give Residential. Residential IPs are the ones you get from Time Warner, Comcast etc...

Show me your source. Give me a link. Here, let me help you learn something. You can write a [guide] on it later. https://multiloginapp.com/datacenter...al-ip-proxies/ It's common sense, cellular ip's are categorized the same as residential ips by EB & PP but don't take my word for it. Take the word of the app dev. that gave us canvas defender.

Quote:

Originally Posted by empirestate (Post 861693)
It's great I'm running one myself, thousands of miles away. 3G connection is too slow, must upgrade to 4G unlimited data and you are all set mate.

Now your trolling me... You would have made a [GUIDE] on it by now I'm sure of that. If you actually take the time to write guides on simple s**t. You'd love to get credit for some genius s**t.

empirestate 07-28-2017 04:40 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by nate (Post 861711)
Now your trolling me... You would have made a [GUIDE] on it by now I'm sure of that. If you actually take the time to write guides on simple s**t. You'd love to get credit for some genius s**t.

For you to ABUSE? No thanks...
__________________
How to use Paypal correctly
Run multiple portable Firefox, 1 user account
How to add new PP to eBay

TOOKNAPA 07-28-2017 09:47 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
very interesting topic, but it looks going nowhere ..

nate 07-29-2017 12:22 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
This is for fun... Not at all necessary to run stealth.

I wasted the last 24hrs trying to figure out how to root this phone just to find out it already has Root access.

I guess that's good news. One less thing to figure out. If you order one of these flashed phones it most likely already has root access in order to get the wifi hotspot to work.

I guess I'm going to try the app Ultimate Server Pro with Servers Ultimate Pack A first. For $8.95 if it saves me time its worth it. If it doesn't work, it's only a $9 loss.

This application would be best case scenario because you could connect to WiFi and leave the phone anywhere... run on battery if needed. If this doesn't work or is too hard to figure out I came up with Plan B. Add a Raspberry Pi to the mix. But then a power supply would be needed. The phone could charge off the usb. SoftEther will run off Raspbian no problem and there are countless guides out there.

empirestate 07-29-2017 03:31 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Yo, link some of those guides so I can do them all.

nate 07-30-2017 03:09 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
I'm not sure if SoftEther can run on Linux Deploy. I rooted a galaxy s4 with odin3 and installed linux deploy, busybox (the correct busybox by meefik) and android terminal emulator. I tried two installs. CentOS and Deblian. For what ever reason yum and apt-get aren't found. So I couldn't get development tools, GCC or Libpcap. All I get is a error message "tmp-mksh: yum or apt-get not found". This should have been the easy part.

There is no sudo either, instead you have to run the cmd: su (for SuperSU) That didnt do sh#t.

I was able to download SoftEther Server using wget and was able to extract the tar. I can cd into vpnserver but it wont let me execute the make file. All I get is tmp-mksh: make not found. So I hit a dead-end there. It might be possible but the config isn't going to go the way its suppose to without fixing alot of missing sh#t and moving files around.

I also downloaded the server ultimate pro app & the Pack A with VPN server. I haven't set it up yet but I see there is only one way to connect to it by using a openVPN client. The problem is you have to manually set the public ip address on the server side so there would be no switching ip's without having access to the server device.

If you wanted to connect to WiFi somewhere and leave the server phone there it would work, but its almost pointless. Unless you used it for something other than to get a ip address.

I know the raspberry pi would work just to get cellular ip's remotely. It'd be too bulky to hide somewhere though. Plus it needs a power supply. Maybe this is why multilogin's MRI method used another server as well.

nate 07-30-2017 10:54 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
To clarify yum was installed in CentOS and apt-get was installed in Debian. While the OS is building the're downloaded and installed so I have no idea why they cant be used or found.

The only thing I couldn't get to go right on install was I couldn't install as chroot. It would only let me install as proot. I checked to make sure I have full root access to the phone and supposedly I do so I'm not sure why. I even disabled Knox. Everything else that needed root worked.

And like I said if I run cmd as "su' it gives me root access in the terminal.

Another problem I had was I couldn't ssh into the phone over LAN with a PC. I set up SSH to run on port 22 at startup but I kept saying access denied when I tried to Putty into it. SSH would start on startup but when I'd run a status check it say it had stopped. Android Terminal Emulator is able to connect using it though so I have no clue what was going on there.

I didn't want to trial run this on the flashed phone in case it bricked so I used a spare galaxy I had using WiFi.

nate 07-30-2017 07:02 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
I finly got linux deploy to act right. Because I got root with SuperSU I had to go into SuperSU settings and uncheck Mount namespace separation. I also had to go in to Busy Box and get the install location ( /system/xbin ). Then back into Linux Deploy settings and add Busy Box's install location in Path Variable and Update the ENV (operating enviroment). Then Reboot...

Then to get root privileges I had to change the username in Linux Deploy to root and set username password. This had to be done before the Linux install other wise there was no way to get root.

This allowed me to do the Linux install as chroot. After that every thing ran smooth like a normal server. I was able to ssh into the cell through my pc.

The only differences I ran into from a VPS was that I had to install wget, and when I went to add the vpnserver config with vi editor I had to use the sudo cmd. "sudo vi /etc/init.d/vpnserver" to be able to write the file.

After that the server started and I set up the virtual hub and connection.

The problem with this test is it's only on LAN because the Galaxy doesn't have service. But it's Fact.. You can set up SoftEther server on a cell using Linux Deploy and Busy Box. I'm just still not sure how or if it would work with a cellular connection.

https://image.ibb.co/dQ0Gc5/cell.jpg
https://image.ibb.co/gaoNjk/11.jpg
https://image.ibb.co/nLVMAQ/vpn_conn.jpg

empirestate 07-30-2017 07:24 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Lots of tutorials on the web KEEP READING, you'll get there..eventually
__________________
How to use Paypal correctly
Run multiple portable Firefox, 1 user account
How to add new PP to eBay
How to clean photos
Best image resizer

nate 07-30-2017 07:56 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
SoftEther Server run on Linux Deploy. Post a link. Show me My Google skills are str8 trash. If you can find one tutorial Ill give u that...

empirestate 07-30-2017 08:04 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by nate (Post 862167)
SoftEther Server run on Linux Deploy. Post a link. Show me My Google skills are str8 trash. If you can find one tutorial Ill give u that...

Not with that attitude, all you get from me is $hit.
__________________
How to use Paypal correctly
Run multiple portable Firefox, 1 user account
How to add new PP to eBay
How to clean photos
Best image resizer

nate 07-30-2017 08:29 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by empirestate (Post 862170)
Not with that attitude, all you get from me is $hit.

Yea, exactly... Because there is none... :yar:

I just installed Linux Deploy on the flashed phone and it gives Linux the public IP address. So as long as this sh$tty LG phone can handle it... It WILL work as a Standalone VPN Server. Along with any Android with cellular connection you can fully root and run Linux Deploy on.

https://image.ibb.co/hLioPk/20170730_210515.jpg

empirestate 07-30-2017 08:31 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Do you need root to install and run that?

nate 07-31-2017 03:22 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
I got it. It works...

On this flashed to Verizon LG Optimus Zone 2 (I can't believe it worked on this $hitty phone) I ran into some different problems with missing packages. Root was gained with Towelroot so there wasn't any settings I had to change there. It just worked.

I installed CentOS 7 no problem, but I think it skipped a couple packages.

When installing SoftEther Server I had to install wget to download SoftEther server.

Then when I went to execute the make file it gave error so I had to install make "yum install make" to solve that problem.

When I went to chmod permissions to vpncmd & vpnserver I got errors. After a lot of google searches I had to install openssl-devel "yum install openssl-devel" to solved that problem.

I had to use sudo cmd again to write the softether config to /etc/init.d/vpnserver

after that I ran the start cmd and the server started up same as before, no issues.

Setting up SoftEther Server Manager & Client took some trial and error because Im working with a dynamic ip. SoftEther has Dynamic DNS Setting.

Dynamic DNS
The Dynamic DNS function assigns a world-wide unique identifier on your SoftEther VPN Server. Your global IP address of SoftEther VPN Server will follow dynamic IP address changes. If the IP address of SoftEther VPN Server suddenly changed, the IP address record which is registered to the Dynamic DNS hostname changes automatically and immediately. A VPN client user can specify the Dynamic DNS hostname as the destination VPN Server's hostname instead of the IP address. VPN Clients and VPN Bridges can keep stable connections to your SoftEther VPN Server even if the server-side Internet connection is not a static IP address contracts.

Not only do you have to use the DNS hostname for ip in SoftEther Client, but you also have to use it in VPN Manager as the VPN Server Hostname.

It takes about 90 seconds for the ip to be updated after a ip change in order to reconnect.

https://image.ibb.co/k6XNKk/11.jpg

https://image.ibb.co/kjrGek/20170730_210515.jpg

empirestate 07-31-2017 03:34 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 

nate 07-31-2017 05:05 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Slower... Yes, this is fact... But now Verizon can suck my D*CK... I have a family member in another state this server's going to with a Verizon Tower practically in their back yard. If I need it, I'll never run out of cellular IP's to do what ever I need to do with.

If anything stealth related, it'll only be to get past the 90 day mark.

I have two LG Zone 2's and a JetPack 4620L. @ $5 a month this LG I just turned into a VPN server was only collecting dust on my desk.

nate 07-31-2017 09:30 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
This method to toggle data on and off remotely with Tasker & Notify My Android works perfect on this flashed to Verizon CDMA phone that I just turned into a VPN Server.

It's easy to follow. The only thing is there is no save button in Tasker like stated in these directions. You have to hit the back arrow in the upper left corner of Tasker screen, that's what saves the info.

The link with the API key, you save to your computer. You copy and paste it in the address bar of your browser and open the link. That's what sends the cmd to toggle data on and off. You can book mark the link hitting it when you want to change ip address.

This works fast... Way faster than toggling airplane mode on and off. It drops connection and picks it back up in about 1-2 seconds.

I'm copying and pasting this info from MultiLoginApp's Blog page.

Controlling IP releases remotely

If you plan to access the mobile connection remotely, you should learn how to control the IP releases without having a direct access to the phone. Below we explain how you can “tell” your phone to get a new IP address by simply opening a link in a browser.

First of all, to set everything up you need two Android applications:

Tasker – paid app, which costs €2.99 at the time of writing
Notify My Android – you will need the premium version, which costs $4.99 at the time of writing
To set everything up, just follow the instructions bellow:

Install Tasker and Notify My Android apps on your mobile phone with 3G/4G internet connection
Create a Notify My Android Account with API link
Go to http://www.notifymyandroid.com
Register an account
Upgrade to premium
Generate a new API key here
Copy the API key, it should be something like this
75670exs4fed1f042347c62df321afss2525f99f5123377e
Insert your new API key in this formatted link
-https://www.notifymyandroid.com/publicapi/notify?apikey=[INSERT_API_KEY_HERE]&application=android&event=restart&description=res tart
You should have something like this (this your API link):
-https://www.notifymyandroid.com/publicapi/notify?apikey=75670exs4fed1f042347c62df321afss2525 f99f5123377e&application=android&event=restart&des cription=restart
Go to Notify My Android app and log in to your account
Setup your Tasker profile
Go to the Tasker app
Click add profile (The plus icon on the bottom)
Choose “Event” -> 3rd Party -> Notify My Android
Write the following strings in the fields
App: android
Event: restart
Description: restart
Save
Click “New Task” -> add a name for the task “Data Restart” -> Save
Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Add the same task one more time: Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Let the Tasker App run on background
And you are ready! Now, whenever you open your API link in a browser, the app will notify Tasker to restart your mobile internet connection. A new IP address will be assigned to your phone then. You can be thousand miles away from your phone, however, if you access that link – your mobile internet connection will always restart.
Troubleshooting and tips

Use higher performing Android devices for better execution. Sometimes apps may crash on older phones.
With some Android phones you will not be able to get a new IP address by simply restarting the data settings. However, switching airplane mode on and off also gets you a new IP every time. This method seems to be more consistent across different devices. You can automate this task with Tasker as well. Just follow these instructions when setting up a task for your profile:
Click “New Task” -> add a name for the task “Data Restart” -> Save
Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Airplane mode -> In “Set” field chose Toggle -> Save
Add the same task one more time: Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Airplane mode -> In “Set” field chose Toggle -> Save

Here is a link to the original source:
https://multiloginapp.com/how-to-hid...omplete-guide/

phaz0rz 08-01-2017 08:09 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Dude, that's awesome. So cool to watch you work through it. Going to set this up ASAP.

nate = networking god.

AK81 08-01-2017 08:23 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Again Nate, fantastic thread. I had never thought of taking advantage of a dongle like that, its actually quite clever. Some people dont realise how important a residential IP can be when introduced into stealth setups.

Granted its not necessarily essential but its about doing/learning/experimenting/bettering yourself. You remind me a lot of myself to be honest Nate, keep up with your work arounds, experiments and projects you will learn a lot (although you do have a fairly high level of competence already).

nate 08-01-2017 08:34 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by phaz0rz (Post 862454)
Dude, that's awesome. So cool to watch you work through it. Going to set this up ASAP.

There isnt anything as fulfilling as solving these puzzles. Watching all the scripts run when you use the right commands, or figure out what is missing that isn't allowing them to run.

It's actually not all that difficult because there are no IP routes involved. The hard part is getting Linux to act right on the phone. It likes to skip packages on install for what ever reason. I installed Linux over WiFi so the internet connection wasn't the problem there.

The issue I'm having now is for some reason SoftEther isnt starting on start up. I get Linux to auto start with a 30 second delay once the phone is turned on.

All the other apps (tasker & notify my android) start in the background no problem.

And you can't ssh into the phone through the cellular connection to start it in the cmd line. Only way to ssh into it is through LAN so far.

It still needs work.

A few weeks ago SoftEther Client for Linxu beat me. I couldnt get the IP routes right for anything. It would show connected in vpncmd. But when I'd check my ip address on whoer.net, my pc wasn't using the vpn. The connection was getting lost somewhere after the virtual network adapter. I tried every ip route set up I could find online for my application and I still couldn't get it to work. I finely just gave up. Connecting with L2TP/ipsec was way easier to figure out on Linux.

yankee 08-01-2017 08:39 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
This thread is very interesting. I do not understand any of this(nor do I desire to) and I am having a hard time seeing the value but I appreciate the dedication and passion you are putting into this Nate!

nate 08-01-2017 09:07 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by yankee (Post 862457)
This thread is very interesting. I do not understand any of this(nor do I desire to) and I am having a hard time seeing the value but I appreciate the dedication and passion you are putting into this Nate!

Consider it similar to playing with a Rubiks Cube, but actually has some function.

MM78 08-01-2017 05:31 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
And Nate can thank me for the inspiration!

nate 08-02-2017 10:10 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by MM78 (Post 862568)
And Nate can thank me for the inspiration!

This is true... A year ago I had no idea what a terminal looked like. If it wasn't for learning VMware 1st, there's no way. You cant really experiment with out a clone.

I still haven't figured out how to get SoftEther to Auto Start on start up.

I did figure out if I changed the SSH port to 443 I can SSH into the phone through the cellular connection. (you can't close port 443 without breaking the internet). Then I can start SoftEther server through ssh remotely. This is not optimal because you still need to know the public ip address.

I realized CentOS 7 arm7v sucks. It has all kinds of missing packages. It works better to use Debian stretch (the Linux Deploy default OS).

I also ran into problems with storage space too. Supposedly you can install it on a SD card, I got it to work once with 3 partitions. Fat32 4500mb/Ext4 2500mb/Swap 500mb (I saw it in a YouTube video). But had issues with the SD card unmounting in the middle of my softether install, Then I tried to reinstall again the same way and couldn't get Linux to install. So I gave up on that. I seems Debian stretch and the tools I needed were smaller so it worked with the space I had. (A little over 1GB)

If someone could solve why SoftEther wont Auto Start it'd be great....

I registered the start up script no problem and I didn't notice any missing packages or errors on install of Linux or tools so I can't figure it out. This is the example start up script from softether I've been using. It states that it may need to be modified for your system. I also had to make the /var/lock/subsys/vpnserver directory. Other than that every thing ran smooth, no missing packages that I saw, using Debian Stretch. With Debian Stretch you cant use username root. You have to make a normal user then use the sudo cmd.

#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0

nate 08-03-2017 05:28 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
[SOLVED]

I finely got it working 100%...

I almost give up on this. I've been working on this none-stop for about 4 straight days and feel ate up like I ate a ten pack of ecstasy and had a freak session.

I got it working using Debian 9 (Stretch). The original problem I was having with the init.d script not running on CentOS 7 was partly because chkconfig was unavailable. (chkconfig is on its way out all together).

I ended up learning a lot about automating startup scripts F*ckin with this...

The Linux Deploy default distro was Debian 9 so i assumed it was the most stable. I had to find a new init.d script for Debian without chkconfig. I ended up using one I found on Git (1st one on Google search).

#!/bin/sh
### BEGIN INIT INFO
# Provides: vpnserver
# Required-Start: $network $remote_fs
# Required-Stop: $network $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: SoftEther VPN Server
### END INIT INFO

DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver
test -x $DAEMON || exit 0
case "$1" in
start)
$DAEMON start
touch $LOCK
;;
stop)
$DAEMON stop
rm $LOCK
;;
restart)
$DAEMON stop
sleep 3
$DAEMON start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0


I kept having problems so I tryed changing the Usage: $0 to Usage: sudo /etc/init.d/vpnserver thinking it was something to do with not having root access. It didn't work. (Although I never changed it back so my working model has this line of script). Everything else looked good. After update-rc.d vpnserver defaults I had permissions to start on rcS.d rc2.d rc3.d rc4.d rc5.d and I had stop on rc0.d rc1.d rc6.d

Very Very Long story short, I ended up realizing there is a option in Linux Deploy to choose whether or not to run init.d scripts. Obviously this has to be enabled for them to run. For the Init System I had to choose sysv. (I had previously already installed sysv-rc-conf... So I'm not sure if it's necessary). I think its just a cmd line GUI though. For what ever reason the default Init System, run-parts, didn't work for me. The Init level can be the default of 3. And the Init user must be root.

This thing is bad ass. Because SoftEther has DNS hostname and tunnels through 443 it will tunnel straight through a router. You can leave the phone anywhere connected to wifi and you WILL find the server.

Also I realized you can SSH into the phone through port 80 remotely on cellular connection if you needed to. Using port 443 was no good and caused errors with the server I couldn't fix.

You have to love Linux, when all the stars align, it does exactly what you want it to...

You can see by the second to last line that vpnserver init.d ran on reboot.
vpnserver .... done

https://image.ibb.co/dH18ev/123.jpg

[edit]
I want to add, Linux Deploy is amazing. You can f#uck it all up... delete the image... uninstall Linux Deploy... reinstall and start fresh without any worry of bricking your device. I must have reinstalled 50 times. I did it so many times I can configure softether off memory without looking at a script.

nate 08-04-2017 02:58 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
I've been setting this up on the Galaxy S4. If you have a phone with Knox, you might as well forget about using Debian. You wont be able to achieve root even with sudo cmd. At least not without a good amount of research and some luck.

The work around I found was to use CentOS 7. Like I wrote earlier you can set username as "root" and set username passwd to get root access with this distro on install. I was completely wrong about chkconfig not being included in the packages. Its there. The issue that was preventing the init script from running was the Init setting in Linux Deploy.

With CentOS its the same init settings as Debian.

Init > enable

Init system > sysv

Init settings:
Init level > 3
Init user > root
Async > enable

I think this took up about 2GB of space.

nate 06-09-2018 08:35 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by nate (Post 862392)
This method to toggle data on and off remotely with Tasker & Notify My Android works perfect on this flashed to Verizon CDMA phone that I just turned into a VPN Server.

It's easy to follow. The only thing is there is no save button in Tasker like stated in these directions. You have to hit the back arrow in the upper left corner of Tasker screen, that's what saves the info.

The link with the API key, you save to your computer. You copy and paste it in the address bar of your browser and open the link. That's what sends the cmd to toggle data on and off. You can book mark the link hitting it when you want to change ip address.

This works fast... Way faster than toggling airplane mode on and off. It drops connection and picks it back up in about 1-2 seconds.

I'm copying and pasting this info from MultiLoginApp's Blog page.

Controlling IP releases remotely

If you plan to access the mobile connection remotely, you should learn how to control the IP releases without having a direct access to the phone. Below we explain how you can “tell” your phone to get a new IP address by simply opening a link in a browser.

First of all, to set everything up you need two Android applications:

Tasker – paid app, which costs €2.99 at the time of writing
Notify My Android – you will need the premium version, which costs $4.99 at the time of writing
To set everything up, just follow the instructions bellow:

Install Tasker and Notify My Android apps on your mobile phone with 3G/4G internet connection
Create a Notify My Android Account with API link
Go to http://www.notifymyandroid.com
Register an account
Upgrade to premium
Generate a new API key here
Copy the API key, it should be something like this
75670exs4fed1f042347c62df321afss2525f99f5123377e
Insert your new API key in this formatted link
-https://www.notifymyandroid.com/publicapi/notify?apikey=[INSERT_API_KEY_HERE]&application=android&event=restart&description=res tart
You should have something like this (this your API link):
-https://www.notifymyandroid.com/publicapi/notify?apikey=75670exs4fed1f042347c62df321afss2525 f99f5123377e&application=android&event=restart&des cription=restart
Go to Notify My Android app and log in to your account
Setup your Tasker profile
Go to the Tasker app
Click add profile (The plus icon on the bottom)
Choose “Event” -> 3rd Party -> Notify My Android
Write the following strings in the fields
App: android
Event: restart
Description: restart
Save
Click “New Task” -> add a name for the task “Data Restart” -> Save
Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Add the same task one more time: Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Let the Tasker App run on background
And you are ready! Now, whenever you open your API link in a browser, the app will notify Tasker to restart your mobile internet connection. A new IP address will be assigned to your phone then. You can be thousand miles away from your phone, however, if you access that link – your mobile internet connection will always restart.
Troubleshooting and tips

Use higher performing Android devices for better execution. Sometimes apps may crash on older phones.
With some Android phones you will not be able to get a new IP address by simply restarting the data settings. However, switching airplane mode on and off also gets you a new IP every time. This method seems to be more consistent across different devices. You can automate this task with Tasker as well. Just follow these instructions when setting up a task for your profile:
Click “New Task” -> add a name for the task “Data Restart” -> Save
Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Airplane mode -> In “Set” field chose Toggle -> Save
Add the same task one more time: Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Airplane mode -> In “Set” field chose Toggle -> Save

Here is a link to the original source:
https://multiloginapp.com/how-to-hid...omplete-guide/

Just to somewhat keep this up to date, Notify My Android has closed shop on May 25th 2018 due to the new EU General Data Protection Regulation (GDPR) regarding the way this regulation requires businesses to protect the personal data and privacy of EU citizens for transactions that occur within EU member states.

If anyone comes across this thread and still wants to set this up you can now set Tasker to respond to a SMS text message sent to the phone.

Setup your Tasker profile
Go to the Tasker app
Click add profile (The plus icon on the bottom)
Choose “Event” -> Phone -> Received Text
Write the following strings in the fields
Type: Any
Sender: <enter the phone number of the phone you will be sending the text from to toggle data and change IP>
Content: <is optional>
Save


Click “New Task” -> add a name for the task “Data Restart” -> Save
Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Add the same task one more time: Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Let the Tasker App run on background
And you are ready! Now, whenever you open your API link in a browser, the app will notify Tasker to restart your mobile internet connection. A new IP address will be assigned to your phone then. You can be thousand miles away from your phone, however, if you access that link – your mobile internet connection will always restart.

nate 06-09-2018 10:16 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by nate (Post 924505)
Setup your Tasker profile
Go to the Tasker app
Click add profile (The plus icon on the bottom)
Choose “Event” -> Phone -> Received Text
Write the following strings in the fields
Type: Any
Sender: <enter the phone number of the phone you will be sending the text from to toggle data and change IP>
Content: <is optional>
Save

You can also use K-9 email app to send the signal to tasker to reset the data connection and change IP... This works better for flashed to Verizon 3G phones because for $5 a month it turns out you can not except any text messages... Unless its the day your bill is due and you add the $5 refill card. Then you can get texts up until midnight.

Set up K-9 to work with the email you want to use... Then....

Setup your Tasker profile
Go to the Tasker app
Click add profile (The plus icon on the bottom)
Choose “Event” -> 3rd Pary -> K9 Email Received
Fill in the strings in the fields with what you want to use... I only use the subject feild so I can send the email from any account Im using.
From: <optional> I leave blank
Subject: data reset <optional> I use: datareset
Receiving Account: <optional> I leave blank
Save

ebaystealth1974 06-09-2018 12:31 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Awesome stuff!

I just laugh at empire pretending he understands the first thing about any of this lol

yankee 06-09-2018 06:25 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by ebaystealth1974 (Post 924528)
Awesome stuff!

I just laugh at empire pretending he understands the first thing about any of this lol

This is in Arabic to me lol

nate 06-09-2018 09:25 PM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
True that... I just read through this thread again. I have a much better understanding of Linux than I did then... I was working through it but had no idea what the hell I was talking about or what was going on and why things weren't working. Some of the things I said were incorrect but for this project there was no point in correcting myself because it was irrelevant.

This project I did last year taught me so much about Linux and VPN's. It was worth it for just the knowledge I gained alone...

Now I'm trying to figure out exactly how it is that SoftEther VPN Client is able to hide all the ways a VPN is detected. (except for MTU not being 1500) And see if I can't get OpenVPN to be undetectable for the ChromeBook users that cant use SoftEther Client

OpenVPN and L2TP/IPsec are easily detectable. I've tried using all different ports for OpenVPN but somehow whatleaks.com always seems to detect the VPN tunnel even if I pass it through TCP 443.

L2TP/IPsec might be better for a VPN client just for the fact that it would look more like a business PC running Linux... Lots of businesses use Cisco... OpenVPN... Not so much....

nate 06-12-2018 01:18 AM

Re: Turning A Flashed to Verizon Android Phone Into A VPN Server
 
Quote:

Originally Posted by nate (Post 924568)

Now I'm trying to figure out exactly how it is that SoftEther VPN Client is able to hide all the ways a VPN is detected. (except for MTU not being 1500) And see if I can't get OpenVPN to be undetectable for the ChromeBook users that cant use SoftEther Client

OpenVPN and L2TP/IPsec are easily detectable. I've tried using all different ports for OpenVPN but somehow whatleaks.com always seems to detect the VPN tunnel even if I pass it through TCP 443.

Answer: SSL

Solution: stunnel


All times are GMT -5. The time now is 04:18 PM.

vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Ad Management by RedTyger


All times are GMT -5. The time now is 04:18 PM.


Stop the guessing games and learn how you can quickly and easily get back on eBay today!
Read the best selling step-by-step eBay Suspension guide eBay Stealth!
Rotating Residential Proxies? Head to IPBurger for Residential Proxies
vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
Ad Management by RedTyger