AutomapHostsOnResolve 1 TransPort 9040 TransListenAddress 10.0.0.1 DNSPort 5053 DNSListenAddress 10.0.0.1
[NetDev] Name=tornet Kind=bridge
[Match] Name=tornet [Network] Address=10.100.100.1/24
pacman -S tor systemctl enable --now tor systemd-networkd #iptables -t nat -I POSTROUTING -s 10.100.100.0/24 -j MASQUERADE iptables -A FORWARD -i tornet -o tornet -p udp --dport=5053 -j ACCEPT iptables -t nat -A PREROUTING -i tornet -p udp -m udp --dport 53 -j DNAT --to-destination 127.0.0.1:5053 iptables -t nat -A PREROUTING -i tornet -p tcp -j DNAT --to-destination 127.0.0.1:9040 iptables -A INPUT -i tornet -p tcp --dport 9040 -j ACCEPT virt-install --vnc --name=archbox --vcpus 1 --memory 2024 --disk pool=vg0,size=100 --cdrom /var/lib/libvirt/images/archlinux-2018.06.01-x86_64.iso --network bridge:tornet --virt-type kvm --autostart --noautoconsole
Sources
cd html # do your modifications yarn install yarn run build # yarn run start
modifications for sub path
#define WS_PATH "/abc123/ws"
not needed since it detects or includes sub urls:
+ (window.location.pathname.endsWith('/') ? '' : '/') + 'abc123/ws',
<script src="/abc123/auth_token.js"></script>
if (strncmp(pss->path, "/abc123/auth_token.js", 14) == 0) { [...] if (strcmp(pss->path, "/abc123") != 0) {
now the issue: illegal ws path