wg-docker/resources/README.md
2022-11-28 21:38:36 +01:00

1.1 KiB

thanks https://unix.stackexchange.com/questions/14160/ssh-tunneling-error-channel-1-open-failed-administratively-prohibited-open

example usage

wg-docker up framagit wg-docker up framagit --browser wg-docker shell framagit

create profile

firefox -CreateProfile wg_$PROFILE_NAME_$SOCKS_PORT firefox -P wg_$PROFILE_NAME_$SOCKS_PORT

edit profile network proxy section via sed avoid if possible other dependencies https://firefox-source-docs.mozilla.org/mozbase/mozprofile.html

FIREFOX_PROFILE_PATH=framagit sed -i -e 's/(network.proxy.socks", )(.)/\1"localhost"/g' $FIREFOX_PROFILE_PATH sed -i -e 's/(network.proxy.socks_port", )(.)/\1"${SOCKS_PORT}"/g' $FIREFOX_PROFILE_PATH sed -i -e 's/(network.proxy.socks_remote_dns", )(.)/\1"true"/g' $FIREFOX_PROFILE_PATH sed -i -e 's/(network.proxy.socks_remote_dns", )(.)/\1"true"/g' $FIREFOX_PROFILE_PATH