File tree Expand file tree Collapse file tree 1 file changed +35
-1
lines changed
Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Original file line number Diff line number Diff 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
361361sudo systemctl enable tcpforwarder.service
362362sudo 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```
365399ulimit -n 65536
366400sudo nano /etc/security/limits.conf
You can’t perform that action at this time.
0 commit comments