# ssh tunnel to make accessible from internet ssh -N -f -R 0.0.0.0:55555:localhost:22 root@blog.pigpoppo.com # ^ ^internet port ^local port | Specify wildcard. default is localhost* *you may need to edit /etc/ssh/sshd.config to set: GatewayPorts=clientspecified # upgraded to autossh to keep connection alive autossh -N -f -R 55555:localhost:22 root@blog.pigpoppo.com
---------------------------------------------------------------- ----------------------------------------------------------------
Edit the Javascript file:
/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
Find the lines:
Ext.Msg.show({
title: gettext('No valid subscription'),
Void the function:
void({ //Ext.Msg.show({
title: gettext('No valid subscription'),
Restart the service:
systemctl restart pveproxy.service
----------------------------------------------------------------
echo '1' >> /proc/sys/net/ipv4/ip_forward
# add iptables rules to route traffic from main interfaces to the vpn (i dont fully understand this)iptables -t nat -A POSTROUTING -o tun+ -j MASQUERADE iptables -A FORWARD -i ens+ -o tun+ -j ACCEPT iptables -A FORWARD -o tun+ -j ACCEPT iptables -A FORWARD -i tun+ -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -i tun+ -j ACCEPT
preparing clients ----------------- clients dont need much. mainly, they just need a default route pointing to the entry server.sudo ip route del default sudo ip route add default via 10.0.0.173
you might be better off just using DHCP.# mount NFS share sudo mount -t nfs <nfs_server:/path/to/share> /mnt # mount windows partition that is hibernated mount -t ntfs-3g -o remove_hiberfile /dev/<sdx0> /mnt
# sudo trick :w !sudo tee % # execute current line in bash :.w !bash
sudo sed -r -i 's/(ti)?\\l/ti\\l/g' /etc/issue
---------------------------------------------------------------- mouse jiggler# set X display export DISPLAY=":0" distance=10 # radius of the jiggle delay=0.1 # time in seconds to wait between jiggles while true do randomAngle=$((1 + RANDOM % 360)) inverseAngle=$(( ($randomAngle+180) % 360)) # move random direction xdotool mousemove_relative --polar $randomAngle $distance sleep $delay # return to initial position xdotool mousemove_relative --polar $inverseAngle $distance sleep $delay done
----------------------------------------------------------------# increasingly slower bash startup echo 'sleep 0.01' >> ~/.bashrc # or ~/.bash_profile