Help to configure Toyvpn Server Android

Asked

Viewed 66 times

1

Hello, I have a problem and I’m already 3 days looking for a solution, I hope someone can help me.

I’m trying to test the example of Android Toyvpn, but I’m not succeeding in server settings. The server file informs multiple IPS for modification but I don’t know how to configure.

My work environment is as follows:

I have a VPS server where is running Ubunto, is on it I want to install the server. In the settings ifconfig I have the following settings:

IP interno 10.0.239.17
Bcast 10.0.255.255
Mask 255.255.0.0

My public VPS IP is 54.174.69.244.

I have already disabled the VPS Firewall for testing, but without success. When I try to connect through Android client, I get the following message on the server:

tun0: Here comes a new Tunnel

and then the message:

tun0: The Tunnel is Broken

and I can’t connect to the VPN server.

Here is the tutorial with the commands inside the android example.

// # Enable IP forwarding
// echo 1 > /proc/sys/net/ipv4/ip_forward
//
// # Pick a range of private addresses and perform NAT over eth0.
// iptables -t nat -A POSTROUTING -s 10.0.0.0/8 -o eth0 -j MASQUERADE
//
// # Create a TUN interface.
// ip tuntap add dev tun0 mode tun
//
// # Set the addresses and bring up the interface.
// ifconfig tun0 10.0.0.1 dstaddr 10.0.0.2 up
//
// # Create a server on port 8000 with shared secret "test".
// ./ToyVpnServer tun0 8000 test -m 1400 -a 10.0.0.2 32 -d 8.8.8.8 -r 0.0.0.0 0
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.