torrent/Makefile
Benoît HUBERT ( Home ) 5608e4d62e first commit
2025-06-10 16:12:38 +02:00

31 lines
561 B
Makefile

.PHONY: *
ip_test:
whois $(shell docker exec transmission curl -s ipaddr.ovh) | grep -e "\(descr\|org-name\)"
start:
docker compose up -d
stop:
docker compose down
restart: stop start
build:
$(MAKE) -C ./build $@
build_force:
$(MAKE) -C ./build $@
debug:
docker exec -ti transmission bash
logs:
docker logs --follow transmission
iptables:
iptables -t nat -A PREROUTING -p tcp --dport 9091 -j DNAT --to-destination 192.168.1.2:9091
iptables -A FORWARD -p tcp -d 192.168.1.2 --dport 9091 -j ACCEPT
iptables -t nat -A POSTROUTING -j MASQUERADE