foxpass / foxpass-ipsec-vpn Goto Github PK
View Code? Open in Web Editor NEWL2TP/IPSEC VPN with built-in Duo support
L2TP/IPSEC VPN with built-in Duo support
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?
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?
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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.