Fix proxy in combination with ufw, open access to proxy, add openvpn arguments to transmission script

This commit is contained in:
Kristian Haugene
2018-02-22 22:35:46 +01:00
parent b3b97e4237
commit 4b02cd6ca2
3 changed files with 10 additions and 8 deletions

View File

@@ -64,6 +64,11 @@ if [ "true" = "$ENABLE_UFW" ]; then
echo "allowing $PEER_PORT through the firewall"
ufw allow $PEER_PORT
if [ "true" = "$WEBPROXY_ENABLED" ]; then
echo "allowing $WEBPROXY_PORT through the firewall"
ufw allow $WEBPROXY_PORT
fi
eval $(/sbin/ip r l m 0.0.0.0 | awk '{if($5!="tun0"){print "GW="$3"\nINT="$5; exit}}')
echo "allowing access to $TRANSMISSION_RPC_PORT from $GW"
ufw allow proto tcp from $GW to any port $TRANSMISSION_RPC_PORT

View File

@@ -1,4 +1,4 @@
#!/bin/sh
/etc/transmission/start.sh
/etc/transmission/start.sh "$@"
/opt/tinyproxy/start.sh