]> gitweb.fluxo.info Git - trashman.git/commitdiff
Fix: trashman: tor-transproxy: do not drop connections to localhost
authorSilvio Rhatto <rhatto@riseup.net>
Sat, 10 Aug 2024 13:17:31 +0000 (10:17 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Sat, 10 Aug 2024 13:17:31 +0000 (10:17 -0300)
share/trashman/tor-transproxy/unix/linux/debian/files/etc/network/if-pre-up.d/iptables

index e61d8f0c6c562f8ca1fec0d8ff0b5bb651164b44..e0073371f23ef0e99585a136d521beb914249f00 100755 (executable)
@@ -35,7 +35,7 @@ $IPTABLES -A OUTPUT -m owner --uid-owner $NETWORK_USER_ID -j ACCEPT  || exit
 $IPTABLES -A OUTPUT -m owner --uid-owner root -j ACCEPT              || exit
 $IPTABLES -A OUTPUT -m owner --uid-owner _apt -j ACCEPT              || exit
 $IPTABLES -A INPUT  -j LOG --log-prefix "OUTPUT DROPPED: " --log-uid || exit
-$IPTABLES -A OUTPUT -j DROP                                          || exit
+$IPTABLES -A OUTPUT ! -d 127.0.0.1 -j DROP                           || exit
 
 # Allow SSH
 $IPTABLES -A INPUT -p tcp --dport ssh -j ACCEPT || exit