mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 09:04:52 +08:00
fix
This commit is contained in:
@@ -122,6 +122,9 @@ sudo ./anylink
|
|||||||
2. 设置nat转发规则
|
2. 设置nat转发规则
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
|
systemctl stop firewalld.service
|
||||||
|
systemctl disable firewalld.service
|
||||||
|
|
||||||
# 请根据服务器内网网卡替换 eth0
|
# 请根据服务器内网网卡替换 eth0
|
||||||
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
|
iptables -t nat -A POSTROUTING -s 192.168.10.0/24 -o eth0 -j MASQUERADE
|
||||||
# 如果执行第一个命令不生效,可以继续执行下面的命令
|
# 如果执行第一个命令不生效,可以继续执行下面的命令
|
||||||
|
@@ -1,13 +1,15 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=VPN Server Service
|
Description=AnyLink Server Service
|
||||||
After=network.target
|
Documentation=https://github.com/bjdgyc/anylink
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
User=root
|
User=root
|
||||||
WorkingDirectory= /usr/local/anylink-deploy
|
WorkingDirectory=/usr/local/anylink-deploy
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
RestartSec=5s
|
RestartSec=5s
|
||||||
ExecStart=/usr/local/anylink-deploy/anylink --conf=conf/server.toml
|
ExecStart=/usr/local/anylink-deploy/anylink --conf=./conf/server.toml
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Reference in New Issue
Block a user