summarylogtreecommitdiffstats
path: root/preserve-dscp@.service
blob: 604b706f56bddc8d7d08f05c27078c5867ecfed7 (plain)
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=Preserve DSCP markings on wireguard packets outside some iface
Documentation=man:tc-cake(8) man:ip(7)

[Service]
Type=oneshot
RemainAfterExit=yes
Environment=IFUPDOWN=%i
WorkingDirectory=/opt/preserve-dscp
ExecStart=/bin/bash -c "/opt/preserve-dscp/preserve-dscp ${IFUPDOWN/:/ }"
ExecStop=/bin/bash -c "/opt/preserve-dscp/preserve-dscp ${IFUPDOWN/:/ } --unload"