diff options
| author | 卢文朋 <[email protected]> | 2021-09-13 02:12:29 +0000 |
|---|---|---|
| committer | luwenpeng <[email protected]> | 2021-09-15 16:58:01 +0800 |
| commit | ba21a53bb7c8bc5e70eae278b2fd238c2bcd1337 (patch) | |
| tree | f15571a0b8c096532be99e8a6858370c047a4b86 /script/service | |
| parent | aa887fd382a4eb1b981280183a780649230d71e9 (diff) | |
TSG-7784 PacketAdapter支持CI自动构建RPM; 修改代码结构
Diffstat (limited to 'script/service')
| -rw-r--r-- | script/service/packetadapter.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/script/service/packetadapter.service b/script/service/packetadapter.service new file mode 100644 index 0000000..558ed38 --- /dev/null +++ b/script/service/packetadapter.service @@ -0,0 +1,10 @@ +[Unit] +Description=Packet Adapter +After=network.target + +[Service] +ExecStartPre=/usr/sbin/iptables -A OUTPUT -o eno4 -p udp --dport 2152 -j NFQUEUE --queue-num 1 +ExecStartPre=/usr/sbin/ip6tables -A OUTPUT -o eno4 -p udp --dport 2152 -j NFQUEUE --queue-num 1 +ExecStart=/opt/tsg/packetadapter/bin/packetadapter +ExecStopPost=/usr/sbin/iptables -D OUTPUT -o eno4 -p udp --dport 2152 -j NFQUEUE --queue-num 1 +ExecStopPost=/usr/sbin/ip6tables -D OUTPUT -o eno4 -p udp --dport 2152 -j NFQUEUE --queue-num 1
\ No newline at end of file |
