wg-docker/resources/README.md

35 lines
1.1 KiB
Markdown
Raw Normal View History

2022-11-28 21:38:36 +01:00
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
<!--
user_pref("network.proxy.socks", "localhost");
user_pref("network.proxy.socks_port", $SOCKS_PORT);
user_pref("network.proxy.socks_remote_dns", true);
user_pref("network.proxy.type", 1);
-->
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