Files
URLFetcher/urlfetcher.sh
2021-10-13 11:16:45 +03:00

15 lines
506 B
Bash

#!/bin/bash
#this is the main entrypoint of the urlfetcher container
ifconfig lo 127.0.0.1
# traffic-forwarder.py takes data from enclave's vsock at port 8001
# and forwards it to host's vsock 8002
# where vsock-proxy takes data from host's vsock 8002 and
# forwards it to host's TCP port e.g. 8888 where the a socks proxy server
# should be listening
# (on host machine we run vsock-proxy 8002 127.0.0.1 8888 --config config.yaml)
python3 /app/traffic-forwarder.py 8001 3 8002 &
python3 /app/server.py