Jump to content
Sign in to follow this  
g1eagle

PIA Open VPN

Recommended Posts

Alright, so I've managed to get OpenVPN to work on the Nano.. I even managed to get it to connect to PIA.

However the moment the connection establishes I lose the internet. I'm pretty sure this is a routing issue. 

But I'm unsure of what I need to add to the config file to fix the issue upon connecting. This is the result of the IP config table after it establishes a connection. 

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         10.24.10.5      128.0.0.0       UG    0      0        0 tun0
default         192.168.2.5     0.0.0.0         UG    0      0        0 wlan1
10.24.10.1      10.24.10.5      255.255.255.255 UGH   0      0        0 tun0
10.24.10.5      *               255.255.255.255 UH    0      0        0 tun0
128.0.0.0       10.24.10.5      128.0.0.0       UG    0      0        0 tun0
162.216.46.86   192.168.2.5     255.255.255.255 UGH   0      0        0 wlan1
172.16.42.0     *               255.255.255.0   U     0      0        0 br-lan
192.168.2.0     *               255.255.255.0   U     0      0        0 wlan1
192.168.2.5     *               255.255.255.255 UH    0      0        0 wlan1
 

I would like to connect to the router using Wan1, and then connect to Wan0 with my laptop or other internet devices during traveling and still run my traffic over an encrypted VPN. 

any suggestions?

 

Share this post


Link to post
Share on other sites

can you run this command and post the output?

# iptables-save | grep -e FORWARD -e POSTROUTING

Share this post


Link to post
Share on other sites

Kdodge

I ran the command before and after I connected the VPN. The command gave no output either time. 

3 hours ago, kdodge said:

can you run this command and post the output?


# iptables-save | grep -e FORWARD -e POSTROUTING

 

 

Share this post


Link to post
Share on other sites

My thoughts are that you might be missing forwarding rules for iptables. You don't have to list the output, but can you run

# iptables -L -n


if the output is empty with just
Chain INPUT (policy ACCEPT)
Chain FORWARD (policy ACCEPT)
Chain OUTPUT (policy ACCEPT)
then you probably need to add a few iptables rules (most likely POSTROUTING)

also is Wan0 in managed mode or master mode (is it acting as an AP or a client STA)?
you can check with:

iwconfig wlan0


again, you don't have to post the output, just check the mode. probably the wlan1 too while your at it.

  • Upvote 1

Share this post


Link to post
Share on other sites

@g1eagle can you please explain

1. How you got openvpn working on the nano?
In Darren's video he does ssh into the pineapple then " wget http://swupdate.openvpn.org/as/openvpn-as-2.1.1-Ubuntu14.amd_64).deb" onto the pineapple.

then uses 'dpkg' while ssh'd into the pineapple -- only problem is dpkg is not part of the installed applications on the pineapple, only 'opkg' is which doesn't install the deb file...so confused as to how he got that file installed.

when I enter:

dpkg -i openvpn-as-2.1.1-Ubuntu14.amd_64.deb

I get:
-ash: dpkg: not found

ANY HELP WOULD BE APPRECIATED!

2.What process did you follow to get PIA working?
I can't seem to get the config file loaded, although it could just be because openvpn's deb file isn't installed.
When I enter openvpn as a command it seems to recognize it as an installed application though - but I can't call up help, it says "Usage message not available"

 

If anyone can point me in the right direction I would appreciate it!:huh:

HN

 

 

 

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...