Skip to content

Commit 8af0244

Browse files
authored
Update README.md
1 parent 88c743b commit 8af0244

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ nano /root/proxyforwarder/src/config.yaml
327327
```
328328
<div align="right">
329329

330-
- سرویس برای برنامه
330+
- سرویس برای برنامه tcp
331331

332332
<div align="left">
333333

@@ -361,6 +361,40 @@ sudo systemctl start tcpforwarder.service
361361
sudo systemctl enable tcpforwarder.service
362362
sudo systemctl status tcpforwarder.service
363363
```
364+
- سرویس برای برنامه udp
365+
366+
<div align="left">
367+
368+
```
369+
nano /etc/systemd/system/udpforwarder.service
370+
```
371+
```
372+
[Unit]
373+
Description=UDP Forwarder Service
374+
After=network.target
375+
376+
[Service]
377+
Type=simple
378+
ExecStart=/root/proxyforwarder/src/udp_forwarder /root/proxyforwarder/src/config.yaml
379+
Restart=always
380+
User=root
381+
WorkingDirectory=/root/proxyforwarder/src
382+
StandardOutput=syslog
383+
StandardError=syslog
384+
SyslogIdentifier=udp_forwarder
385+
LimitNOFILE=65536
386+
387+
[Install]
388+
WantedBy=multi-user.target
389+
390+
391+
```
392+
```
393+
sudo systemctl daemon-reload
394+
sudo systemctl start udpforwarder.service
395+
sudo systemctl enable udpforwarder.service
396+
sudo systemctl status udpforwarder.service
397+
```
364398
```
365399
ulimit -n 65536
366400
sudo nano /etc/security/limits.conf

0 commit comments

Comments
 (0)