Jump to content
barry99705

OpenVPN with user/pass?

Recommended Posts

Any idea how I'd go about setting up the payload to work with a user/pass with openvpn?  My pfsense firewall already has it set up that way.

Share this post


Link to post
Share on other sites

Usually you can add to you .ovpn config file

auth-user-pass login.txt

login.txt contains your credentials:

username
password

I can not test this because my PC is still traveling to me... I CANT WAIT :D

Share this post


Link to post
Share on other sites

Cool.  I'll give that a shot later today.  Hanging a couple TVs at a client site, I can borrow their network for testing.

Share this post


Link to post
Share on other sites

this is what I did for managing multiple openvpn setups so I didnt have to go through and set all that in each file.

Share this post


Link to post
Share on other sites

Didn't work.  I'll have to figure a way to test it from home so I can watch the logs on the firewall.

Share this post


Link to post
Share on other sites

My bad, it does work.  Getting 6mbps down and 8mbps up with the squirrel.  19mbps up and down directly connected.  

  • Like 1

Share this post


Link to post
Share on other sites

can I ask where did you have problem which you then solved? I want to connect my PC to VPN using login+password, but something is failing and I don't know what. I've updated Squirrel to 1.1; copied config.ovpn to /root/payloads/switch3/config.ovpn; added "auth-user-pass login.txt", created /root/payloads/switch3/login.txt with
 

username
password

updated payload.sh to the newest https://github.com/hak5/packetsquirrel-payloads/blob/master/payloads/library/remote-access/openvpn/payload.sh and made 1 modification:

FOR_CLIENTS=1

so that the PC connects to VPN over the internet. I connect PC to ethernet-in; router to ethernet-out, change payload to 3, unplug+plug USB power; and after a while I see yellow led blinking once which should indicate the connection is established, but in reality I don't have the new IP address when I check what's my IP (I'm connected online though).

Can someone please help me? Many thanks

  • Like 1

Share this post


Link to post
Share on other sites

Mine is set so I have access to both networks, so I don't get a new ip address, but your login.txt file is right.

Share this post


Link to post
Share on other sites
On 11/10/2017 at 3:26 PM, hipapheralkus said:

can I ask where did you have problem which you then solved? I want to connect my PC to VPN using login+password, but something is failing and I don't know what. I've updated Squirrel to 1.1; copied config.ovpn to /root/payloads/switch3/config.ovpn; added "auth-user-pass login.txt", created /root/payloads/switch3/login.txt with
 


username
password

updated payload.sh to the newest https://github.com/hak5/packetsquirrel-payloads/blob/master/payloads/library/remote-access/openvpn/payload.sh and made 1 modification:


FOR_CLIENTS=1

so that the PC connects to VPN over the internet. I connect PC to ethernet-in; router to ethernet-out, change payload to 3, unplug+plug USB power; and after a while I see yellow led blinking once which should indicate the connection is established, but in reality I don't have the new IP address when I check what's my IP (I'm connected online though).

Can someone please help me? Many thanks

Hey man, im having the same problem. Any update if you got it working or not? What VPN were you usuing?

Share this post


Link to post
Share on other sites
On 11/13/2017 at 7:10 AM, barry99705 said:

Mine is set so I have access to both networks, so I don't get a new ip address, but your login.txt file is right.

Can you explain this more? Mine appears to be working like this as well but I was expecting an IP. What is happening, what are options, and how do I manually implement other options. If you can tell I need more education in an area regarding this, do you have a good resource you recommends?

Share this post


Link to post
Share on other sites

When you SSH into your PS, run openvpn 'config.ovpn'  in your payload directory.
The output should help you diagnose any issues. 

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...