Giter VIP home page Giter VIP logo

foxpass-ipsec-vpn's People

Contributors

andrey9kin avatar aren avatar asakapab0i avatar danishfoxpass avatar dependabot[bot] avatar jcph-foxpass avatar nshttpd avatar rjo100 avatar sinistral avatar ttheune avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

foxpass-ipsec-vpn's Issues

Unable to connect on Windows

We're running a Foxpass VPN server in EC2 to allow users to connect into the VPC. Mac Users are able to connect just fine to the VPN server. However, users of Windows (10) are unable to connect. I have more details about the issue including screenshots over on Server Fault. Is this VPN server compatible with Windows? What extra settings need to be configured to get it working on that platform?

Outdated boto lib version?

Hi!

I'm trying to read config file from versioned encrypted with default S3 KMS key S3 bucket
Getting the following

Traceback (most recent call last):
  File "/opt/bin/config.py", line 329, in <module>
    main()
  File "/opt/bin/config.py", line 313, in main
    data = gather_user_data_s3(sys.argv[1])
  File "/opt/bin/config.py", line 183, in gather_user_data_s3
    data = key.get_contents_as_string()
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1782, in get_contents_as_string
    response_headers=response_headers)
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1650, in get_contents_to_file
    response_headers=response_headers)
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1482, in get_file
    query_args=None)
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 1514, in _get_file_internal
    override_num_retries=override_num_retries)
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 343, in open
    override_num_retries=override_num_retries)
  File "/usr/local/lib/python2.7/dist-packages/boto/s3/key.py", line 303, in open_read
    self.resp.reason, body)
boto.exception.S3ResponseError: S3ResponseError: 400 Bad Request
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InvalidArgument</Code><Message>Requests specifying Server Side Encryption with AWS KMS managed keys require AWS Signature Version 4.</Message><ArgumentName>Authorization</ArgumentName><ArgumentValue>null</ArgumentValue><RequestId>39026ABA876B2920</RequestId><HostId>a2LDcGwluokuBqs0jFo74cVNbo3wwOSlk5gz8InztUXObGoG7fRSScF4a7R97gEYyRdYf23tjpA=</HostId></Error>

After playing around with code it seems that the old version of boto isn't working

Updating function to use boto3 solves that (see working code below)

def gather_user_data_s3(s3_url):
    import boto3

    parts = urlparse(s3_url)

    if parts.scheme != 's3':
        raise Exception("Must use s3 url scheme")

    bucket_name = parts.netloc
    path = parts.path.lstrip('/')

    s3 = boto3.resource('s3')
    obj = s3.Object(bucket_name, path)
    data = obj.get()['Body'].read().decode('utf-8')

    return json.loads(data)

Shall I do a pull request or what is contribution procedure?

NameError: name 'local_ip' is not defined

In change d1451293d0c0fbfe8e39dab1f45fe6124fc27a2e the local_ip variable was removed in favor or l2tp_local_ip and xauth_local_ip, but is still referenced in the holders object.

https://github.com/foxpass/foxpass-ipsec-vpn/blob/master/scripts/config.py#L259

This causes a NameError to be thrown.

Traceback (most recent call last):
  File "/opt/bin/config.py", line 333, in <module>
    main()
  File "/opt/bin/config.py", line 329, in main
    config_vpn(data)
  File "/opt/bin/config.py", line 259, in config_vpn
    '<LOCAL_IP>': local_ip,
NameError: name 'local_ip' is not defined

README should also specify outbound network rules

Only the inbound rules are specified, but an AWS security group with only inbound rules fails. You have to also set appropriate outbound rules.

I don't know what the minimal outbound rules are (I just allowed all traffic) but I'd recommend that be explicit in the README as well

Unable to run the script.sh while building packer

when I am executing the command packer build foxpass_vpn.json but is ends with error, do you think we need to make it executable before we can run it or there is a problem with the ubuntu image that we are using ?
==> amazon-ebs: sudo: unable to execute /tmp/foxpass-vpn/scripts/setup.sh: No such file or directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.