Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why not write sha2-truncbug=yes in run.sh? #15

Closed
hwdsl2 opened this issue Dec 20, 2016 · 4 comments
Closed

Why not write sha2-truncbug=yes in run.sh? #15

hwdsl2 opened this issue Dec 20, 2016 · 4 comments

Comments

@hwdsl2
Copy link
Owner

hwdsl2 commented Dec 20, 2016

Originally posted by @cncolder:

/opt/src/run.sh will rewrite /etc/ipsec.conf after restart docker. I must edit every time.
I think it's good to move it from troubleshoot into /opt/src/run.sh

I setup -v ./ipsec.conf:/etc/ipsec.conf now. But I found there are some dynamic ip addresses in gen script.

@hwdsl2
Copy link
Owner Author

hwdsl2 commented Dec 20, 2016

@cncolder Hello! Thanks for the suggestion. However, adding the sha2-truncbug line might break compatibility with some devices.

For this issue, please try the following workaround:

Start a Bash session in the running container and install nano:

docker exec -it ipsec-vpn-server env TERM=xterm bash -l
apt-get update && apt-get install nano

Then edit /opt/src/run.sh and add the sha2-truncbug=yes line, indented by two spaces:

nano -w /opt/src/run.sh
[Edit the file and exit nano]

You may also comment out sections or make other changes if needed. When finished, run exit to return to your Docker host. The next time you restart your container, /etc/ipsec.conf will contain these changes.

@hwdsl2 hwdsl2 closed this as completed Dec 20, 2016
@cncolder
Copy link

Thank you for your answer.
I solve it. I copy run.sh outside then mount volume.

docker cp ipsec-vpn-server:/opt/src/run.sh ./
docker run ... -v /path/to/run.sh:/opt/src/run.sh:ro ...

@hwdsl2
Copy link
Owner Author

hwdsl2 commented Jan 4, 2017

@cncolder Just want to let you know that the sha2-truncbug=yes line has been added back to run.sh, to fix the VPN on Android 6 and 7. Thanks for reminding me on this.

@cncolder
Copy link

cncolder commented Jan 4, 2017

@hwdsl2 Thank you. Its save my life.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants