Skip to content

Instantly share code, notes, and snippets.

@Ne00n
Last active December 10, 2021 23:41
Show Gist options
  • Save Ne00n/17e579b1082115da15afbc5c65c9cbf7 to your computer and use it in GitHub Desktop.
Save Ne00n/17e579b1082115da15afbc5c65c9cbf7 to your computer and use it in GitHub Desktop.
systemctl stop rpcbind.service
systemctl disable rpcbind.service
chmod -x /usr/bin/spiceproxy
#/etc/network/interfaces
#Proxmox block
post-up iptables -A INPUT -p tcp --dport 8006 -s 127.0.0.0/8 -j ACCEPT #allow localhost for reverse proxy
post-up ip6tables -A INPUT -p tcp --dport 8006 -s ::1/128 -j ACCEPT #allow localhost for reverse proxy
post-up iptables -A INPUT -p tcp --dport 8006 -j DROP #webinterface
post-up ip6tables -A INPUT -p tcp --dport 8006 -j DROP #webinterface
post-up iptables -A INPUT -p tcp --dport 3128 -j DROP #spiceproxy
post-up ip6tables -A INPUT -p tcp --dport 3128 -j DROP #spiceproxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment