First, you need to find out whether there is a gateway willing to accept your connection on the other side, because we need its IP address. With the pc connectedI will give you four methods to the VPN, try the following command:do this.
sudo dhclient -v tun0
With the pc connected to the VPN, try the following command:
sudo dhclient -v tun0
Alternatively, you may try navigating to one of the allowed sites (those that appear in your routing table as going through the tun0 interface), then issuing the command:
ip neigh show
You should get a list of pcs contacted through the ARP protocol, with MAC and IP address; most likely, you will receive either zero or one reply. If you get no sucha single reply, then you may try withthat's your router.
sudo nmap -sn 10.0.0.0/8
If you get no such reply, then you may try with
sudo nmap -sn 10.0.0.0/8
(which is going to be very slow). Your gateway will be one of the pcs listed, most likely the one with address ending in .1 or in .254, if any such exist.
Use the tcpdump command:
sudo tcpdump -n -i tun0
and see the IP addresses spewed out by the command.