qubes-yum-proxy.service 716 B

123456789101112131415
  1. [Unit]
  2. Description=Qubes yum proxy (tinyproxy)
  3. ConditionPathExists=/var/run/qubes-service/qubes-yum-proxy
  4. After=iptables.service
  5. [Service]
  6. ExecStartPre=/usr/bin/install -d --owner tinyproxy --group tinyproxy /var/run/tinyproxy
  7. ExecStartPre=/sbin/iptables -I INPUT -i vif+ -p tcp --dport 8082 -j ACCEPT
  8. ExecStartPre=/sbin/iptables -t nat -A PR-QBS-SERVICES -i vif+ -d 10.137.255.254 -p tcp --dport 8082 -j REDIRECT
  9. ExecStart=/usr/sbin/tinyproxy -d -c /etc/tinyproxy/tinyproxy-qubes-yum.conf
  10. ExecStopPost=/sbin/iptables -t nat -D PR-QBS-SERVICES -i vif+ -d 10.137.255.254 -p tcp --dport 8082 -j REDIRECT
  11. ExecStopPost=/sbin/iptables -D INPUT -i vif+ -p tcp --dport 8082 -j ACCEPT
  12. [Install]
  13. WantedBy=multi-user.target