实现端口转发功能,经测试,ssh、http可以正常使用

This commit is contained in:
ranchuan
2024-05-22 19:03:17 +08:00
commit de5e54681d
9 changed files with 594 additions and 0 deletions

14
mytcp.service Normal file
View File

@@ -0,0 +1,14 @@
[Unit]
Description=mytcp service
After=network.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/root/work/mytcp
ExecStart=/usr/bin/python3 server.py
Restart=always
[Install]
WantedBy=multi-user.target