Skip to main content
added 4 characters in body
Source Link
MariusMatutiae
  • 47.8k
  • 12
  • 82
  • 131
  ip route add default via x.w.y.z 
  ip route default via x.w.y.z 
  ip route add default via x.w.y.z 
added 1 character in body
Source Link
MariusMatutiae
  • 47.8k
  • 12
  • 82
  • 131

Your local network is 192.168.1.0/24, as showshown by this line in your routing table:

Your local network is 192.168.1.0/24, as show by this line in your routing table:

Your local network is 192.168.1.0/24, as shown by this line in your routing table:

added 262 characters in body
Source Link
MariusMatutiae
  • 47.8k
  • 12
  • 82
  • 131

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
  1. With the pc connected to the VPN, try the following command:

    sudo dhclient -v tun0
    
  1. 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
  1. 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.

  1. Use the tcpdump command:

    sudo tcpdump -n -i tun0

and see the IP addresses spewed out by the command.

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 connected to the VPN, try the following command:

   sudo dhclient -v tun0

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.

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. I will give you four methods to do this.

  1. With the pc connected to the VPN, try the following command:

    sudo dhclient -v tun0
    
  1. 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 a single reply, then that's your router.

  1. 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.

  1. Use the tcpdump command:

    sudo tcpdump -n -i tun0

and see the IP addresses spewed out by the command.

added 262 characters in body
Source Link
MariusMatutiae
  • 47.8k
  • 12
  • 82
  • 131
Loading
added 262 characters in body
Source Link
MariusMatutiae
  • 47.8k
  • 12
  • 82
  • 131
Loading
Source Link
MariusMatutiae
  • 47.8k
  • 12
  • 82
  • 131
Loading