parent
b643a43c99
commit
3b3753a918
3 changed files with 39 additions and 0 deletions
@ -0,0 +1,13 @@ |
||||
# /etc/systemd/system/baidu_proxy.service |
||||
[Unit] |
||||
Description=proxy for api.map.baidu.com and so on |
||||
After=syslog.target network.target |
||||
Wants=network.target |
||||
Requires=ssh_proxy.service |
||||
|
||||
[Service] |
||||
Type=simple |
||||
ExecStart=/usr/local/baiduproxy/antiy 0.0.0.0:7999 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
@ -0,0 +1,13 @@ |
||||
# /etc/systemd/system/baidu_proxy.service |
||||
[Unit] |
||||
Description=use ssh for remote port redirection. |
||||
After=syslog.target network.target |
||||
Wants=network.target baidu_proxy.service |
||||
|
||||
[Service] |
||||
Type=simple |
||||
WorkingDirectory=/usr/local/baiduproxy |
||||
ExecStart=/usr/bin/autossh -M 0 -NR 0.0.0.0:7999:localhost:7999 -i id_rsa root@220.182.51.94 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
@ -0,0 +1,13 @@ |
||||
# /etc/systemd/system/baidu_proxy.service |
||||
[Unit] |
||||
Description=use ssh for remote port redirection. |
||||
After=syslog.target network.target |
||||
Wants=network.target |
||||
|
||||
[Service] |
||||
Type=simple |
||||
WorkingDirectory=/usr/local/baiduproxy |
||||
ExecStart=/usr/bin/autossh -M 0 -NR 0.0.0.0:7999:localhost:7999 -i id_rsa 192.168.55.218 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
Loading…
Reference in new issue