Skip to content

Commit 3803936

Browse files
committed
add: wepn-test.sh and service.sh
1 parent fcd3b58 commit 3803936

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

service.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/bash
2+
ipset restore --exist < /root/.wepn/ipset-rules
3+
sleep 1
4+
iptables-restore < /root/.wepn/iptables-rules

wepn.service

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[Unit]
2+
Description=WePN Service
3+
4+
[Service]
5+
Type=oneshot
6+
ExecStart=/root/.wepn/service.sh
7+
User=root
8+
Group=root
9+
UMask=0022
10+
11+
[Install]
12+
WantedBy=multi-user.target

0 commit comments

Comments
 (0)