first commit
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
.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
|
||||
|
||||
Reference in New Issue
Block a user